Create API Key
POST
/api/api-keys
Create a new API key with optional permission and module restrictions.
Request Body
application/json
JSON
{
"name": "string",
"organizationId": "string",
"permissions": [
"string"
],
"modules": [
"string"
],
"expiresIn": 0
}
Responses
API key created
application/json
JSON
{
"data": {
"id": "string",
"key": "string",
"name": "string",
"prefix": "string",
"organizationId": "string",
"permissions": [
"string"
],
"modules": [
"string"
],
"expiresAt": "string"
}
}