Get Document By Id

View as Markdown

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

domainstringRequired
document_idstringRequired

Headers

x-fern-basepathstring or nullOptional

The basepath of the docs site that the document belongs to, e.g. /plants for a site served at docs.example.com/plants. Omit this for sites served at the root of the domain. Documents are only retrieved by Ask Fern on the site matching the domain and basepath they were created with.

Response

Successful Response
documentobject
The requested document

Errors

422
Unprocessable Entity Error