Attachments

Retrieve attachments

Retrieves a list of attachments.

get/attachment

Query parameters

categorystring

Filter by category slug.

chapterstring

Filter by chapter slug.

entrystring

Filter by entry slug.

seasonstring

Filter by season slug. Use all to show all seasons.

tabstring

Filter by tab slug.

pagestring

Specify the page number to return.

per_pagestring

Limit the number of items returned to between 1 and 100.

order'created' | 'entry' | 'order' | 'tab' | 'updated'

Sort by a supported attachment field. Unsupported values fall back silently to the default sort (updated descending).

dir'asc' | 'desc'

Sort in ascending or descending order.

Headers

Accept'application/vnd.Creative Force.v2.3+json' | 'application/vnd.Creative Force.v2.3+xml' required

Defines the response type.

x-api-languagestring[]

Defines the languages included in the response. If omitted, the account default language is used.

Value all overrides any other values present.

Response

Attachments retrieved.

current_pageinteger

Number of the page returned by this response. The first page is 1.

first_page_urlstring uri

URL of the first page in the result set.

frominteger

Position of the first record on this page within the full result set. The first record is at position 1.

last_pageinteger

Number of the last page. Equals the total number of pages.

last_page_urlstring uri

URL of the last page in the result set.

next_page_urlstring

URL of the next page in the result set.

Empty string when the current page is the last page.

pathstring uri

Canonical URL of the endpoint, without query parameters.

per_pageinteger

Maximum number of records returned per page.

prev_page_urlstring

URL of the previous page in the result set.

Empty string when the current page is the first page.

tointeger

Position of the last record on this page within the full result set.

totalinteger

Total number of records across all pages.

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