API reference

Usage and limits

Plan, usage, limits, allocations, trial and top-ups.

Scopes for this area: usage:read, usage:write and usage:admin.

22 operations

key

MethodRouteWhat it doesLevelCommand
GET/keys/usageRequests and tokens per key per day.readrivier usage key usage

records

MethodRouteWhat it doesLevelCommand
GET/usage/recordsUsage as records: one meter (a plan meter, or api_calls for the calls made with the project's keys) between two days, cut by one or two of day, connection (a platform's connected business), key and customer. A platform's calls and uses inside the businesses it brought are its own, marked with the connection.readrivier usage records list

requests

MethodRouteWhat it doesLevelCommand
GET/usage/requestsThe log of calls made with the project's keys, newest first: operation, status, time taken, key, connection, idempotency key, the request id the answer carried (x-rivier-request-id) and the error's code; no bodies. Kept 30 days unless set otherwise. Filter by connection, key, status band or time; page back with before.readrivier usage requests list

plan

MethodRouteWhat it doesLevelCommand
GET/usageUsage against the plan, by meter.readrivier usage plan report
GET/usage/canWhether a capability is allowed now, and why not.readrivier usage plan can

building

MethodRouteWhat it doesLevelCommand
GET/usage/buildingThe building allowance: one share of this month's model and build meters, the hosting counts against the plan, and the raw meters.readrivier usage building get

trial

MethodRouteWhat it doesLevelCommand
GET/usage/trialTrial status.readrivier usage trial get

praecise

MethodRouteWhat it doesLevelCommand
GET/usage/praeciseWhat the project uses at the Praecise products in its current plan period: the projects at Praecise Cloud, Rivier's model calls for the person, Storage and Navigation, each in the product's own units and with a limit only where the product returns one. Needs a signed-in person (each product is asked in their name). A product that is not connected or does not answer says so.readrivier usage praecise get

allocation

MethodRouteWhat it doesLevelCommand
GET/usage/allocationsAllowances set for products, agents and channels.readrivier usage allocation list
PUT/usage/allocationsSet an allowance: for a product, agent, interest or channel (a person sets these), or for a platform's connected business, key or customer (its server may, with a key).adminrivier usage allocation set
DELETE/usage/allocationsRemove an allowance.adminrivier usage allocation remove

overage

MethodRouteWhat it doesLevelCommand
PUT/usage/overageAllow a meter to run past its included amount.adminrivier usage overage set

topup

MethodRouteWhat it doesLevelCommand
POST/usage/topupsAdd a top-up.adminrivier usage topup create

warning

MethodRouteWhat it doesLevelCommand
PUT/usage/warnSet the warning threshold.adminrivier usage warning set

project

MethodRouteWhat it doesLevelCommand
GET/projectsThe projects you own, by name. A key sees the one project it belongs to.readrivier usage project list

limit

MethodRouteWhat it doesLevelCommand
GET/usage/limitsEvery allowance of the project this period: included, used, what is left, when it resets, and the project's choice at the limit.readrivier usage limit list
POST/usage/limits/checkWhether a send or call of this size fits right now, without using anything. When it does not, the plain reason and the next step. Ask before a large send.readrivier usage limit check
GET/usage/limits/{meter}One allowance in full.readrivier usage limit get
PUT/usage/limits/policy/{meter}Set what happens at the limit for one allowance: stop, carry on and bill the overage, or ask a person; the warning levels; a ceiling on overage; a limit for this project alone.adminrivier usage limit set

limit approval

MethodRouteWhat it doesLevelCommand
GET/usage/limits/approvalsRequests waiting for a person to approve going past an allowance, and past decisions.readrivier usage limit approval list
POST/usage/limits/approvals/{id}/decideApprove or deny a request to go past an allowance. Approving lets that many more units through this period.adminrivier usage limit approval decide

limit draw

MethodRouteWhat it doesLevelCommand
GET/usage/limits/drawsUnits that went through beyond the plan this period: billed as overage or approved by a person.readrivier usage limit draw list