API reference

Usage and limits

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

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

20 operations

key

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

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

trial

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

allocation

MethodRouteWhat it doesLevelCommand
GET/usage/allocationsAllowances set for products, agents and channels.readrivier usage allocation list
PUT/usage/allocationsSet an allowance.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, the project's choice at the limit, and whether the organisation pools it.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: drawn from the organisation pool, billed as overage, or approved by a person.readrivier usage limit draw list

limit organization

MethodRouteWhat it doesLevelCommand
GET/usage/limits/organizationHow each project of the organisation uses the allowances that can be pooled, and which are pooled.readrivier usage limit organization get
PUT/usage/limits/organization/poolPool one allowance across all projects of the organisation, or stop pooling it.adminrivier usage limit organization set pool