Rooms
Detalles de como crear salas a través de nuestra VPaaS API.
Retrieve a paginated list of rooms for the authenticated account
Maximum number of results to return
10
Example: 10
Number of results to skip
0
Example: 0
Sort order (field:1 for asc, field:-1 for desc)
{"createdAt":-1}
Filter by ended status
false
Filter by external ID
standup-2024-08-14
Successful response
Unauthorized - Invalid or missing API token
Forbidden - Insufficient permissions
Internal server error
GET /vpaas/rooms HTTP/1.1
Host: api.videsk.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"total": 25,
"limit": 10,
"skip": 0,
"data": [
{
"id": "64f1a2b3c4d5e6f7a8b9c0d1",
"name": "Team standup meeting",
"externalId": "standup-2024-08-14",
"exp": "2024-08-14T18:00:00.000Z",
"nbf": "2024-08-14T15:00:00.000Z",
"authorizations": [
{
"ip": "192.168.1.1",
"jti": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"createdAt": "2024-08-14T15:00:00.000Z"
}
]
}
]
}
Create a new video room with optional configuration
Content type must be application/json
application/json
Valores posibles: External identifier (auto-generated if not provided)
standup-2024-08-14
Internal room name (auto-generated if not provided)
Team standup meeting
Expiration date (defaults to +3 hours if not provided)
2024-08-14T18:00:00.000Z
Not before date (defaults to now if not provided)
2024-08-14T15:00:00.000Z
Room configuration settings
{"maxParticipants":10,"recordingEnabled":true}
Room created successfully
Bad request - Invalid input data
Unauthorized
Conflict - externalId already exists
Internal server error
POST /vpaas/rooms HTTP/1.1
Host: api.videsk.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"name": "Team standup meeting",
"externalId": "standup-2024-08-14"
}
{
"id": "64f1a2b3c4d5e6f7a8b9c0d1",
"name": "Team standup meeting",
"externalId": "standup-2024-08-14",
"exp": "2024-08-14T18:00:00.000Z",
"nbf": "2024-08-14T15:00:00.000Z",
"authorizations": [
{
"ip": "192.168.1.1",
"jti": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"createdAt": "2024-08-14T15:00:00.000Z"
}
],
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Retrieve a specific room by its ID or externalId
Room ID (ObjectId) or external ID
64f1a2b3c4d5e6f7a8b9c0d1
Room found
Unauthorized
Room not found
Internal server error
GET /vpaas/rooms/{roomId} HTTP/1.1
Host: api.videsk.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "64f1a2b3c4d5e6f7a8b9c0d1",
"name": "Team standup meeting",
"externalId": "standup-2024-08-14",
"exp": "2024-08-14T18:00:00.000Z",
"nbf": "2024-08-14T15:00:00.000Z",
"authorizations": [
{
"ip": "192.168.1.1",
"jti": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"createdAt": "2024-08-14T15:00:00.000Z"
}
]
}
Room deletion is not permitted through the API
Forbidden - Room deletion not allowed
DELETE /vpaas/rooms/{roomId} HTTP/1.1
Host: api.videsk.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Forbidden - Room deletion not allowed
{
"name": "Forbidden",
"message": "Not allowed",
"code": 403,
"className": "forbidden"
}
Update room properties like expiration, name, or end status. Can optionally generate new access token.
Room ID (ObjectId) or external ID
64f1a2b3c4d5e6f7a8b9c0d1
Content type must be application/json
application/json
Valores posibles: Whether to generate a new access token
false
Example: false
New expiration date
2024-08-14T18:00:00.000Z
New not before date
2024-08-14T15:00:00.000Z
Mark room as ended
false
New room name
Updated meeting name
Room updated successfully
Bad request
Unauthorized
Room not found or already ended
Internal server error
PATCH /vpaas/rooms/{roomId} HTTP/1.1
Host: api.videsk.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"exp": "2024-08-14T20:00:00.000Z",
"generateToken": true
}
{
"id": "64f1a2b3c4d5e6f7a8b9c0d1",
"name": "Team standup meeting",
"externalId": "standup-2024-08-14",
"exp": "2024-08-14T18:00:00.000Z",
"nbf": "2024-08-14T15:00:00.000Z",
"authorizations": [
{
"ip": "192.168.1.1",
"jti": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"createdAt": "2024-08-14T15:00:00.000Z"
}
],
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Generate access token to join an existing room
Room ID (ObjectId) or external ID to join
standup-2024-08-14
Content type must be application/json
application/json
Valores posibles: Optional request body (currently no additional parameters required)
Successfully joined room
Bad request - Missing room ID or invalid parameters
Unauthorized
Forbidden - Insufficient permissions
Internal server error
POST /vpaas/rooms/{roomId}/join HTTP/1.1
Host: api.videsk.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 2
{}
{
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Última actualización
¿Te fue útil?