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

# Gerar token 3DS

> Gera o access token JWT necessário para iniciar o fluxo de autenticação 3DS.



## OpenAPI

````yaml POST /v1/3ds/generateToken
openapi: 3.0.0
info:
  title: UvviPay Public API
  description: >-
    Endpoints públicos da plataforma UvviPay para integração de subcontas
    (submerchants).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.uvvipay.com.br
    description: Produção
  - url: https://api-staging.uvvipay.com.br
    description: Staging
security:
  - client-id: []
    client-secret: []
tags: []
paths:
  /v1/3ds/generateToken:
    post:
      tags:
        - 3DS
      summary: Gerar token 3DS
      description: >-
        Gera o access token JWT necessário para iniciar o fluxo de autenticação
        3DS.
      operationId: generate3dsToken
      parameters:
        - name: client-secret
          in: header
          description: Secret da credencial do merchant
          required: true
          schema:
            type: string
        - name: client-id
          in: header
          description: ID público da credencial do merchant
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateTokenRequestDto'
      responses:
        '200':
          description: Token gerado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateTokenResponseDto'
        '400':
          description: Erro de validação
        '401':
          description: Credenciais inválidas ou ausentes
components:
  schemas:
    GenerateTokenRequestDto:
      type: object
      properties:
        totalAmount:
          type: integer
          minimum: 1
          description: Valor total em centavos
          example: 1050
        currency:
          type: string
          example: BRL
          default: BRL
      required:
        - totalAmount
    GenerateTokenResponseDto:
      type: object
      properties:
        status:
          type: integer
          example: 200
        message:
          type: string
          example: SUCCESSFUL
        data:
          type: array
          items:
            $ref: '#/components/schemas/TokenDataDto'
        error:
          type: array
          items:
            type: object
          example:
            - {}
    TokenDataDto:
      type: object
      properties:
        accessToken:
          type: string
          example: eyJhbGciOiJIUzI1NiJ9...
        tokenType:
          type: string
          example: bearer
        expirationDate:
          type: string
          example: '2026-01-15T16:25:24.241'
  securitySchemes:
    client-id:
      type: apiKey
      in: header
      name: client-id
    client-secret:
      type: apiKey
      in: header
      name: client-secret

````