Generates a new API key for administrative operations. The key is returned only once at creation time. Includes expiration settings and access control lists (ACLs) to limit the key’s permissions.
curl --request POST \
--url https://api.fluxer.app/v1/admin/api-keys \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"acls": [
"<string>"
],
"expires_in_days": 183
}
'{
"key_id": "<string>",
"key": "<string>",
"name": "<string>",
"created_at": "<string>",
"expires_at": "<string>",
"acls": [
"<string>"
]
}Admin API key: Authorization: Admin <token>. Only valid for /admin/* endpoints.
Success
Unique identifier for the API key
The generated API key secret (only shown once)
Display name for the API key
ISO 8601 timestamp when the key was created
ISO 8601 timestamp when the key expires, or null if no expiration
List of access control permissions for the key
100curl --request POST \
--url https://api.fluxer.app/v1/admin/api-keys \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"acls": [
"<string>"
],
"expires_in_days": 183
}
'{
"key_id": "<string>",
"key": "<string>",
"name": "<string>",
"created_at": "<string>",
"expires_at": "<string>",
"acls": [
"<string>"
]
}