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:

https://api.onsleek.io

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.

Your Sleek API key is a private key. Ensure your private keys are kept secure.
Authorization: Bearer 12345

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.

StatusDescription
200Successful request.
400URL parameters or body was invalid. Response body contains the errors.
401The API key used was missing.
403Unauthorized to access resource.
404The resource was not found.
429The rate limit was exceeded.
5xxIndicates an error with Sleek servers.