Rooms API
Detalles de como crear salas a través de nuestra VPaaS API.
Autorización
Todos los endpoints descritos a continuación utilizan la cabecera Authorization con esquema Bearer.
Un API token lo puedes obtener desde nuestro dashboard. Este deberá ser de tipo api-token el cual es el único permitido para VPaaS.
Obtén el tuyo aquí, inciar sesión.
Retrieve a paginated list of rooms for the authenticated account
Maximum number of results to return
10Example: 10Number of results to skip
0Example: 0Sort order (field:1 for asc, field:-1 for desc)
{"createdAt":-1}Filter by ended status
falseFilter by external ID
standup-2024-08-14Successful 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/jsonValores posibles: External identifier (auto-generated if not provided)
standup-2024-08-14Internal room name (auto-generated if not provided)
Team standup meetingExpiration date (defaults to +3 hours if not provided)
2024-08-14T18:00:00.000ZNot before date (defaults to now if not provided)
2024-08-14T15:00:00.000ZRoom 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
64f1a2b3c4d5e6f7a8b9c0d1Room 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
64f1a2b3c4d5e6f7a8b9c0d1Content type must be application/json
application/jsonValores posibles: Whether to generate a new access token
falseExample: falseNew expiration date
2024-08-14T18:00:00.000ZNew not before date
2024-08-14T15:00:00.000ZMark room as ended
falseNew room name
Updated meeting nameRoom 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-14Content type must be application/json
application/jsonValores 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?

