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

# Register a PTS device

> Creates a new POS terminal. `device_name` must be unique within your business; `min_points`/`max_points` bound how many points a single sale can issue (defaults 1 / 100,000). Pair the physical device afterwards with the pairing-qr endpoint or its login code.



## OpenAPI

````yaml /openapi/v1.yaml post /api/v1/devices
openapi: 3.1.0
info:
  title: Rigaly Business API
  version: '1.0'
  description: |
    Public API for businesses to manage their Rigaly loyalty programs: issue
    and redeem points, manage rewards, validate redemptions, and generate mass
    codes for physical products.

    All endpoints require an API key created in the Rigaly business dashboard
    (Tools → API Management), passed as `Authorization: Bearer rgly_sk_...`.
  contact:
    email: support@rigaly.com
servers:
  - url: https://api.rigaly.com
    description: Production
security:
  - apiKey: []
paths:
  /api/v1/devices:
    post:
      tags:
        - Devices
      summary: Register a PTS device
      description: >-
        Creates a new POS terminal. `device_name` must be unique within your
        business; `min_points`/`max_points` bound how many points a single sale
        can issue (defaults 1 / 100,000). Pair the physical device afterwards
        with the pairing-qr endpoint or its login code.
      operationId: registerDevice
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - device_name
              properties:
                device_name:
                  type: string
                  example: Front counter
                location_id:
                  type: string
                  format: uuid
                  nullable: true
                min_points:
                  type: integer
                  minimum: 1
                  maximum: 100000
                max_points:
                  type: integer
                  minimum: 1
                  maximum: 100000
      responses:
        '201':
          description: Device registered
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessEnvelope'
        '409':
          description: A device with this name already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    SuccessEnvelope:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
        data:
          type: object
    ErrorEnvelope:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            message:
              type: string
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'API key from the Rigaly dashboard: `Authorization: Bearer rgly_sk_...`'

````