Issue a self-service API key
POST /api/v1/self-service/key
Creates a free-tier account and returns a newly issued API key. Email and name are optional.
This operation needs no authentication.
Request body (optional)
application/json object
emailstring (email)Length: at most 255 charactersnamestringLength: at most 100 characters
Example
{
"email": "dev@example.test",
"name": "Demo integration"
}Responses
201 Issued API key.
application/json PrivacySelfServiceKey
accountobject requiredanonymousboolean requiredclaimstring requiredemailstring (email) or null required
api_keystring requireddocsstring (uri) requiredkey_prefixstring requiredlimitsobject requiredon_devicestring requiredrate_limit_rpminteger requiredRange: at least 0relaystring required
tierstring requiredOne of:"free"usageobject requiredapistring requiredmcpstring requiredsdkstring required
warningstring required
Generated sample
{
"account": {
"anonymous": true,
"claim": "string",
"email": "user@example.com"
},
"api_key": "string",
"docs": "https://example.com",
"key_prefix": "string",
"limits": {
"on_device": "string",
"rate_limit_rpm": 0,
"relay": "string"
},
"tier": "free",
"usage": {
"api": "string",
"mcp": "string",
"sdk": "string"
},
"warning": "string"
}403 Organization sign-in is required.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
409 An account already exists for the supplied email.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
422 The request failed validation.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
429 The request rate limit was exceeded.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring
text/html string
503 Signups are temporarily paused.
application/json PrivacyError
errorobject requiredcodestringkidstringmessagestringrefstringtypestring
errorsobjectOther keys: array of string
messagestring