Saltar al contenido principal
GET
/
v1
/
notification
/
usage_alert
Get Usage Alert Config
import requests

url = "https://api.diga.io/v1/notification/usage_alert"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "enabled": true,
  "percent": 50,
  "updated_at": "2023-11-07T05:31:56Z"
}

Autorizaciones

Authorization
string
header
requerido

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

Respuesta

Successful Response

id
string<uuid>
requerido

The unique identifier for the notification

enabled
boolean
requerido

Whether the usage alert is enabled

percent
integer
requerido

Percentage of included minutes USED at which the alert is triggered (1-99)

Rango requerido: 1 <= x <= 99
Ejemplos:

80

75

updated_at
string<date-time>
requerido

The timestamp when the configuration was last updated