putty
API ReferenceTools

Register an agent

Registers an agent against the caller's account and returns it. An agent is the unit usage is grouped by, so registering one is what makes its spend separately reportable. The registration does NOT grant anything on its own. An agent can only make metered calls with a bearer the caller already holds — an `sk-` API key from `POST /account/api-keys` or the caller's own Privy session — and it draws on the caller's credit balance. Registering an agent is naming a workload, not minting a credential.

POST
/agents

Registers an agent against the caller's account and returns it. An agent is the unit usage is grouped by, so registering one is what makes its spend separately reportable.

The registration does NOT grant anything on its own. An agent can only make metered calls with a bearer the caller already holds — an sk- API key from POST /account/api-keys or the caller's own Privy session — and it draws on the caller's credit balance. Registering an agent is naming a workload, not minting a credential.

Request Body

application/json

The agent to register.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/agents" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "string",  "name": "string",  "description": "string",  "mcpClientId": "string",  "createdAt": "string",  "updatedAt": "string"}