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.

Header Parameters

X-Request-Id?string

Your 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        }      ]    }  ]}