//AI & Agent API
AI & Agent Infrastructure API
Endpoints designed for autonomous agents, LLM integrations, and Model Context Protocol (MCP) servers.
POST /api/v2/organizations/:org_uuid/service-accounts
Creates a scoped Service Account (Agent Key) for autonomous AI agents.
(Note: High-performance agents should use the native Service Identity endpoints for robust token rotation and sub-millisecond policy checks).
POST /api/billing/metering/record
Records arbitrary usage metrics (like LLM tokens, compute seconds, or generation counts) to a tenant's billing profile. This is essential for AI applications where costs scale dynamically.
Request Body:
{
"org_uuid": "org-uuid-12345",
"meter_name": "claude_3_opus_tokens",
"quantity": 14500,
"action": "increment",
"idempotency_key": "req-uuid-123"
}