POST /rooms
Cria uma nova sala Jitsi.
- Acesso: Membro da equipe
- Serviço:
https://meet-api.axuz.net
Autenticação aceita
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`.
Slug gerado axuz-<12 hex> com até 3 retries em unique violation. team_id obrigatório se visibility=team; allowed_user_ids obrigatório se visibility=users.
Parâmetros
Sem parâmetros.
Corpo da requisição
application/json · Obrigatório
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
name | string | não | Vazio → salvo como NULL via |
visibility | string | sim |
enum: |
allowed_user_ids | array<string<uuid>> | não | Obrigatório e não-vazio se |
team_id | string<uuid> | null | não | Obrigatório se |
persistent | boolean | não | |
recording_enabled | boolean | não | |
expires_at | string<date-time> | null | não |
{
"name": "string",
"visibility": "public",
"allowed_user_ids": [
"00000000-0000-0000-0000-000000000000"
],
"team_id": "00000000-0000-0000-0000-000000000000",
"persistent": false,
"recording_enabled": false,
"expires_at": "2026-01-15T12:00:00Z"
}Respostas
201
Sala criada.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
id | string<uuid> | sim | |
team_id | string<uuid> | null | não | |
slug | string | sim | |
name | string | não | Vazio se coluna IS NULL no DB. |
visibility | string | sim |
enum: |
allowed_user_ids | array<string<uuid>> | sim | Nunca |
created_by | string<uuid> | sim | |
persistent | boolean | sim | |
recording_enabled | boolean | sim | |
created_at | string<date-time> | sim | |
expires_at | string<date-time> | null | não |
400
Input inválido.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
401
Cookie ausente ou inválido.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
403
Sem permissao (nao e owner/admin; token sem escopo; token de integracao em rota nao permitida)
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
429
Limite de requisições excedido.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
500
Erro interno — inclui fail-loud MEET-02 quando membership lookup falha.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
Exemplos
O "Try it" está desligado nesta referência. Use os exemplos com a sua credencial de teste.
curl
curl -sS -X POST 'https://meet-api.axuz.net/rooms' \
-H "Authorization: Bearer $AXUZ_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string","visibility":"public","allowed_user_ids":["00000000-0000-0000-0000-000000000000"],"team_id":"00000000-0000-0000-0000-000000000000","persistent":false,"recording_enabled":false,"expires_at":"2026-01-15T12:00:00Z"}'Node.js
const res = await fetch("https://meet-api.axuz.net/rooms", {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "string",
"visibility": "public",
"allowed_user_ids": [
"00000000-0000-0000-0000-000000000000"
],
"team_id": "00000000-0000-0000-0000-000000000000",
"persistent": false,
"recording_enabled": false,
"expires_at": "2026-01-15T12:00:00Z"
}),
});
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",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
json={
"name": "string",
"visibility": "public",
"allowed_user_ids": [
"00000000-0000-0000-0000-000000000000",
],
"team_id": "00000000-0000-0000-0000-000000000000",
"persistent": False,
"recording_enabled": False,
"expires_at": "2026-01-15T12:00:00Z",
},
timeout=30,
)
res.raise_for_status()
print(res.json())