> ## Documentation Index
> Fetch the complete documentation index at: https://docs.authsignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a controller token

> Exchange a signed ES256 JWS bearer assertion for a 15-minute (`expiresIn: 900`), location-scoped token (`actl_...`).

Required JWS claims: `aud` (`"authsignal:terminal:controller:token"`), `sub` (`controllerId`), `iat` (Unix seconds), `exp` (<= `iat + 60`), unique single-use `jti` (max 128 chars). Previous tokens stay valid until expiry.



## OpenAPI

````yaml terminal-api POST /terminal/controllers/{controllerId}/token
openapi: 3.0.0
info:
  description: Authsignal's Terminal API.
  version: 1.0.0
  title: Terminal API
  termsOfService: https://www.authsignal.com/legal/terms-of-service
  contact:
    email: hello@authsignal.com
servers:
  - url: https://api.authsignal.com/v1
  - url: https://au.api.authsignal.com/v1
  - url: https://eu.api.authsignal.com/v1
  - url: https://ca.api.authsignal.com/v1
  - url: https://uk.api.authsignal.com/v1
security:
  - terminalAuth: []
tags:
  - name: reader
    description: ''
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
  - name: controller
    description: ''
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
  - name: in-person-verification
    description: ''
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
  - name: payment-session
    description: ''
    externalDocs:
      description: Find out more
      url: https://docs.authsignal.com
externalDocs:
  description: Find out more about Authsignal
  url: https://docs.authsignal.com
paths:
  /terminal/controllers/{controllerId}/token:
    post:
      tags:
        - controller
      summary: Create a controller token
      description: >-
        Exchange a signed ES256 JWS bearer assertion for a 15-minute
        (`expiresIn: 900`), location-scoped token (`actl_...`).


        Required JWS claims: `aud` (`"authsignal:terminal:controller:token"`),
        `sub` (`controllerId`), `iat` (Unix seconds), `exp` (<= `iat + 60`),
        unique single-use `jti` (max 128 chars). Previous tokens stay valid
        until expiry.
      operationId: createControllerToken
      parameters:
        - $ref: '#/components/parameters/controllerId'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                device:
                  $ref: '#/components/schemas/ControllerDevice'
              additionalProperties: false
            example:
              device:
                model: iPad14,3
                appVersion: 1.0.0
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ControllerToken'
        '400':
          description: >-
            `invalid_request` (bad body) or `invalid_configuration` (terminals
            disabled).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, expired, or reused device assertion.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Controller, tenant, or location not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - controllerAssertionAuth: []
components:
  parameters:
    controllerId:
      name: controllerId
      in: path
      description: Paired controller ID.
      required: true
      schema:
        type: string
  schemas:
    ControllerDevice:
      type: object
      description: Optional POS or kiosk metadata.
      properties:
        model:
          type: string
          maxLength: 100
        appVersion:
          type: string
          maxLength: 100
        sdkVersion:
          type: string
          maxLength: 100
      additionalProperties: false
    ControllerToken:
      type: object
      properties:
        accessToken:
          type: string
          description: Location-scoped bearer token (`actl_...`).
        expiresAt:
          type: string
          format: date-time
          description: Token expiry time.
        expiresIn:
          type: integer
          description: Token lifetime in seconds (900).
      required:
        - accessToken
        - expiresAt
        - expiresIn
      example:
        accessToken: >-
          actl_2d8e4b90-7c1a-4f3b-9e6d-5a4c3b2f1e0d.ExampleTokenValue1234567890abcdefghijk
        expiresAt: '2026-11-25T03:15:00.000Z'
        expiresIn: 900
    Error:
      type: object
      properties:
        error:
          type: string
        errorCode:
          type: string
        errorDescription:
          type: string
      example:
        error: verification_in_progress
        errorCode: verification_in_progress
        errorDescription: ''
  securitySchemes:
    terminalAuth:
      type: apiKey
      in: header
      name: x-authsignal-terminal
      description: On-boarded device terminal ID for payment session endpoints.
    controllerAssertionAuth:
      type: http
      scheme: bearer
      description: Compact ES256 JWS signed with the controller's EC P-256 private key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.