Version: Current
Historical release snapshot. These docs are frozen. Read current docs.
GET and POST /v1/offers
Part of the API reference; this page is generated from the OpenAPI document that the gateway builds from its own route tables.
Provenance
Section titled “Provenance”- Contract version:
1.10.0 - Contract title: acumen gateway API
- Source:
acumen:docs/openapi/acumen-v1.openapi.json
Operations
Section titled “Operations”GET /v1/offers
Section titled “GET /v1/offers”List offers
The latest offer row per (account scope, vendor model, source), optionally filtered by ?provider=. Retired rows show the retired flag. Operator (ops:read) scope.
- Operation id:
getV1Offers - Scope:
ops:read - Exposure:
operator - Mutating: no
- Auth:
bearerAuth,operatorSession
Responses
200: OKapplication/json:EstateOfferList: EstateOfferList (object)
400: schema_invalid — the request body or parameter failed validationapplication/problem+json:Problem: Problem (object)
401: auth_missing — no virtual key or operator sessionapplication/problem+json:Problem: Problem (object)
403: auth_scope — the credential lacks the route’s scopeapplication/problem+json:Problem: Problem (object)
404: resource_not_found — the addressed object does not existapplication/problem+json:Problem: Problem (object)
405: method_not_allowed — the path exists for another verbapplication/problem+json:Problem: Problem (object)
429: rate_limited — the per-key or per-IP bucket is exhaustedapplication/problem+json:Problem: Problem (object)
500: internal — the store or process failedapplication/problem+json:Problem: Problem (object)
501: not_implemented — the route is declared but not wired in this buildapplication/problem+json:Problem: Problem (object)
503: store_unavailable — the dependency is down; retryableapplication/problem+json:Problem: Problem (object)
POST /v1/offers
Section titled “POST /v1/offers”Add an offer observation
Appends one offer row (offers are append-only history): provider, vendor model, optional canonical model, cost class (free, plan, or paid with price_in/price_out USD per 1M tokens) and source (defaults to http). Operator (admin) scope.
- Operation id:
postV1Offers - Scope:
admin - Exposure:
operator - Mutating: yes
- Auth:
bearerAuth,operatorSession
Request
- Request body (application/json, required):
EstateOfferAddRequest: EstateOfferAddRequest (object)
| Field | Type | Required | Notes |
|---|---|---|---|
free |
boolean | no | |
model |
string | no | |
paid |
boolean | no | |
plan |
boolean | no | |
price_in |
number | no | |
price_out |
number | no | |
provider_id |
string | yes | |
source |
string | no | |
vendor_model |
string | yes |
Responses
201: Createdapplication/json:EstateOffer: EstateOffer (object)
400: schema_invalidapplication/problem+json:Problem: Problem (object)