curl --request POST \
--url https://app2.freyavoice.ai/api/v2/api-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"workspaceId": "<string>",
"userId": "<string>",
"expiresAt": "<string>",
"rateLimit": {
"requestsPerMinute": 123,
"requestsPerDay": 123
}
}
'{
"success": true,
"data": {
"message": "<string>",
"result": {
"apiKey": {
"id": "<string>",
"key": "<string>",
"workspaceId": "<string>",
"userId": "<string>",
"name": "<string>",
"isActive": true,
"createdAt": "<string>",
"lastUsedAt": "<string>",
"expiresAt": "<string>",
"rateLimit": {
"requestsPerMinute": 123,
"requestsPerDay": 123
},
"creator": {
"id": "<string>",
"email": "[email protected]",
"displayName": "<string>"
}
},
"key": "<string>"
}
}
}Creates a new API key. The key value is only returned in this response.
curl --request POST \
--url https://app2.freyavoice.ai/api/v2/api-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"workspaceId": "<string>",
"userId": "<string>",
"expiresAt": "<string>",
"rateLimit": {
"requestsPerMinute": 123,
"requestsPerDay": 123
}
}
'{
"success": true,
"data": {
"message": "<string>",
"result": {
"apiKey": {
"id": "<string>",
"key": "<string>",
"workspaceId": "<string>",
"userId": "<string>",
"name": "<string>",
"isActive": true,
"createdAt": "<string>",
"lastUsedAt": "<string>",
"expiresAt": "<string>",
"rateLimit": {
"requestsPerMinute": 123,
"requestsPerDay": 123
},
"creator": {
"id": "<string>",
"email": "[email protected]",
"displayName": "<string>"
}
},
"key": "<string>"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.