> ## 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.

# Claim a controller

> Pair a POS device or kiosk as a location controller using a single-use 10-character claim code (24-hour expiry) and an EC P-256 public key JWK. Unauthenticated; store `controllerId` with your private key.



## OpenAPI

````yaml terminal-api POST /terminal/controllers/claim
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/claim:
    post:
      tags:
        - controller
      summary: Claim a controller
      description: >-
        Pair a POS device or kiosk as a location controller using a single-use
        10-character claim code (24-hour expiry) and an EC P-256 public key JWK.
        Unauthenticated; store `controllerId` with your private key.
      operationId: claimController
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                code:
                  type: string
                  maxLength: 30
                  description: >-
                    Single-use 10-character Portal claim code (case and dashes
                    do not matter).
                publicKey:
                  $ref: '#/components/schemas/EcPublicKeyJwk'
                device:
                  $ref: '#/components/schemas/ControllerDevice'
              required:
                - code
                - publicKey
              additionalProperties: false
            example:
              code: ABCD-EFGH-JK
              publicKey:
                kty: EC
                crv: P-256
                x: f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU
                'y': x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0
              device:
                model: iPad14,3
                appVersion: 1.0.0
                sdkVersion: 0.1.0
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClaimedController'
        '400':
          description: >-
            `invalid_request` (bad body or `publicKey`) or
            `invalid_configuration` (terminals disabled).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Invalid, used, or expired claim code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    EcPublicKeyJwk:
      type: object
      description: EC P-256 public key (JWK).
      properties:
        kty:
          type: string
          enum:
            - EC
        crv:
          type: string
          enum:
            - P-256
        x:
          type: string
          description: Base64url 32-byte X coordinate.
        'y':
          type: string
          description: Base64url 32-byte Y coordinate.
      required:
        - kty
        - crv
        - x
        - 'y'
      additionalProperties: false
    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
    ClaimedController:
      type: object
      properties:
        controllerId:
          type: string
          description: Paired controller ID; store with your private key.
        name:
          type: string
          description: Controller name from the Portal.
        location:
          $ref: '#/components/schemas/ControllerLocation'
        tenantName:
          type: string
          description: Tenant display name.
      required:
        - controllerId
        - name
        - location
        - tenantName
      example:
        controllerId: 2d8e4b90-7c1a-4f3b-9e6d-5a4c3b2f1e0d
        name: Front Bar iPad
        location:
          terminalLocationId: 3f6c2a9e-1b7d-4e8a-9c52-7a1d0e4b8f13
          name: Auckland
        tenantName: Acme Bar
    Error:
      type: object
      properties:
        error:
          type: string
        errorCode:
          type: string
        errorDescription:
          type: string
      example:
        error: verification_in_progress
        errorCode: verification_in_progress
        errorDescription: ''
    ControllerLocation:
      type: object
      properties:
        terminalLocationId:
          type: string
          description: Location ID.
        name:
          type: string
          description: Location display name.
      required:
        - terminalLocationId
        - name
  securitySchemes:
    terminalAuth:
      type: apiKey
      in: header
      name: x-authsignal-terminal
      description: On-boarded device terminal ID for payment session endpoints.

````

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