Providers API
List
GET /providers/get/ returns the configured provider properties.
Edit provider restrictions
POST /providers/edit/ requires a JSON body containing id. It updates only these properties, and ignores any other key:
| Property | Type | What it does |
|---|---|---|
tbk_RestrictServices | boolean | Turns on Restrict services for the provider. |
tbk_AllowedServices | array of service IDs | The services the provider can offer when Restrict services is on. |
tbk_Paused | boolean | Pauses (true) or resumes (false) the provider. See Pause a provider. |
{
"id": 12,
"tbk_Paused": true
}
A value of tbk_Paused that is not a boolean returns 422, and nothing is saved. The endpoint is not a generic WordPress user editor.
Edit provider service settings
POST /providers/edit/service/?serviceId=s_example&providerId=12
Use this endpoint only for provider/service properties accepted by the current public route. Service-scoped duration and buffer settings must be changed on the service, not as provider overrides.
Response
GET /providers/get/ returns the providers in response. The fields follow the Provider schema of the API reference; values here are examples.
{
"status": "OK",
"response": [
{
"id": 12,
"name": "Clara Whitfield",
"email": "clara@example.com"
}
]
}
Errors
| HTTP status | When |
|---|---|
400 | The request is not valid. |
401 | The token is missing or not valid. |
403 | The token has no write scope. |
404 | No provider, or no service, has this ID. |
422 | tbk_Paused is not a boolean. |