POST /rooms/{id}/token
Assina JWT Jitsi pro caller autenticado.
- Access: Team member
- Service:
https://meet-api.axuz.net
Accepted authentication
sessionCookie— Sessão plena Axuz (cookie de sessão da casa). Sessão restrita é 403 enrollment_required.bearerSession— JWT de acesso da sessão em `Authorization: Bearer`.
Passa por canAccess; sem acesso → 404 idêntico ao de sala inexistente (W-012). moderator=true sse caller é created_by. Loga meet_participants best-effort (falha só WARN, não aborta o mint). JWT válido por 1h (ExpiresAt).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | UUID da meet_room. |
Request body
Corpo JSON. O schema detalhado deste endpoint ainda não está tipado na spec; veja a descrição da operação.
application/json
| Name | Type | Required | Description |
|---|---|---|---|
(corpo) | object | no |
{}Responses
200
Token assinado.
| Name | Type | Required | Description |
|---|---|---|---|
room_slug | string | yes | |
join_url | string<uri> | yes |
|
jwt | string | yes | JWT HS256 RFC 7519 no formato lib-jitsi-meet: claims |
expires_at | string<date-time> | yes | TTL padrão 1h. |
guest_id | string<uuid> | no | Presente só nas rotas |
400
Input inválido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
401
Cookie ausente ou inválido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
403
Autenticado mas sem permissão (ACL não passa).
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
404
Sala inexistente (ou privada, anti-enumeração).
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
429
Limite de requisições excedido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
500
Erro interno — inclui fail-loud MEET-02 quando membership lookup falha.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
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/token' \
-H "Authorization: Bearer $AXUZ_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'Node.js
const res = await fetch("https://meet-api.axuz.net/rooms/ID/token", {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
});
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/token",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
json={},
timeout=30,
)
res.raise_for_status()
print(res.json())