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

# Exchange assertion JWT for access token



## OpenAPI

````yaml /openapi/partner.openapi.yaml post /auth/v1/partner/token
openapi: 3.1.0
info:
  title: IMBA Partner API
  version: 1.0.0
  summary: B2B Partner API for USDT settlement, cards, eSIM, and gift cards
  description: |
    Logical REST surface for IMBA B2B partners.

    - API base URL: `https://api.imbawallet.com`
    - Human docs: `https://api-docs.imbawallet.com`
    - Authenticate with `POST /auth/v1/partner/token` (assertion JWT), then call
      Partner endpoints with `Authorization: Bearer <access_token>`.
    - Amounts are decimal strings. Timestamps are UTC RFC 3339.
  contact:
    name: IMBA Partner Support
    email: support@imbawallet.com
  license:
    name: Proprietary
    url: https://imbawallet.com
servers:
  - url: https://api.imbawallet.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Auth
    description: Assertion JWT → access token
  - name: Balance
    description: Partner settlement balance
  - name: Deposit
    description: Sticky USDT TRC-20 deposit address
  - name: Withdrawals
    description: USDT withdrawals from partner balance
  - name: Cards
    description: Card catalog, issue, secrets, topup, freeze
  - name: eSIM
    description: eSIM offers, purchase, topup
  - name: Gift cards
    description: Gift offers and purchases
  - name: Documents
    description: Poll async documents by ext_id
  - name: Reconciliation
    description: Ledger lines for partner books
paths:
  /auth/v1/partner/token:
    post:
      tags:
        - Auth
      summary: Exchange assertion JWT for access token
      operationId: createPartnerAccessToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - assertion
              properties:
                assertion:
                  type: string
                  description: Short-lived EdDSA JWT signed with partner Ed25519 key
            example:
              assertion: eyJhbGciOiJFZERTQSIsImtpZCI6ImtleV8xIn0...
      responses:
        '200':
          description: Access token issued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '401':
          $ref: '#/components/responses/Error'
      security: []
components:
  schemas:
    TokenResponse:
      type: object
      required:
        - access_token
        - token_type
        - expires_in
      properties:
        access_token:
          type: string
        token_type:
          type: string
          example: Bearer
        expires_in:
          type: integer
          example: 900
    Error:
      type: object
      required:
        - error
        - message
        - request_id
      properties:
        error:
          type: string
          example: insufficient_balance
        message:
          type: string
        request_id:
          $ref: '#/components/schemas/RequestId'
    RequestId:
      type: string
      format: uuid
      description: Correlation id for support
  responses:
    Error:
      description: Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Access token from POST /auth/v1/partner/token

````