Skip to main content

List services

GET /services/get/

What It Does

Read the appointment services exposed by the site. Use this before asking users to pick a service in an external flow.

Authentication

Requires an API token with the read scope. Send it as a bearer token or with the configured API key header.

Parameters

NameLocationRequiredTypeDescription
fullqueryNobooleanInclude stored data properties.

Request Body

This endpoint does not require a JSON request body.

Responses

StatusMeaningDescriptionBody
200SuccessServicesOkEnvelope + object
401Authentication requiredMissing or invalid API tokenWpRestError

Request Example

curl -X GET "https://example.com/wp-json/thebooking/v1/API/services/get/?full=true" \
-H "Authorization: Bearer $TBK_API_TOKEN"

Success Response Example

{
"status": "OK",
"response": [
{
"id": "resource_123",
"name": "Example name",
"description": "string",
"class": "appointment",
"color": "string",
"data": {}
}
]
}