POST
/
apps
/
{appId}
/
usage
Fetch usage
curl --request POST \
  --url https://apimgmt.cometchat.io/apps/{appId}/usage \
  --header 'Content-Type: application/json' \
  --header 'key: <key>' \
  --header 'secret: <secret>' \
  --data '{
  "usePreviousBillingCycle": true
}'
{
  "data": {
    "success": true,
    "message": "Your usage request has been accepted and is being processed for . You will receive an email with the details at <emailID>@example.com"
  }
}

Headers

key
string
required

Authorization Key

secret
string
required

Authorization Secret

Path Parameters

appId
string
required

The parent appId to which the subscription is linked.

Body

application/json
usePreviousBillingCycle
boolean

Indicates whether the usage from the previous billing cycle should be retrieved.

If set to false, the usage for the current cycle will be fetched.

If set to true, the usage from the previous cycle will be fetched.

Response

200 - application/json

Updated App

data
object