curl --request POST \
--url https://{host}/frontend/api/v1/auth/api-token \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"permissions": [
"read:billing"
],
"ttl": 0
}'
{
"created": "2023-11-07T05:31:56Z",
"expired": null,
"expires-at": null,
"permissions": {},
"token": "<string>",
"updated": "2023-11-07T05:31:56Z"
}
curl --request POST \
--url https://{host}/frontend/api/v1/auth/api-token \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"permissions": [
"read:billing"
],
"ttl": 0
}'
{
"created": "2023-11-07T05:31:56Z",
"expired": null,
"expires-at": null,
"permissions": {},
"token": "<string>",
"updated": "2023-11-07T05:31:56Z"
}
API Key Security (Header).
OK
The response is of type object
.