Skip to main content
The Terminal API connects your point of sale (POS) devices, kiosks, or POS backend to Authsignal reader terminals for in-person digital credential verifications and payment sessions. For conceptual guidance on operating modes, locations, and POS integration, see Terminals and Locations.

In-person verifications

Core concepts

  • Reader (terminal): A dedicated terminal or Proximity SDK device that prompts the customer to present their credential over NFC, QR code, or BLE and relays the encrypted credential response to Authsignal.
  • Location: A site or counter grouping in the Terminals section of the Authsignal Portal. Every reader belongs to one location and runs that location’s configured terminal action.
  • Controller: A POS device, iPad app, or kiosk that calls the Terminal API directly from the shop floor using a short-lived, location-scoped bearer token (actl_...).
  • Server-driven backend: A POS backend server that calls the Terminal API directly using an unrestricted tenant secret key.

Authentication

The in-person verification endpoints (/v1/terminal/proximity-verifications*) accept either controller authentication or server-driven authentication, depending on how your POS integrates.

Controller authentication (POS device / kiosk)

Use controller authentication whenever a POS device, iPad, or kiosk calls Authsignal directly.
  1. Create a controller under a location in the Terminals section of the Authsignal Portal to get a single-use 10-character claim code (valid for 24 hours).
  2. Generate an EC P-256 key pair on the POS device and call Claim a controller.
  3. Sign a short-lived ES256 JWS assertion (aud: "authsignal:terminal:controller:token", sub: controllerId, exp - iat <= 60s, unique jti) and exchange it at Create a controller token for a 15-minute bearer token (actl_<controllerId>.<token>).
  4. Send the access token as a bearer token on Get controller and /v1/terminal/proximity-verifications*.
  • Access tokens are scoped strictly to the controller’s paired location. Calling a reader in another location returns 404.
  • A controller can only read or cancel verifications that it created.
  • Refreshing a token keeps the previous token valid until its original 15-minute expiry so in-flight requests do not fail.
  • Deleting a controller in the Portal immediately invalidates its access tokens.

Server-driven authentication (POS backend)

Use server-driven authentication when your POS backend calls Authsignal directly. It authenticates with HTTP Basic authentication, the same way as the Server API: your tenant secret key is the username and the password is empty.
Only call the API with your secret key from your backend server. Never embed a tenant secret key in a point of sale device, kiosk, or reader.
  • Use an unrestricted secret key from the API keys page. A restricted key returns 403.
  • If your tenant restricts API access to specific IP addresses, requests must come from an allowed IP address.
  • Server-driven callers have tenant-wide access across all locations and readers in the tenant, and can also register readers programmatically via Register a reader.

Reader setup

Register each reader into a location before sending it in-person verifications. You need:
  • Terminals enabled for your tenant, and a terminal action that defines what your readers request.
  • A location in the Terminals section of the Authsignal Portal assigned to that terminal action. Every reader in the location runs that action, and changing the location’s action applies to all readers in it.
To register a reader programmatically from your POS backend (or in the Portal):
  1. Start setup on the reader. It displays an 8-character registration code (such as K7QF-3M9X) and a QR code containing the code in its code query parameter. Codes expire after 10 minutes.
  2. Call Register a reader from your server with your secret key, the code, a label, and the terminalLocationId.
  3. The reader displays your tenant name and the reader’s label. Staff have 10 minutes to tap Confirm (or decline if it is the wrong tenant).
Store the terminalId from the response. The reader’s status is CLAIMED until staff confirm on the reader, then REGISTERED. To check status, resend the same request within 10 minutes of the last change. If staff decline, the request returns 409. You can only send verifications to a REGISTERED reader. To move a reader to another location, remove it from its current location in the Terminals section and register it again.

One verification per reader

A reader handles one in-person verification at a time. What happens to an active verification on the reader depends on whether the customer has presented their phone (by tapping NFC or showing a QR code): While an active verification has not finished, sending POST /v1/terminal/proximity-verifications again from the same caller with the same reference is treated as a retry and returns the existing verification. For server-driven callers, always send a non-empty reference; omitting it treats every request as a different sale. A replaced or cancelled verification’s status becomes CANCELLED and it never returns a result.

Payment sessions

To use payment sessions with an Authsignal terminal, obtain the terminalId from an on-boarded device and send it in the x-authsignal-terminal HTTP request header:

Region selection

Send requests to the API base URL matching your tenant’s region (and the region where the reader registered).

Download the Terminal API OpenAPI specification