Documentation Home

Document

The Document API allows people to retrieve info about documents.

GET

/documents

DESCRIPTION

Returns all documents, filtered by the 'title' GET filter. There are a lot of documents and this may take a few seconds to run.

PARAMETERS

Parameter Type Required Description Values Default
title GET Optional The document title to filter by. Any text NULL

RESPONSE

Type: application/json

A JSON object that complies with the JSON API standard (www.jsonapi.org).

Status Code Meaning
200 Successfully queried documents.
401 Invalid API key provided.
405 Invalid request HTTP method.

Example Success Response

GET

/documents/:document-id

DESCRIPTION

Returns info about the Document entity associated with the given ID.

PARAMETERS

Parameter Type Required Description Values Default
document-id URL_SLUG Required The ID of the Document entity to retrieve. Any positive integer NULL

RESPONSE

Type: application/json

A JSON object that complies with the JSON API standard (www.jsonapi.org).

Status Code Meaning
200 Successfully queried specified document.
401 Invalid API key provided.
404 No document was found for the provided ID.
405 Invalid request HTTP method.

Example Success Response