Axuz Developers

POST /rooms/{id}/anonymous-token

Assina JWT pra guest anônimo (só sala public).

  • Access: Public
  • Service: https://meet-api.axuz.net

Accepted authentication

No authentication (public route, or protected by link/signature).

Grupo OptionalAuth — cookie de sessão é reconhecido mas não exigido. Sala com visibility != public responde 404 not found, idêntico ao de sala inexistente (W-012). guest_name obrigatório. Retorna também guest_id (uuid v4 novo por token).

Parameters

NameInTypeRequiredDescription
idpathstringyes

UUID da meet_room.

Request body

application/json · Required

NameTypeRequiredDescription
guest_namestringyes

Trim aplicado; vazio → 400.

emailstring<email>no
{
  "guest_name": "string",
  "email": "pessoa@example.test"
}

Responses

200

Token assinado.

NameTypeRequiredDescription
room_slugstringyes
join_urlstring<uri>yes

{MEET_JITSI_EXTERNAL_URL}/{slug}?jwt={jwt} — mount direto no iframe.

jwtstringyes

JWT HS256 RFC 7519 no formato lib-jitsi-meet: claims aud/iss/sub/room/exp/iat/context.user{id,name,email,moderator} + context.features.recording. moderator e recording são strings "true"/"false" (compat prosody antigo).

expires_atstring<date-time>yes

TTL padrão 1h.

guest_idstring<uuid>no

Presente só nas rotas anonymous-token — uuid v4 gerado por token (não persistido em users).

400

Input inválido.

NameTypeRequiredDescription
errorstringyes

404

Sala inexistente (ou privada, anti-enumeração).

NameTypeRequiredDescription
errorstringyes

429

Limite de requisições excedido.

NameTypeRequiredDescription
errorstringyes

500

Erro interno — inclui fail-loud MEET-02 quando membership lookup falha.

NameTypeRequiredDescription
errorstringyes

Examples

"Try it" is turned off in this reference. Use the examples with your test credential.

curl

curl -sS -X POST 'https://meet-api.axuz.net/rooms/ID/anonymous-token' \
  -H "Content-Type: application/json" \
  -d '{"guest_name":"string","email":"pessoa@example.test"}'

Node.js

const res = await fetch("https://meet-api.axuz.net/rooms/ID/anonymous-token", {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "guest_name": "string",
    "email": "pessoa@example.test"
  }),
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());

Python

import os
import requests

res = requests.request(
    "POST",
    "https://meet-api.axuz.net/rooms/ID/anonymous-token",
    json={
        "guest_name": "string",
        "email": "pessoa@example.test",
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())