API Reference

API Reference

REST endpoints for the seven core Servicebay resources

The Servicebay API exposes the seven core resources of an organisation through predictable REST endpoints. Pick a resource below to see its endpoints, code examples, and any quirks worth knowing about.

Resources

Base URL

All requests go to:

https://developer.servicebay.io/api/v1

Authentication

Every request must carry an X-API-Key header containing a key created in the developer portal. Each key is bound to one organisation and cannot read or write data outside it.

curl -X GET \
  'https://developer.servicebay.io/api/v1/organisations/{orgId}/customers' \
  -H 'X-API-Key: sk_live_your_api_key'

See Authentication for the full key lifecycle and Two-Factor Authentication for the portal sign-in flow.

Response envelope

Every response uses the same JSON envelope, so client code only needs one parsing path.

Success

{
  "success": true,
  "data": { /* resource payload */ }
}

Error

{
  "success": false,
  "error": "Description of what went wrong"
}

See Error Handling for the full status code reference.

Rate limits

100 requests per minute per API key. Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers so you can pace yourself. See Rate Limiting for retry patterns.

Interactive reference

For schemas, request/response examples, and a try-it-out console, browse the machine-readable OpenAPI 3.1 spec — or test endpoints live with your own API key in the API Playground.

On this page