POST
/
alerts
Create a new alert
curl --request POST \
  --url https://api.paygentic.io/v0/alerts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "resourceId": "<string>",
  "type": "wallet_low_balance",
  "config": {},
  "enabled": true,
  "notifyPeriod": 61,
  "recipients": [
    "jsmith@example.com"
  ],
  "organizationId": "<string>"
}'
{
  "object": "alert",
  "id": "<string>",
  "resourceId": "<string>",
  "type": "wallet_low_balance",
  "config": {},
  "enabled": true,
  "notifyPeriod": 61,
  "recipients": [
    "jsmith@example.com"
  ],
  "lastNotifiedAt": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Alert created successfully

The response is of type object.