Skip to main content
POST
/
v1
/
agents
/
{agent_id}
/
api-key
Rotate Agent Runtime Key
curl --request POST \
  --url https://api.example.com/v1/agents/{agent_id}/api-key \
  --header 'Authorization: Bearer <token>'
{
  "full_key": "<string>",
  "key_prefix": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
integer
required

Response

Successful Response

Runtime API key returned once after creation or rotation.

full_key
string
required
key_prefix
string
required
created_at
string<date-time>
required