List an expiry's attachments

Vorschau
gethttps://api.expiryedge.com/v2/expiries/{id}/attachments
any member of the expiry's organization60/min
Anfrage
curl 'https://api.expiryedge.com/v2/expiries/exp_4Tq9sLm2/attachments' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY"
Antwort
{
  "data": [
    {
      "index": 1,
      "name": "Gas Safety Certificate 2026.pdf",
      "url": "https://example.com"
    }
  ],
  "next_cursor": null,
  "has_more": true
}

Files in the order shown in the app. An expiry holds at most 50 files, so this is always one page (next_cursor: null, has_more: false).

Pfadparameter

  • idstringerforderlich

Rückgabe

200
The attachments.
  • dataarray of objectserforderlich
  • next_cursornullerforderlich
  • has_morebooleanerforderlich

Fehler

401
Missing, invalid or expired token (UNAUTHORIZED).
403
Your role can't do this, or your account has no organization (FORBIDDEN).
404
No such record in your organization (records in other organizations are also 404).
405
Wrong HTTP method for this path; the Allow header lists the valid ones.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.