VocalDocscontracts 1.65.0

Read the analytics alert settings

GET /v1/analytics/alert-settings

PropertyValue
Operationget_alert_settings
GroupCall trace and analytics
Scopeanalytics:read
Route classread
IdempotencyNo Idempotency-Key
AuditNot audited: A configuration read; the settings are not Call content.
Released in1.57.0
Phase 0 hostServed (the hosted api pins 1.65.0)

The Organization's alert thresholds (1.57.0), whose revision is also the ETag; revision 0, the defaults, until the first change: spend at 50, 80 and 100 percent of the cap, the forecast alert on, and a regression at 20 percent and 100 ms over at least 200 Turns (initial values).

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the analytics:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/analytics/alert-settings" \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Responses

StatusContent typeShapeError codes
200application/jsonAlertSettings
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is AlertSettings.

FieldTypeRequiredDescription
latency_regressionLatencyRegressionSettingsyes
object"alert_settings"yes
revisionintegeryesCounts the changes; 0 for the defaults. Returned as the ETag and required in If-Match.
spendSpendAlertSettingsyes
updated_atTimestamp or nullyes
updated_byActorRef or nullyes