documents
Returns the current document content.
Changed onReturns HTML by default. Use format=markdown for readable Markdown with hidden editor metadata. Use streamAsFile to receive file content. <Check title="Required Permissions" icon="key">The user must have at least read permission for the specified document.</Check>
get/documents/{documentId}/content
Request
- Base URL: https://api.awork.com/api/v1
- URL: https://api.awork.com/api/v1/documents/{documentId}/content
- Auth: HTTP bearer
Path parameters
documentIdstring uuid required
The id of the document.
Query parameters
streamAsFileboolean
Whether to stream the content as a file. By default, the document's content is returned in a model containing a property Content holding the content as a string.
formatstring
The response format. Supported values are html and markdown.
Response
OK
string required
Changes
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
oauth2was added to the API
- warning
- info
api operation id
GetDocumentContentByDocumentIdremoved and replaced withdocuments_GetDocumentContentByDocumentId
- info