Yapper Docs
Api reference
GET
/credit-alerts

The Usage page's credit alert rules. A charge that crosses a rule emails the people it names (minus anyone who muted it) and sends credits.alert to webhooks; rules watching the same thing fire once per charge, the most severe. Owner and admin keys only.

Authorization

bearerAuth usage:read
AuthorizationBearer <token>

In: header

Scope: usage:read

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/credit-alerts"
{  "data": [    {      "id": "string",      "watch": "balance",      "subjects": [        "string"      ],      "level": 1,      "recipients": "admins",      "notifySubject": true,      "createdBy": "string",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "links": {        "self": "string"      }    }  ]}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "requestId": "string"  }}