⚠️ Coming Soon: API key authentication is currently under development and will be available before the v1.0 release. The current API implementation is unauthenticated.
Sirius Scan will use API keys to authenticate requests. This documentation outlines the planned authentication system that will be implemented before the v1.0 release.
The upcoming authentication system will provide:
We recommend following this documentation's structure to prepare for the authentication system's release. Subscribe to our release notifications to be informed when API key authentication becomes available.
The API is currently unauthenticated during the development phase. This means:
Include your API key in the Authorization
header of your HTTP requests:
curl -X GET "https://api.siriusscan.com/v1/hosts" \
-H "Authorization: Bearer YOUR_API_KEY"
Initialize the SDK client with your API key:
import "github.com/siriusscan/sirius/sdk"
client := sirius.NewClient("YOUR_API_KEY")
We recommend storing your API key in an environment variable:
# Set the API key
export SIRIUS_API_KEY=your_api_key
# Use in curl commands
curl -X GET "https://api.siriusscan.com/v1/hosts" \
-H "Authorization: Bearer $SIRIUS_API_KEY"
In Go applications:
import (
"os"
"github.com/siriusscan/sirius/sdk"
)
client := sirius.NewClient(os.Getenv("SIRIUS_API_KEY"))
Status Code | Description |
---|---|
200 | Success - Request authenticated successfully |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - API key lacks required permissions |
{
"error": {
"code": "invalid_api_key",
"message": "The provided API key is invalid or has been revoked",
"status": 401
}
}
{
"error": {
"code": "missing_api_key",
"message": "No API key provided. Include your API key in the Authorization header",
"status": 401
}
}
{
"error": {
"code": "insufficient_permissions",
"message": "The provided API key does not have permission to perform this action",
"status": 403
}
}