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

# Token

> Authentication is required for all requests except Pairing. Once you have the credentials from the pairing process, proceed with the integration instructions.



## OpenAPI

````yaml POST /v1/auth/token/
openapi: 3.1.0
info:
  title: Pay-Connect API
  description: >-
    Pay-Connect is a unified payment integration platform that enables reliable
    communication between software applications and payment terminals. With a
    single integration, developers can manage terminals, execute payment
    operations, and retrieve transaction data consistently across hardware and
    platforms.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api-payment.lab4pay.com
  - url: https://api-payment.lab4pay.dev
security:
  - bearerAuth: []
paths:
  /v1/auth/token/:
    post:
      description: >-
        Authentication is required for all requests except Pairing. Once you
        have the credentials from the pairing process, proceed with the
        integration instructions.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthenticationTokenBody'
        required: true
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationTokenResponse'
        '400':
          description: Bad Request
        '500':
          description: Internal Server Error
      security: []
components:
  schemas:
    AuthenticationTokenBody:
      required:
        - grant_type
        - client_id
        - client_secret
      type: object
      properties:
        grant_type:
          description: Grant type
          type: string
          default: client_credentials
        client_id:
          description: Client ID returned in Pairing section
          type: string
        client_secret:
          description: Client secret returned in Pairing section
          type: string
    AuthenticationTokenResponse:
      required:
        - access_token
        - expires_in
        - token_type
        - scope
      type: object
      properties:
        access_token:
          description: Access token
          type: string
        expires_in:
          description: Token validity
          type: string
        token_type:
          description: Token type
          type: string
          default: Bearer
        scope:
          description: Scope
          type: string
          default: default
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````