# Criar link de chamada

`POST /call/link/create`

Pasta: **Chamadas**

## Autenticação

```http
token: {{token}}
```

## Descrição

# Criar link de chamada

Gera um link reutilizável `call.whatsapp.com` (voz ou vídeo). Funciona em instâncias mobile e companion.

## Endpoint

``` http
POST {{baseUrl}}/call/link/create
```

## Autenticação

``` http
token: {{token}}
```

## Corpo

``` json
{
  "media": "audio",
  "waiting_room": false,
  "event_start_time": 0
}
```

## Resposta

``` json
{
  "success": true,
  "link": {
    "token": "AbCtoken",
    "media": "audio",
    "url": "https://call.whatsapp.com/voice/AbCtoken"
  }
}
```

## Observações

`media`: `audio` (padrão) ou `video`. `waiting_room` ativa sala de espera na criação. `event_start_time` (Unix segundos) é opcional para links agendados. Use o `token` retornado em `/call/link/waiting-room`.

## Corpo (exemplo)

```json
{
  "media": "audio",
  "waiting_room": false,
  "event_start_time": 0
}
```

## cURL

```bash
curl -X POST "{{baseUrl}}/call/link/create" \
  -H "token: {{token}}" \
  -H "Content-Type: application/json" \
  -d '{
  "media": "audio",
  "waiting_room": false,
  "event_start_time": 0
}'
```

---

[Índice da pasta](./index.md) · [Índice geral](../index.md) · [UI](https://gozap.dev/docs?op=chamadas/criar-link-de-chamada)
