Admin APIFiles
Get a file's content
The bytes of a file in the organization's library, or one of its
renditions. Unlike the public /files/{file_id}/{variant} URL, this
serves private files too, to signed-in members with files.read.
variant is original or a rendition name such as thumbnail_jpeg.
Authorization
bearer_auth AuthorizationBearer <token>
Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.
In: header
Path Parameters
tenant_id*string
Tenant id
Format
uuidfile_id*string
File id
Format
uuidvariant*string
original or a rendition name such as thumbnail_jpeg
Response Body
application/octet-stream
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/files/497f6eca-6276-4993-bfeb-53cbbbba6f08/content/string""string"{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}