Get a Document Collection template

Preview
gethttps://api.expiryedge.com/v2/collection-templates/{id}
any member of the template's organization60/min
Request
curl 'https://api.expiryedge.com/v2/collection-templates/tem_123' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY"
Response
{
  "id": "tem_123",
  "organization_id": "org_123",
  "name": "Example name",
  "description": "string",
  "status": "active",
  "pages": [
    {
      "id": "tem_123",
      "title": "string",
      "order": 1,
      "description_html": "string",
      "sections": [
        {
          "id": "tem_123",
          "title": "string",
          "order": 1,
          "description_html": "string",
          "fields": []
        }
      ]
    }
  ],
  "intro_email": {},
  "schema_version": 1,
  "created_by": "string",
  "created_by_name": "Example name",
  "created_at": "2026-09-27T14:05:00.000Z",
  "updated_at": "2026-09-27T14:05:00.000Z"
}

The whole pages tree as stored.

Path parameters

  • idstringrequired

Returns

200
The template.
  • idstring
  • organization_idstring
  • namestring
  • descriptionstring
  • statusstring
    Allowedactivearchivedrequest_draftrequest_sent
  • pagesarray of objects
  • intro_emailobject | null
  • schema_versioninteger
  • created_bystring
  • created_by_namestring
  • created_atstring
    UTC timestamp, ISO 8601. Every v1 response uses this form, never a raw Firestore Timestamp ({_seconds, _nanoseconds}).
    format: date-time
  • updated_atstring
    UTC timestamp, ISO 8601. Every v1 response uses this form, never a raw Firestore Timestamp ({_seconds, _nanoseconds}).
    format: date-time

Errors

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.