API Key Management
Create API Key
Create a new API key. The plaintext key is only returned once.
Authorization
BearerAuth AuthorizationBearer <token>
JWT token authentication for API key management
In: header
Request Body
application/json
name*string
Name for the API key
plan_id*string
Plan ID to associate with this key
Format
uuidResponse Body
application/json
curl -X POST "https://api.brainus.lk/api/v1/dev/keys" \ -H "Content-Type: application/json" \ -d '{ "name": "Production API Key", "plan_id": "00713021-9aea-41da-9a88-87760c08fa72" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"api_key": "sk_live_abc123...",
"created_at": "2019-08-24T14:15:22Z"
}Empty