Documents

Fetch a document and its public metadata by Machine Library document ID.

Retrieve document text with optional token bounds and passage filtering. A repeated successful fetch can incur another usage charge.

get/v2/documents/{document_id}

Request

  • Base URL: https://api.machinelibrary.ai
  • URL: https://api.machinelibrary.ai/v2/documents/{document_id}
  • Auth: one of:
    • API key in header X-Api-Key
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.machinelibrary.ai/v2/oauth/authorize, token URL https://api.machinelibrary.ai/v2/oauth/token, scopes: search)

Path parameters

document_idstring required

Machine Library document ID.

Query parameters

max_tokensinteger

Return exactly the first N content tokens. Omit to return all content tokens.

Response

Document content and public metadata.

documentunknown required
idstring required
urisstring[] required

Changes

No recorded changes to this operation across all 1 revision of this API.