Documents
Get a document
Reads one document of a Brand. The answer has the document data and the URL to read the file from. The bytes never come back in the body: fetch url for them. A reservation whose bytes never arrived answers 404, because there is no file behind it.
get/context/brands/{slug}/documents/{documentId}
Request
- Base URL: https://api.adcrunch.dev
- URL: https://api.adcrunch.dev/context/brands/{slug}/documents/{documentId}
- Auth: HTTP bearer
Path parameters
documentIdstring required
slugstring required
Response
The Document. url is public: anybody holding it can read the file.
Example response
{
"createdAt": 1790000000000,
"filename": "acme-brand-guidelines.pdf",
"id": "doc_5e2b41",
"mimeType": "application/pdf",
"name": "acme-brand-guidelines.pdf",
"sizeBytes": 1482064,
"targetId": "brd_6a9c33",
"targetType": "brand",
"url": "https://documents.adcrunch.dev/org_3a7f10/doc_5e2b41"
}Changes
No recorded changes to this operation across all 1 revision of this API.