Introduction
Sleek API documentation for cashback and more.
Base URL
As you browse the API documentation, you will note that the Sleek API is built on REST principles. We enforce HTTPS in every request to improve data security, integrity, and privacy. The API does not support HTTP.
All requests contain the following base URL:
Authentication
Private endpoints
All protected API endpoints are authenticated using Bearer tokens. To authenticate you need to add an Authorization header with the contents of the header being Bearer 12345
where 12345
is your API Key.
Public endpoints
Sleek’s API has protected and unprotected endpoints. You can find out which is which by checking the endpoint documentation. Unprotected endpoints do not require authentication. Some endpoints require public API keys, which are used for client to server communication. Public API keys are not considered sensitive or private.
Response codes
Sleek uses standard HTTP codes to indicate the success or failure of your requests.
In general, 2xx
HTTP codes correspond to success, 4xx
codes are for user-related failures, and 5xx
codes are for infrastructure issues.
Status | Description |
---|---|
200 | Successful request. |
400 | URL parameters or body was invalid. Response body contains the errors. |
401 | The API key used was missing. |
403 | Unauthorized to access resource. |
404 | The resource was not found. |
429 | The rate limit was exceeded. |
5xx | Indicates an error with Sleek servers. |