curl --request POST \
--url https://apix.spotzee.com/api/client/organizations/api-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "CI bot — provisioning"
}
'{
"id": 5,
"organization_id": 123,
"name": "CI bot — provisioning",
"role": "member",
"value": "ok_01HXY7Z9K8M5J2N4P6Q8R0S1T2",
"created_at": "<string>",
"updated_at": "<string>",
"description": "<string>"
}Creates a new organisation-scoped API key (ok_…). The full value is returned exactly once. The key’s role cannot exceed the creator’s own role.
curl --request POST \
--url https://apix.spotzee.com/api/client/organizations/api-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "CI bot — provisioning"
}
'{
"id": 5,
"organization_id": 123,
"name": "CI bot — provisioning",
"role": "member",
"value": "ok_01HXY7Z9K8M5J2N4P6Q8R0S1T2",
"created_at": "<string>",
"updated_at": "<string>",
"description": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt
Use this file to discover all available pages before exploring further.
Organisation-scoped admin API key (ok_…). Pass in the Authorization: Bearer <key> header. Used to manage projects and other organisation-level resources.
Create a new organisation API key. Caller must have owner role on the organisation.
The newly created organisation API key, including its full value.
An organisation-scoped API key (ok_). Used to manage projects and other organisation-level resources.
Numeric organisation API key identifier.
5
Human-readable label.
"CI bot — provisioning"
Role granted to the API key on the organisation. Cannot exceed the creator’s own role.
member, admin, owner The key value, prefixed with ok_. Returned in full only on creation; subsequent reads return a masked form.
"ok_01HXY7Z9K8M5J2N4P6Q8R0S1T2"
Was this page helpful?