Authentication to Aurora Solar's API is granted through API keys (bearer tokens). Please contact your Aurora Account Executive or the Aurora support team at [email protected] to generate your key.
API keys (bearer tokens) have a meaningful prefix to help with key management. The prefix consists of:
- The type of token:
sk_: A "Standard Key", which grants access to all API actions for a single tenant.
- 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
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"