Skip to main content
POST
Create an API key

Authorizations

Authorization
string
header
required

A WorkOS access token returned by the self-serve email authorization flow. A claimed agent access token is also accepted for creating an API key, and only for that. API keys are not accepted for API-key administration.

Body

application/json
name
string
required
Required string length: 1 - 100

Response

The new API key and its one-time secret.

api_key
string
required
key
object
required