Mediflo
REST APICases

List customer cases

Newest number first, or most recently updated with `sort=updatedAt`. `status` and `category` take comma-separated lists; `open=true` keeps only open cases (NEW, IN_PROGRESS, WAITING_*); `assignedTo` takes a user id or `unassigned`; `search` matches title words or a case number (`1042`, `S-1042`); `resourceType` + `resourceId` (together) list the cases linked to one record, e.g. a call. Available to organisations with customer cases switched on: an organisation whose business type has no cases gets 404 `TENANT_MODULE_UNAVAILABLE`, one where cases are not switched on yet gets 403 `FEATURE_NOT_AVAILABLE`. Required scope: `cases.read`.

GET/cases

Authorization

ApiKeyAuth
AuthorizationBearer <token>

An external API key, sent as Authorization: Bearer mflo_…. Scopes are checked per route; see each operation’s description.

In: header

Query Parameters

page?integer
Range0 < value <= 10000
Default1
limit?integer
Range0 < value <= 100
Default20
status?array<>

Comma-separated statuses, e.g. NEW,IN_PROGRESS. An unknown value is a 422 VALIDATION_ERROR on status.

open?string

Value in

  • "true"
  • "false"
category?array<>

Comma-separated category keys, e.g. bug,outage. A malformed key is a 422 VALIDATION_ERROR on category; a well-formed key no case uses simply matches nothing.

assignedTo?|
contactId?string
Formatuuid
companyId?string
Formatuuid
search?string
Lengthlength <= 200
resourceType?string

Value in

  • "TELEPHONY_CALL"
  • "BOT_SESSION"
  • "EMAIL_CONVERSATION"
  • "CHAT_CONVERSATION"
  • "MESSAGING_CONVERSATION"
  • "CONTACT_REQUEST"
resourceId?string
Formatuuid
sort?string
Default"number"

Value in

  • "number"
  • "updatedAt"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/cases"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "number": 0,      "title": "string",      "status": "NEW",      "priority": "LOW",      "categoryKey": "string",      "statusChangedAt": "2019-08-24T14:15:22Z",      "dueAt": "2019-08-24T14:15:22Z",      "resolvedAt": "2019-08-24T14:15:22Z",      "closedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "assignedToUser": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "firstName": "string",        "lastName": "string"      },      "contact": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "firstName": "string",        "lastName": "string"      },      "company": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "topic": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "tags": [        {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string",          "color": "string"        }      ]    }  ],  "pagination": {    "page": 0,    "limit": 0,    "total": 0,    "totalPages": 0  }}