Authentication to Aurora Solar's API is granted through API keys (bearer tokens). An Admin user for your tenant can create, retrieve, and, if necessary, rotate the keys using the API Tokens screen in Aurora.



API Keys

API keys (bearer tokens) have a meaningful prefix to help with key management. The prefix consists of:

  1. The type of token:
  • sk_: A "Standard Key", which grants access to all API actions for a single tenant.
  1. The environment:
  • sand_: The key grants access to the sandbox environment.
  • prod_: The key grants access to the production environment.

For example, a key that grants access to all API actions for a single tenant on production would look like sk_prod_LXknKczQYkniVtMpRYs8wJgk.

In order to authenticate a request using Bearer Token auth, you need to pass the API key through the Authorization header and also prefix the entire key with Bearer. For example, an authenticated curl request would include the following: -H "Authorization: Bearer sk_prod_LXknKczQYkniVtMpRYs8wJgk"

Related Tutorials: