> ## 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.

# Vídeo em tempo real

> Emita um token curto para conectar o SDK de vídeo.

```bash theme={null}
curl https://swaplyapi.shardweb.app/v1/realtime/tokens   -H "Authorization: Bearer $SWAPLY_API_KEY"   -H "Content-Type: application/json"   -d '{"model":"swaply-live-2","maxSessionSeconds":120}'
```

Use o `apiKey` retornado como token de sessão. O próprio servidor emite um novo token para cada sessão. Confira `expiresAt`, `sessionSeconds` e `realtimePath` na resposta. O [módulo JavaScript do Swaply](https://swaplyapp.shardweb.app/sdk/swaply.js) exporta `createSwaplyClient`.


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