Skip to content
Sign in Create account

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

  • email string (email)
    Length: at most 255 characters
  • name string
    Length: at most 100 characters

Example

{
  "email": "dev@example.test",
  "name": "Demo integration"
}

Responses

201 Issued API key.

application/json PrivacySelfServiceKey

  • account object required
    • anonymous boolean required
    • claim string required
    • email string (email) or null required
  • api_key string required
  • docs string (uri) required
  • key_prefix string required
  • limits object required
    • on_device string required
    • rate_limit_rpm integer required
      Range: at least 0
    • relay string required
  • tier string required
    One of: "free"
  • usage object required
    • api string required
    • mcp string required
    • sdk string required
  • warning string 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

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string
409 An account already exists for the supplied email.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string
422 The request failed validation.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string
429 The request rate limit was exceeded.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string

text/html string

503 Signups are temporarily paused.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string