Skip to main content

Create an API key

POST 

/v1/api-keys

Creates an API key. When project_id is set the key is scoped to that project (the default and recommended stance); omit it for an account-scoped key. capabilities narrows what the key may do; when omitted the key inherits the creator's capabilities. The raw key (nat_sk_…) is returned only in this response.

Request

Responses

API key created. The raw key value is only returned here.