Retrieve attachments
Changed onRetrieves a list of attachments.
Request
- Base URLhttps://api.us.cr4ce.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Filter by category slug.
Filter by chapter slug.
Filter by entry slug.
Filter by season slug. Use all to show all seasons.
Filter by tab slug.
Specify the page number to return.
Limit the number of items returned to between 1 and 100.
If you provide a value outside this range, you will receive a 400 response.
Sort by a supported attachment field. Unsupported values fall back silently to the default sort (updated descending).
Sort in ascending or descending order.
Headers
Defines the response type.
Defines the languages included in the response. If non are provided, the account default language is returned.
Value all overrides any other values present.
You can request multiple languages using a comma-separated string of languages.
The selected language must be supported by your account or a 400 error is returned.
Response
Attachments retrieved.
Example response
{
"current_page": 1,
"data": [
{
"entry": {
"slug": "PqRsTuVw",
"link": "https://api.au.cr4ce.com/entry/PqRsTuVw",
"title": "Documentary series"
},
"attachment_fields": [
{
"slug": "KlMnOpQr",
"link": "https://api.au.cr4ce.com/field/KlMnOpQr",
"label": {
"en_GB": "<p>Headshot</p>"
},
"title": {
"en_GB": "Headshot"
},
"value": "GhIjKlMnOpQrStUv",
"translated": {
"en_GB": "headshot.jpg"
},
"download": "https://files.au.cr4ce.com/file/GhIjKlMnOpQrStUv/headshot.jpg?Expires=1781485359&Signature=REDACTED&Key-Pair-Id=REDACTED"
}
],
"created": "2025-05-12T14:00:00Z",
"file": {
"token": "GhIjKlMnOpQrStUv",
"link": "https://api.au.cr4ce.com/file/GhIjKlMnOpQrStUv",
"download": "https://files.au.cr4ce.com/file/GhIjKlMnOpQrStUv/headshot.jpg?Expires=1781485359&Signature=REDACTED&Key-Pair-Id=REDACTED",
"filename": "headshot.jpg"
},
"order": 2,
"tab": {
"slug": "YzAbCdEf",
"link": "https://api.au.cr4ce.com/tab/YzAbCdEf",
"name": {
"en_GB": "Attachments"
}
},
"token": "GhIjKlMnOpQrStUv",
"updated": "2025-05-12T14:05:00Z"
}
],
"first_page_url": "https://api.au.cr4ce.com/attachment?per_page=10&page=1",
"from": 1,
"last_page": 2,
"last_page_url": "https://api.au.cr4ce.com/attachment?per_page=10&page=2",
"next_page_url": "https://api.au.cr4ce.com/attachment?per_page=10&page=2",
"path": "https://api.au.cr4ce.com/attachment",
"per_page": 10,
"prev_page_url": "",
"to": 10,
"total": 12
}Changes
- breaking
for the
queryrequest parameterpage, the type changed fromstringtonumber - breaking
for the
queryrequest parameterper_page, the type changed fromstringtonumber - info
the
response's property default value10was added for the status (media type: application/json) - info
the
response's property default value10was added for the status (media type: application/xml)
- breaking
- breaking
the response property
/became nullable for the status (media type: application/json) - breaking
the response property
/became nullable for the status (media type: application/xml) - breaking
the response property
/became nullable for the status (media type: application/json) - breaking
the response property
/became nullable for the status (media type: application/xml) - breaking
the
/response's property format changed fromurito no format for status (media type: application/json) - breaking
the
/response's property format changed fromurito no format for status (media type: application/xml) - breaking
the
/response's property format changed fromurito no format for status (media type: application/json) - breaking
the
/response's property format changed fromurito no format for status (media type: application/xml) - breaking
the
/response's property format changed fromurito no format for status (media type: application/json) - breaking
the
/response's property format changed fromurito no format for status (media type: application/xml)
- breaking