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
All protected API endpoints are authenticated using Bearer tokens. To authenticate you need to add an Authorization header with the contents of the header beingBearer 12345 where 12345 is your API Key.
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. |

