API ReferenceSetup

Register agent

POST
/v1/agents

Register an agent and return its API key (shown once)

Authorization

admin
AuthorizationBearer <token>

AGENTGUARD_ADMIN_TOKEN (owner/operator)

In: header

Request Body

application/json

user_id*string

Owner user id

agent_id*string

Agent id

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/agents" \  -H "Content-Type: application/json" \  -d '{    "user_id": "string",    "agent_id": "string"  }'
{  "agent_id": "string",  "api_key": "string"}