Saltar al contenido principal

Get Service

Retrieve a service or list services from the calendar system.

List Services

GET /v2/services

Headers

NameRequiredDescription
x-api-keyYesYour API key
x-api-secretYesYour API secret

Query Parameters

ParameterTypeRequiredDescription
pagenumberNoPage number (default: 1)
limitnumberNoItems per page (default: 10)
searchstringNoSearch term to filter services by name
sortBystringNoField to sort by (name, createdAt, updatedAt)
sortOrderstringNoSort order (asc, desc)

Response

{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Professional Consultation",
"description": "A comprehensive consultation service",
"imageUrl": "https://example.com/service-image.png",
"dateRanges": [
{
"start": "2025-05-22T10:30:00Z",
"end": "2025-05-22T18:30:00Z"
}
],
"bookingOptions": {
"duration": 60,
"bufferTime": 15,
"maxParticipants": 1,
"autoAccept": true
}
}
],
"meta": {
"page": 1,
"limit": 10,
"total": 1
}
}

Get Single Service

GET /v2/services/:id

Headers

NameRequiredDescription
x-api-keyYesYour API key
x-api-secretYesYour API secret

URL Parameters

ParameterTypeDescription
idstringThe ID of the service to fetch

Response

{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Professional Consultation",
"description": "A comprehensive consultation service",
"imageUrl": "https://example.com/service-image.png",
"dateRanges": [
{
"start": "2025-05-22T10:30:00Z",
"end": "2025-05-22T18:30:00Z"
}
],
"bookingOptions": {
"duration": 60,
"bufferTime": 15,
"maxParticipants": 1,
"autoAccept": true
}
}

Error Responses

StatusDescription
401Unauthorized - Invalid API key or secret
403Forbidden - Insufficient permissions
404Not Found - Service does not exist