Create agent key
Agent keys
Create agent key
Create a new agent key bound to an existing agent. The full secret is returned only once. Creating a replacement key does not revoke existing keys — rotation overlaps until the old key is revoked.
POST
Create agent key
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Agent ID (agt_xxx) identifying which agent is making the request.
Required when X-Agent-ID is present. Session or conversation ID for agent observability.
Maximum string length:
1024Body
application/json
Response
Successful Response