Authentication
The Firefly API supports multiple authentication methods, including JWT and Basic Authentication. To use the API, you'll need to create an API key pair (Access Key and Secret Key) for authentication.
Creating an API Key Pair
To create a new API key pair for authentication:
In the Firefly web console, navigate to Settings > Users
Click Create Key Pair
Copy both the Access Key and Secret Key (they will only be shown once)
Store your keys securely in a password manager or secrets vault
For detailed instructions on creating and managing API keys, see the Access Management & RBAC documentation.
Authentication
Authenticate user using access key and secret key
User's access key
User's secret key
Custom token validity duration. Defaults to 24h if not provided. Format: where unit is h (hours), d (days), w (weeks), m (months), y (years). Maximum allowed duration is 1 year. Examples: 1h, 12h, 7d, 2w, 6m, 1y.
24hSuccessful login
JWT access token
Token expiration time in seconds
Type of token (e.g., "Bearer")
Unauthorized Error
POST /login HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"accessKey": "text",
"secretKey": "text",
"duration": "24h"
}{
"accessToken": "text",
"expiresAt": 1,
"tokenType": "text"
}Health Check
Last updated
Was this helpful?