SLA Policies

List SLA policies

get

/workspaces/{workspaceId}/inbox/sla-policies

Authorizations
Path parameters
workspaceIdstringrequired
Query parameters
limitinteger

Limits the number of results to return

pageTokenstring

Pagination token that keeps of track of the current position in the list

reverseboolean

Order in which to retrieve the results

Responses
curl -L \
  --url '/workspaces/{workspaceId}/inbox/sla-policies' \
  --header 'Authorization: Bearer jwt'
{
  "nextPageToken": "text",
  "results": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "workspaceId": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "description": "text",
      "timeKeepingMethod": "clock",
      "metrics": {
        "firstReplyTime": [
          {
            "priority": "text",
            "breachThreshold": 1,
            "warningThreshold": 1
          }
        ],
        "nextReplyTime": [
          {
            "priority": "text",
            "breachThreshold": 1,
            "warningThreshold": 1
          }
        ]
      },
      "createdAt": "2025-02-16T22:19:19.982Z",
      "updatedAt": "2025-02-16T22:19:19.982Z"
    }
  ]
}

Create SLA policy

post

/workspaces/{workspaceId}/inbox/sla-policies

Authorizations
Path parameters
workspaceIdstringrequired
Body
namestringrequired
descriptionstringrequired
timeKeepingMethodenumrequired

Determine how the timers are tracking expiry.

  • clock will simply count using the full 24 hours of a day.
  • businessHours takes into account the business hours configured for the assigned team.
Options: clock, businessHours
metricsobject
Responses
curl -L \
  --request POST \
  --url '/workspaces/{workspaceId}/inbox/sla-policies' \
  --header 'Authorization: Bearer jwt' \
  --header 'Content-Type: application/json' \
  --data '{"name":"text","description":"text","timeKeepingMethod":"clock","metrics":{"firstReplyTime":[{"priority":"text","breachThreshold":1,"warningThreshold":1}],"nextReplyTime":[{"priority":"text","breachThreshold":1,"warningThreshold":1}]}}'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "workspaceId": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "timeKeepingMethod": "clock",
  "metrics": {
    "firstReplyTime": [
      {
        "priority": "text",
        "breachThreshold": 1,
        "warningThreshold": 1
      }
    ],
    "nextReplyTime": [
      {
        "priority": "text",
        "breachThreshold": 1,
        "warningThreshold": 1
      }
    ]
  },
  "createdAt": "2025-02-16T22:19:19.982Z",
  "updatedAt": "2025-02-16T22:19:19.982Z"
}

Get SLA policy

get

/workspaces/{workspaceId}/inbox/sla-policies/{slaPolicyId}

Authorizations
Path parameters
workspaceIdstringrequired
slaPolicyIdstring uuidrequired
Responses
curl -L \
  --url '/workspaces/{workspaceId}/inbox/sla-policies/{slaPolicyId}' \
  --header 'Authorization: Bearer jwt'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "workspaceId": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "timeKeepingMethod": "clock",
  "metrics": {
    "firstReplyTime": [
      {
        "priority": "text",
        "breachThreshold": 1,
        "warningThreshold": 1
      }
    ],
    "nextReplyTime": [
      {
        "priority": "text",
        "breachThreshold": 1,
        "warningThreshold": 1
      }
    ]
  },
  "createdAt": "2025-02-16T22:19:19.982Z",
  "updatedAt": "2025-02-16T22:19:19.982Z"
}

Update SLA policy

patch

/workspaces/{workspaceId}/inbox/sla-policies/{slaPolicyId}

Authorizations
Path parameters
workspaceIdstringrequired
slaPolicyIdstring uuidrequired
Body
namestring
descriptionstring
timeKeepingMethodenum

Determine how the timers are tracking expiry.

  • clock will simply count using the full 24 hours of a day.
  • businessHours takes into account the business hours configured for the assigned team.
Options: clock, businessHours
metricsobject
Responses
curl -L \
  --request PATCH \
  --url '/workspaces/{workspaceId}/inbox/sla-policies/{slaPolicyId}' \
  --header 'Authorization: Bearer jwt' \
  --header 'Content-Type: application/json' \
  --data '{"timeKeepingMethod":"clock","metrics":{"firstReplyTime":[{"priority":"text","breachThreshold":1,"warningThreshold":1}],"nextReplyTime":[{"priority":"text","breachThreshold":1,"warningThreshold":1}]}}'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "workspaceId": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "timeKeepingMethod": "clock",
  "metrics": {
    "firstReplyTime": [
      {
        "priority": "text",
        "breachThreshold": 1,
        "warningThreshold": 1
      }
    ],
    "nextReplyTime": [
      {
        "priority": "text",
        "breachThreshold": 1,
        "warningThreshold": 1
      }
    ]
  },
  "createdAt": "2025-02-16T22:19:19.982Z",
  "updatedAt": "2025-02-16T22:19:19.982Z"
}

Delete SLA policy

delete

/workspaces/{workspaceId}/inbox/sla-policies/{slaPolicyId}

Authorizations
Path parameters
workspaceIdstringrequired
slaPolicyIdstring uuidrequired
Responses
curl -L \
  --request DELETE \
  --url '/workspaces/{workspaceId}/inbox/sla-policies/{slaPolicyId}' \
  --header 'Authorization: Bearer jwt'

No body

Last updated

Was this helpful?