Skip to main content

Authentication

The Onset API uses API keys to authenticate requests. You can view and manage your API keys in the Onset Dashboard.

Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.

Authentication to the API is performed via HTTP Basic Auth. Provide your API key as the basic auth username value. You do not need to provide a password.

curl https://api.onset.io/v1/organization \
-u {API_KEY}:
curl https://api.onset.io/v1/organization \
-H 'Authorization: Bearer {API_KEY}'