API reference
Sluice API v3
A REST API with JSON bodies, bearer authentication and predictable errors. Every endpoint has a curl example you can paste into a terminal.
Authentication
Bearer secret key
Format
JSON over HTTPS
Rate limit
100 requests/s per key
Authentication
Send your secret key in the Authorization header of every request. Keys starting with sk_test_ work in test mode and keys starting with sk_live_ in live mode. Requests without a valid key get a 401.
Endpoints
Paths are relative to the base URL. Open an endpoint for its parameters and a full example.
Errors
Errors come back as JSON with a stable code you can match on and a message written for people.
400
401
404
409
422
429
500