REST API
Read and write Servicely records over HTTP, batch requests, sign them with HMAC and build custom endpoints.
This section is for developers who connect external systems to Servicely over HTTP. The JSON REST API at /v1/ reads and writes the records of any table the caller may access, and system controllers add endpoints you script yourself. Start with the quick start to check your token, then look up parameters, operators and status codes in the reference pages.
Start here
- Quick startAuthenticate with a System API token and read your first records from the Servicely REST API.Developer
- Query records and operatorsGET request format, query parameters, response headers and the JSON query operators of the REST API, with a request and response for each.Developer
- Create, update and delete recordsPOST, PUT, PATCH and DELETE requests of the REST API: URL forms, bodies, responses, status codes and validation errors.Developer
- Custom endpointsHow a system controller exposes a scripted endpoint at /controller/<name>, the variables its script receives and the controller methods that shape the response.Developer
In this section
Quick start
Authenticate with a System API token and read your first records from the Servicely REST API.
Developer2 minQuery records and operators
GET request format, query parameters, response headers and the JSON query operators of the REST API, with a request and response for each.
Developer3 minCreate, update and delete records
POST, PUT, PATCH and DELETE requests of the REST API: URL forms, bodies, responses, status codes and validation errors.
Developer2 minBatch requests
Send several REST API requests in one call to the batch endpoint, and read each request's status, body and timing from one response.
Developer1 minSign requests with HMAC
Build the string to sign, compute the HMAC signature and send the headers that let Servicely verify a signed REST request.
Developer2 minCustom endpoints
How a system controller exposes a scripted endpoint at /controller/<name>, the variables its script receives and the controller methods that shape the response.
Developer2 min