Documents
Metadata for documents in the key owner’s library: ID, title, processing status and timestamps. PDFs, annotations and reader answers stay in Focus.
List personal document metadata
GET https://couldfocus.com/api/v1/documents
Documents in the key owner’s library, in ID order. Requires a personal application. Pass next as after to read the next page (pagination). next is null on the last page. Each new successful request uses one unit, including an empty page.
Authentication
A bearer key with the documents:list permission.
Parameters
Idempotency-Keyheader- string, UUID, optional A UUID you generate. Send the same value with the same key, path and parameters to retry. Within 400 days of a success, the retry returns the same result for zero units, or 409 when the data changed. Omission starts a new request.
limitquery- integer, 1 to 100, default 25, optional Page size, written without leading zeros.
afterquery- string, UUID, optional The
nextvalue from the previous page, unchanged.
Request body
None. Send GET with no body.
Response
- 200
{"data": [Document], "next": string | null}A committed metadata result, or a verified retry.- Headers
X-Request-Id,X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset
Errors
- 400
invalid_request- 401
invalid_api_key- 402
api_access_unavailable- 403
insufficient_scope- 404
route_not_found,document_not_found- 405
method_not_allowed- 409
idempotency_conflict,result_changed- 429
rate_limit_exceeded,credential_rate_limited,authentication_throttled,request_limit_reached- 503
api_busy,api_unavailable
Example
printf 'Authorization: Bearer %s\n' "$FOCUS_API_KEY" |
curl --silent --show-error --fail-with-body --header @- \
'https://couldfocus.com/api/v1/documents?limit=1'{"data":[{"id":"256e6440-bae3-4ec1-9e93-f2d195f0cbb4","title":"Grid cells in the entorhinal cortex","status":"ready","createdAt":"2026-11-28T16:50:03.216Z","updatedAt":"2026-11-28T16:50:03.216Z"}],"next":"256e6440-bae3-4ec1-9e93-f2d195f0cbb4"}Read personal document metadata
GET https://couldfocus.com/api/v1/documents/{id}
One document in the key owner’s library. Requires a personal application. A path ID that is not a UUID returns 404 route_not_found.
Authentication
A bearer key with the documents:read permission.
Parameters
Idempotency-Keyheader- string, UUID, optional A UUID you generate. Send the same value with the same key, path and parameters to retry. Within 400 days of a success, the retry returns the same result for zero units, or 409 when the data changed. Omission starts a new request.
idpath- string, UUID, required Document ID from
documents_listor the reader’s address. Letter case does not matter.
Request body
None. Send GET with no body.
Response
- 200
{"data": Document}A committed metadata result, or a verified retry.- Headers
X-Request-Id,X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset
Errors
- 400
invalid_request- 401
invalid_api_key- 402
api_access_unavailable- 403
insufficient_scope- 404
route_not_found,document_not_found- 405
method_not_allowed- 409
idempotency_conflict,result_changed- 429
rate_limit_exceeded,credential_rate_limited,authentication_throttled,request_limit_reached- 503
api_busy,api_unavailable
Example
printf 'Authorization: Bearer %s\n' "$FOCUS_API_KEY" |
curl --silent --show-error --fail-with-body --header @- \
'https://couldfocus.com/api/v1/documents/f8fdec9a-2a99-40ef-80d3-9fa3d298a800'{"data":{"id":"f8fdec9a-2a99-40ef-80d3-9fa3d298a800","title":"Place cells revisited","status":"processing","createdAt":"2026-11-28T16:50:03.217Z","updatedAt":"2026-11-28T16:50:03.217Z"}}Guide: Check when a paper is ready
The Document object
id- string, UUID, always present
title- string, always present Changes when the reader renames the document or Focus finds its title during preparation.
status- string, always present
processingwhile Focus prepares the document,readywhen it opens in the reader,failedwhen preparation stopped. A failed document returns toprocessingif Focus prepares it again. Focus can add values within v1. Treat a value you do not recognize as not ready. createdAt- string, ISO 8601 date-time, always present When the document was added.
updatedAt- string, ISO 8601 date-time, always present When Focus last updated the document, which can happen without a change to its title or status.