Files
Get file information
Use the following code snippet to get the information of a file that was uploaded to Torii
curl -H "Authorization: Bearer API_KEY" "https://api.toriihq.com/v1.0/files/{FILE_ID}"
curl -H "Authorization: Bearer API_KEY" "https://api.toriihq.com/v1.0/files/1000"
- Rate limit: 600 requests per minute
get/files/{id}
Request
- Base URLhttps://api.toriihq.com/v1.0
- AuthAPI key in header Authorization
Path parameters
idinteger required
Unique file identifier
Query parameters
type'attachment' | 'expenseReport' | 'customIntegrationData' | 'plugin' | 'chatAttachment' | 'aiChatFile'
File type
Response
File Entity
Example response
{
"file": {
"id": 1000,
"type": "expenseReport",
"fileName": "test_file.xlsx",
"creationTime": "2020-01-01T00:00:00.000Z",
"uploadedBy": 1000
}
}Changes
No recorded changes to this operation across all 1 revision of this API.