Mediflo
REST APICases

Link a call or conversation to a case

The record must belong to your organisation. Linking the same record again answers 200 with the existing link, so a retry is safe. 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.write`.

POST/cases/{caseId}/links

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

Path Parameters

caseId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/cases/497f6eca-6276-4993-bfeb-53cbbbba6f08/links" \  -H "Content-Type: application/json" \  -d '{    "resourceType": "TELEPHONY_CALL",    "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6"  }'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "resourceType": "TELEPHONY_CALL",    "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",    "createdAt": "2019-08-24T14:15:22Z"  }}