List card templates

Returns a paginated list of card templates for the authenticated account.
Soft-deleted templates (deleted_at is not null) are excluded by default;
pass include_deleted=true to include them.

GET /api/3/card_templates

Authentication

This endpoint requires authentication:

OAuth 2.0 Recommended

Use an OAuth 2.0 access token in the Authorization header. This is the recommended authentication method for all integrations. OAuth provides automatic token expiration, granular permission scopes, detailed usage tracking, and per-integration revocation. Learn how to obtain an access token.

Header Format:

Authorization: Bearer YOUR_ACCESS_TOKEN

Required Scopes:

private.account.card_template.readonly

Parameters

Query Parameters

page integer
Optional

Page number

Default: 1

per_page integer
Optional

Results per page

Default: 50

updated_since string
Optional

ISO 8601 timestamp. Returns only records updated after this time

include_deleted boolean
Optional

When true, soft-deleted templates are included in the response. Defaults to false.

Responses

200

List of card templates retrieved successfully

Response Fields

id integer required

Server-assigned identifier

eg. 42
uuid string required

Client-generated UUID (RFC 4122)

eg. 550E8400-E29B-41D4-A716-446655440000
name string required

Template display name, unique per account

eg. Staff Card
template_type_code string required

References a template type code

eg. ISO_CARD
card_type string

Card finish/format

eg. standard
double_sided boolean

Whether the card has a reverse side

eg. true
orientation_front string

P = Portrait, L = Landscape

eg. P
orientation_back string

P = Portrait, L = Landscape

eg. L
default_template boolean

Whether this is the account default template

background_image_front_url string | null

URL to the front background image, or null if not set

background_image_back_url string | null

URL to the back background image, or null if not set

template_objects array<object>

Free-form JSONB objects representing layout elements on this template

owner_id integer | null

ID of the user who owns this template, or null if unowned. Set server-side on create. May be reassigned via PATCH by the current owner or by any admin in the account; the new value must be the ID of an admin in the same account.

editable_by string

Who can edit this template

deleted_at string | null

Soft-delete timestamp. Null for live templates. Writable via PATCH: sending a non-null value soft-deletes the template; sending null restores it. Soft-deleted templates are excluded from index by default (see include_deleted).

deleted_by_id integer | null

ID of the user who soft-deleted this template, set server-side from the authenticated user when deleted_at is written. Cleared when deleted_at is cleared.

linked_files array<object>

Files linked to this template (images, fonts, etc.)

created_at string

ISO 8601 UTC timestamp.

updated_at string

ISO 8601 UTC timestamp.

401

Unauthorized - Invalid or missing authentication

Response Fields

error string
eg. unauthorized
error_description string
eg. The access token is invalid
403

Forbidden - User does not have permission

Response Fields

error string
eg. forbidden
error_description string
eg. You are not authorized to access this resource
500

Internal Server Error

Response Fields

error string
eg. internal_server_error
error_description string
eg. An unexpected error occurred

Request

curl -X GET \
  "https://api.doorflow.com/api/3/card_templates" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Responses

List of card templates retrieved successfully

[
  {
    "id": 42,
    "uuid": "550E8400-E29B-41D4-A716-446655440000",
    "name": "Staff Card",
    "template_type_code": "ISO_CARD",
    "card_type": "standard",
    "double_sided": true,
    "orientation_front": "P",
    "orientation_back": "L",
    "default_template": false,
    "background_image_front_url": "string",
    "background_image_back_url": "string",
    "template_objects": [
      {}
    ],
    "owner_id": 0,
    "editable_by": "string",
    "deleted_at": "string",
    "deleted_by_id": 0,
    "linked_files": [
      {
        "uuid": null,
        "entity_type": null,
        "entity_uuid": null,
        "file_role": null,
        "url": null,
        "content_type": null,
        "created_at": null,
        "updated_at": null
      }
    ],
    "created_at": "string",
    "updated_at": "string"
  }
]