Management

Create a policy

Create a budget / rate_limit / guardrail / preset policy. The spec body must match the requested kind.

Requires the policy:write scope.

POST
/v1/policies

Authorization

x-api-key<token>

Anthropic-style API key header.

In: header

Request Body

application/json

Request body. See the endpoint description for shape.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.bitrouter.ai/v1/policies" \  -H "Content-Type: application/json" \  -d '{}'
{}
{
  "error": null
}
{
  "error": null
}
{
  "error": null
}

How is this guide?