Authentication
The Juno Developer API uses a single API Key for authentication. Every request must include your API Key in the X-API-Key request header.
Headers
| Header | Description |
|---|---|
X-API-Key | Your private API Key used to authenticate requests. |
Example
curl -X GET "https://api.usejuno.io/v1/developer/rankings" \
-H "X-API-Key: your_api_key_here"
Obtaining Credentials
API credentials are generated directly from your Juno dashboard:
- Log in to your Juno account.
- Navigate to Settings.
- Click on the Developer tab.
- Click Generate New API Key.
- Copy the key immediately and store it securely.
⚠️ Caution: Your API Key carries the same privileges as your user account. Keep it secret. Do not expose it in client-side code or public repositories.
Security Best Practices
- Store credentials in environment variables or a secrets manager.
- Use server-to-server calls. Do not expose credentials in client-side code.
- Rotate keys immediately if a compromise is suspected.
Error Responses
| Status | Meaning |
|---|---|
401 | Missing or invalid credentials |
{
"statusCode": 401,
"message": "Unauthorized"
}