Skip to content

/api/admin/api-keys (POST)

POST
/api/admin/api-keys
curl --request POST \
--url https://your-tenant.consystence.com/api/admin/api-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "role": "example", "name": "example", "expiresAt": "2026-04-15T12:00:00Z", "class": "example", "siteCode": "example", "onBehalfOf": "example" }'
Media typeapplication/json
object
role
string
nullable
name
string
nullable
expiresAt
string format: date-time
class
string
nullable
siteCode
string
nullable
onBehalfOf
string
nullable
Examplegenerated
{
"role": "example",
"name": "example",
"expiresAt": "2026-04-15T12:00:00Z",
"class": "example",
"siteCode": "example",
"onBehalfOf": "example"
}

OK