Skip to main content
POST
Create API key

Authorizations

Authorization
string
header
required

Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

Body

application/json

API request schema for creating an API key

name
string
required

Human-readable name for the API key

Response

Successful Response

API response schema returned after creating a new API key (includes the raw key once).

api_key
string
required

The actual API key - only shown once!

key_info
ApiKeyGetResponse · object
required

Key metadata