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β
401 Unauthorizedβ
{
"statusCode": 401,
"message": "Invalid or missing authorization credentials"
}
403 Forbiddenβ
{
"statusCode": 403,
"message": "User does not have permission to access this calendar"
}
404 Not Foundβ
{
"statusCode": 404,
"message": "Calendar not found"
}
π Notesβ
- All timestamps are in ISO 8601 format with UTC timezone
- The list endpoint supports pagination through
page
andlimit
parameters - Search is case-insensitive and matches:
- Calendar name
- Tags
- External ID
- Results are sorted by creation date in descending order (newest first)
- The
organizationId
is automatically applied from your authentication token
β Common Use Casesβ
- π Calendar Lookup: Find specific calendars by ID
- π Resource Directory: List all calendars in your organization
- π Resource Search: Find calendars by name or tags
- π₯ Group Management: List calendars in a specific group
- π± Type Filtering: Filter agent or asset calendars
- π Pagination: Handle large sets of calendars efficiently
π Search Tipsβ
-
Partial Matching
- Search "sales" matches calendars with "sales" tag or name
- Search "room" matches "Meeting Room", "Room 101"
- Search "NY" matches "NY Office Calendar"
-
Performance
- Use appropriate page sizes (10-50 items)
- Cache frequently accessed calendar details
- Use specific filters when possible