Create a new API key for the tenant.
cURL
curl --request POST \ --url https://api.example.com/api/v1/auth/api-keys \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "name": "<string>", "scopes": [ "<string>" ], "expires_at": "2023-11-07T05:31:56Z" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "key_prefix": "<string>", "scopes": [ "<string>" ], "created_at": "2023-11-07T05:31:56Z", "key": "<string>", "expires_at": "2023-11-07T05:31:56Z", "last_used_at": "2023-11-07T05:31:56Z" }
Request schema for creating an API key.
1 - 255
Successful Response
Response schema for API key.