Skip to content

Create SLA policy

POST/omnichannel/sla-policies

Creates an SLA policy that defines first-response, escalation, and resolution time targets in minutes. Conditions restrict which conversations the policy applies to. Conversations routed through a channel profile inherit the applicable SLA policy.

Request

Request body

Content type application/json (required).

FieldTypeRequiredDescription
namestringYes

Human-readable SLA policy name.

Max length: 180

first_response_minutesintegerNo

Maximum minutes allowed before the first agent response.

Default: 60 · Minimum: 1

resolution_minutesintegerNo

Maximum minutes allowed for full conversation resolution.

Default: 1440 · Minimum: 1

escalation_minutesintegerNo

Minutes after first_response_minutes before auto-escalation triggers.

Default: 30 · Minimum: 1

is_activebooleanNo

Default: true

conditions_jsonstringNo

JSON array of conditions restricting which conversations this policy applies to.

Example

{
  "name": "Standard Email SLA",
  "first_response_minutes": 60,
  "resolution_minutes": 1440,
  "escalation_minutes": 30,
  "is_active": true,
  "conditions_json": "[{\"field\":\"channel\",\"op\":\"eq\",\"value\":\"email\"}]"
}

Responses

201 SLA policy created

422 Validation failed — all minute values must be >= 1

Example request

curl -X POST "https://{tenant}.faciotech.net/api/v1/omnichannel/sla-policies" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"name": "Standard Email SLA", "first_response_minutes": 60, "resolution_minutes": 1440, "escalation_minutes": 30, "is_active": true, "conditions_json": "[{\"field\":\"channel\",\"op\":\"eq\",\"value\":\"email\"}]"}'
Loading