API Key
Create API Key
Creates a new API key. This endpoint allows you to generate an API key that can be used to authenticate requests to the Attention service.
post/api_keys
Request body
Example request
{
"name": "Admin API Key",
"orgLevel": true
}Response
Successfully created API key
Example response
{
"id": "e5323e40-xxxx-4f6f-84f6-85eba56091ed",
"name": "Admin API Key",
"organizationUUID": "16b78cec-xxxx-46d2-8213-5d3bb7d2571c",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30",
"lastSeenAt": "2024-03-20T10:00:00Z"
}