files
Get a file
Returns a single file by ID.
get/files/{id}
Path parameters
idstring cuid required
The ID of the item
Example:cmf41ajzv003706un4i99q19z
Headers
x-client-idstring cuid required
The ID of the client
Example:cmf41ajzv003706un4i99q19z
Response
File
Example response
{
"id": "cmf41ajzv003706un4i99q19z",
"documentDate": "2021-01-01T00:00:00Z",
"createdAt": "2021-01-01T00:00:00Z",
"updatedAt": "2021-01-01T00:00:00Z",
"name": "document.pdf",
"mimetype": "application/pdf",
"size": 1024,
"workspaceId": "cmf41ajzv003706un4i99q19z",
"createdById": "cmf41ajzv003706un4i99q19z",
"taskId": "cmf41ajzv003706un4i99q19z",
"folderId": "cmf41ajzv003706un4i99q19z",
"labelIds": [
"cmf41ajzv003706un4i99q19z"
]
}Changes
Changed in 1 of the 5 revisions of this API.1
- ○
added the media type
application/jsonfor the response with the status500response-media-type-added
- ○