Messages
Get usage cycle
This cycle's usage against the workspace's plan.
Cycles start when the plan was assigned (or the workspace was made, with no plan) and run the plan's cycle_days, 30 by default. Sent units per kind, per number and campaigns, against the plan's allowances. Counted, never enforced.
X-Request-Id?stringYour id for this request; it becomes the request_id of any error. Without it the server makes one.
curl -X GET 'https://v3.ghala.io/v1/usage/cycle'{ "plan": null, "start": "2019-08-24T14:15:22Z", "end": "2019-08-24T14:15:22Z", "lines": [ { "key": "string", "used": 0, "allowance": 0 } ], "numbers": [ { "number": "string", "lines": [ { "key": "string", "used": 0, "allowance": 0 } ] } ]}Get usage GET
Metered messages over a period, per number. Every message sent or received, counted per number and grouped by usage kind, direction and whether the provider bills it. Test sends are left out. The period defaults to the 30 days ending now, and is at most 366 days. Metered only: what you are charged is the wallet's.
List messages GET
Message history.