Get Calendar
This endpoint allows you to retrieve information about specific calendars and list all calendars with optional filtering and pagination.
πΉ Endpoint Detailsβ
Get Single Calendarβ
GET /api/v1/calendars/{id}
List Calendarsβ
GET /api/v1/calendars
π Authenticationβ
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Format: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature |
π Request Parametersβ
Path Parameters (Get Single Calendar)β
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| id | string (UUID) | Yes | Unique identifier of the calendar | 123e4567-e89b-12d3-a456-426614174000 |
Query Parameters (List Calendars)β
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
| page | number | No | Page number for pagination | 1 |
| limit | number | No | Items per page | 20 |
| type | string | No | Filter by calendar type (agent/asset) | - |
| search | string | No | Search in name or tags | - |
| userGroupId | string | No | Filter by user group ID | - |
π§© Request Examplesβ
Get Single Calendarβ
curl -X GET "https://openapi.onlive.site/api/v1/calendars/123e4567-e89b-12d3-a456-426614174000" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"
List Calendars with Filteringβ
curl -X GET "https://openapi.onlive.site/api/v1/calendars?page=1&limit=10&type=agent&userGroupId=123e4567-e89b-12d3-a456-426614174000" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"
π€ Response Formatβ
Single Calendar Response (200 OK)β
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "cal-12345",
"name": "Work Calendar",
"timezone": "America/New_York",
"type": "agent",
"organizationId": "26d47eec-c742-4b1c-9d70-9a1486260abd",
"extraFields": {
"location": "New York Office",
"capacity": 10
},
"email": "[email protected]",
"tags": ["sales", "support"],
"createdAt": "2025-05-22T10:30:00Z",
"updatedAt": "2025-05-22T10:30:00Z"
}
List Response (200 OK)β
{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"externalId": "cal-12345",
"name": "Work Calendar",
"timezone": "America/New_York",
"type": "agent",
"organizationId": "26d47eec-c742-4b1c-9d70-9a1486260abd",
"extraFields": {
"location": "New York Office",
"capacity": 10
},
"email": "[email protected]",
"tags": ["sales", "support"]
}
],
"total": 45,
"page": 1,
"limit": 10,
"pages": 5
}
β Error Responsesβ
This endpoint follows the standard error format.