Create API key
POST
Create a new API key for authentication
header
X-API-Key<token>API key authentication using X-API-Key header
Name for a new API key
application/json- body
Name for a new API key
name*stringLength
1 <= length <= 100Default Response
application/json- response
success*booleanmessage*stringapiKey*An API key, returned in full so the admin can copy it
curl -X POST 'http://localhost:3003/v1/api-keys/' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "success": true, "message": "string", "apiKey": { "id": 0, "name": "string", "key": "string", "user_id": 0, "created_at": "string", "is_active": true }}