cURL
curl --request POST \ --url https://www.closient.com/account/api/v1/api-keys \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "name": "<string>", "description": "", "role": "viewer" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "role": "<string>", "created": "<string>", "key": "<string>", "description": "" }
Create a new API key for the current user
Name for the new API key.
Optional description.
Key role: viewer, editor, or admin.
OK
API key identifier.
Key name.
ISO 8601 creation timestamp.
The raw API key value. Only shown once at creation time.
Key description.