API overview
For developers
Most systems that connect to CardOffice do not add data to it. They react to what happens there. A door access system needs to know the moment someone is deactivated. A dashboard needs the latest card and order status. A directory wants the roster kept current. This page is about those integrations: what CardOffice can tell you, what you can ask it, and where to start.
If you just want to see the shape of a real integration, start with the Quickstart. The request and response mechanics are further down this page.
Two ways to integrate
Section titled “Two ways to integrate”CardOffice tells you: webhooks
Section titled “CardOffice tells you: webhooks”The usual choice. Register a URL once, and CardOffice calls it within seconds of a change: a card is revoked, a person’s status changes, a photo is approved. There is nothing to poll. See Webhooks and the event reference.
You ask CardOffice: the REST API and sync feeds
Section titled “You ask CardOffice: the REST API and sync feeds”For pulling data on your own schedule, backfilling history, or reconciling a two-way sync, call the API directly. Sync feeds give you a cursor so you can ask “everything that changed since X” without missing or repeating rows.
Most real integrations use both: webhooks for the moment something happens, and a periodic sync feed call as a safety net in case a delivery is ever lost.
Common integrations
Section titled “Common integrations”| You are connecting | What you need | Start here |
|---|---|---|
| A door access or physical security system | React to card_holder.status_changed and card.revoked, confirm current state before acting, and fetch a person’s cards and photo |
Webhooks, event reference |
| A student management or HR system | Push people into CardOffice as your source of truth changes | Sync feeds |
| A scanner at a door, desk, printer or check-in point | Send what the scanner read and get back the person and whether their card is usable now | Identify a card |
| A dashboard or reporting tool | Pull cards and orders, or follow the change feed | Sync feeds, Cards |
| Your identity provider | Staff sign in with their work account, and your directory keeps the card holder roster current | Single sign-on, SCIM |
What you can rely on
Section titled “What you can rely on”- Photos go straight to storage. You ask for a short-lived upload link, send the file to it, then tell CardOffice it has arrived. See Photos.
- Everything belongs to one organisation. An API key belongs to one organisation and cannot see another’s data, whatever identifiers it sends.
- On-site software connects outbound only. Nothing at your site has to accept a connection from the internet.
- Writes are safe to retry. Order creation takes an idempotency key, photo finalisation can be repeated, and every webhook delivery carries a unique ID.
Base URL
Section titled “Base URL”https://app.cardoffice.nz/api/v1A self-hosted CardOffice uses its own address with the same /api/v1 path.
Requests
Section titled “Requests”- Send
Content-Type: application/jsonon requests with a body. - Authenticate every request except card verification with a bearer token. See Authentication.
- Identifiers are UUIDs. Dates are
YYYY-MM-DD; timestamps are ISO 8601. - Unknown fields in a request body are ignored. A body can be up to 1 MB.
- Call the API from your servers, never from a browser or a mobile app. A key in client-side code is a published key.
Responses
Section titled “Responses”A successful response wraps its payload in data:
{ "data": { "id": "0b5e4c1a-6a53-4d3b-9d45-3f6f6b2c9a10" } }Lists add a meta object:
{ "data": [ { "...": "..." } ], "meta": { "page": 1, "pageSize": 25, "total": 312 }}Failures use a consistent shape, including a path that matches no endpoint. See Errors.
Every response carries Cache-Control: no-store, because responses hold
names, contact details and photo links. Do not cache them in a shared cache of
your own either.
Pagination
Section titled “Pagination”List endpoints take page (from 1) and pageSize (default 25, maximum 200).
meta.total is the number of matching records.
Feeds designed for incremental synchronisation use a keyset cursor instead of page numbers. See Sync feeds.
Rate limits
Section titled “Rate limits”Each API key can make 120 requests per minute. Every response says where you stand, so an integration can pace itself rather than run into the limit:
| Header | Meaning |
|---|---|
X-RateLimit-Limit |
Requests allowed per minute |
X-RateLimit-Remaining |
Requests left in the current minute |
X-RateLimit-Reset |
Seconds until a request is next freed |
Beyond the limit the API returns 429 with a Retry-After header giving the
number of seconds to wait. If your integration needs more, talk to us.
A feed that sends thousands of people should use the batch upsert: 200 people count as one request, so a full roll of 12,000 is 60 requests rather than two hours of single calls.
Identify a card has its own allowance of 600 requests per minute per key, counted separately, so a busy scanner does not use up the key’s allowance for the rest of the API. The public verification endpoint is limited per caller IP address instead, at 120 requests per minute.
Idempotency and retries
Section titled “Idempotency and retries”POST /ordersaccepts anidempotencyKey. A repeat with the same key returns the original result with200instead of creating a second order.POST /photos/{id}/finalizecan be repeated safely.- Read requests can always be retried.
Resource reference
Section titled “Resource reference”The REST API also lets you manage card holders, photos and orders directly, for integrations whose job is adding or changing data in CardOffice rather than just reacting to it.
| Area | Endpoints |
|---|---|
| Your key | Check the key’s organisation, scopes and expiry |
| Card holders | List, create, get, update, look up by external ID, get the current photo |
| Photos | Request an upload URL, finalise an upload |
| Cards | List and read issued cards, all or one person’s |
| Identify a card | Find the person and card behind whatever a scanner read, and whether the card is usable now |
| Orders | List, create, get, submit, cancel |
| Verification | Check a card by its verification code (no key needed) |
| Sync feeds | Follow changes to cards and photos, and upsert people by your own record ID |
The full description is available as OpenAPI 3.1.
© 2026 Secure ID Ltd. All rights reserved.Documentation licence and terms