Create An Agent Server Key
Create a server key the customer's own backend uses to mint gated widget sessions for this agent. The plaintext key is returned only in this response.
Authorization
OAuth2AuthorizationCodeBearer AuthorizationBearer <token>
In: header
Path Parameters
agent_id*Agent Id
Format
uuidQuery Parameters
verify_locally?Verify Locally
Default
trueRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Body of POST /v1/agents/{id}/server-keys. The allowlists are checked against the minting server's Origin/Referer and IP exactly as a deployment token's are; an empty list leaves that check open.
Response Body
application/json
application/json
curl -X POST "https://example.com/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/server-keys" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "key_prefix": "string", "allowed_domains": [ "string" ], "allowed_ips": [ "string" ], "allowed_regions": [ "string" ], "revoked": true, "last_used_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "key": "string"}Empty
Empty
{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}