List the files attached to an expiry

gethttps://api.expiryedge.com/v1/getExpiryAttachments
any member of an organization60/min
Anfrage
curl 'https://api.expiryedge.com/v1/getExpiryAttachments?expiryId=exp_4Tq9sLm2&limit=100' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY"
Antwort
{
  "data": [
    {
      "index": 0,
      "name": "Gas Safety Certificate 2025.pdf",
      "url": "https://firebasestorage.googleapis.com/v0/b/stylingsphere.appspot.com/o/user_files%2Forg_northwind%2Fu_71bXq%2Fexpiry_exp_4Tq9sLm2%2FGas_Safety_Certificate_2025.pdf?alt=media&token=5b1f0c7e-2a41-4d8e-9f3a-0c6d2e7b9a11"
    },
    {
      "index": 1,
      "name": "Gas Safety Certificate 2026.pdf",
      "url": "https://firebasestorage.googleapis.com/v0/b/stylingsphere.appspot.com/o/user_files%2Forg_northwind%2Fu_71bXq%2Fexpiry_exp_4Tq9sLm2%2F1790517900000_Gas_Safety_Certificate_2026.pdf?alt=media&token=9c2e4d1a-7b3f-4e6a-8d5c-1f0a2b3c4d5e"
    }
  ]
}

Returns the expiry's files in the order the app shows them. index is the file's position in the list; url is the download URL. Old records without stored names get a name derived from the URL.

Query-Parameter

  • expiryIdstringerforderlich
  • limitinteger
    Max entries returned, 1-500 (default 100). An expiry holds at most 50 files added through the API.
    Standard 100min: 1 · max: 500

Rückgabe

200
The expiry's attachments.
  • dataarray of objectserforderlich

Fehler

400
The request is missing required fields or contains invalid values.
401
Missing, expired or invalid bearer token.
403
Authenticated, but your role or organization does not allow this action.
404
The record does not exist or is not in your organization.
405
The endpoint does not accept this HTTP method.
429
Too many requests for this endpoint from your IP. Wait Retry-After seconds.
500
Unexpected server error. Retry later; quote requestId to support.