API ReferenceapicommsGET /v1/admin/ask/coach-sla-overdue

GET /v1/admin/ask/coach-sla-overdue

Service: comms · operationId: (none)

Required scopes

(no scope declared — review service config)

Query parameters

  • hours (number) —

Responses

200 Ask threads awaiting a coach reply past the SLA window

{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "thread_id": {
            "type": "string",
            "format": "uuid"
          },
          "brand_id": {
            "type": "string"
          },
          "member_user_id": {
            "type": "string"
          },
          "member_name": {
            "type": "string"
          },
          "assigned_to_user_id": {
            "type": "string"
          },
          "coach_name": {
            "type": "string"
          },
          "last_message_at": {
            "type": "string"
          },
          "hours_waiting": {
            "type": "number"
          }
        },
        "required": [
          "thread_id",
          "brand_id",
          "member_user_id",
          "member_name",
          "assigned_to_user_id",
          "coach_name",
          "last_message_at",
          "hours_waiting"
        ]
      }
    }
  },
  "required": [
    "data"
  ]
}

500 Failed to load overdue threads

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ]
}

Example

curl -X GET https://comms.platform.loop.health/v1/admin/ask/coach-sla-overdue \
  -H "Authorization: Bearer $ACCESS_TOKEN"