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

# Emitir token de vídeo



## OpenAPI

````yaml /openapi.json post /v1/realtime/tokens
openapi: 3.0.3
info:
  title: Swaply API
  version: 1.0.0
  description: >-
    Integre vídeo ao vivo, troca de personagem e geração de imagens pelo seu
    servidor.
servers:
  - url: https://swaplyapi.shardweb.app
security:
  - bearerAuth: []
paths:
  /v1/realtime/tokens:
    post:
      tags:
        - Tempo real
      summary: Emitir token de vídeo
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  enum:
                    - swaply-live-2
                maxSessionSeconds:
                  type: integer
                  minimum: 10
                allowedOrigins:
                  type: array
                  items:
                    type: string
      responses:
        '201':
          description: Token emitido
        '402':
          description: Saldo insuficiente
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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