Skip to main content
POST
Create API key

Authorizations

X-Agentmark-App-Id
string
header
required

Application ID for tenant scoping. X-Outerlayer-App-Id is accepted as an equivalent header.

Authorization
string
header
required

API key (sk_agentmark_*)

Body

application/json
name
string
required
Required string length: 1 - 255
app_id
string<uuid> | null
environment_name
string | null

Name of the environment to bind the new key to (e.g. "production"). Defaults to the app's default environment.

Required string length: 1 - 255
permissions
string[]

Response

API key created.

data
object
required