comecerodocs

List rate plans

GET
/usage/rate_plans

Every saved version of every rate plan, newest effective_from first, up to 500. There is no paging. Secret and trusted tokens may call it; a limited token may not (403).

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Query Parameters

metric_id?string

Only the plans that price this metric.

Response Body

The rate plans.

application/json
  1. response
data?array<>
Example Request
curl -X GET 'https://api.comecero.com/api/v1/usage/rate_plans'
Example Response
{  "data": [    {      "object": "rate_plan",      "rate_plan_id": "ai_tokens_standard",      "version": 1,      "metric_id": "met_ai_tokens",      "currency": "USD",      "pricing_model": "flat_per_unit",      "included_allowance": 100000,      "overage_price": 0.00002,      "tiers": [],      "billing_region": "us",      "test": false    }  ]}