melonly logomelonly logo
melonly logo
Dashboard
Log in

List Calls

Lists calls, newest first.

GET

/api/v1/server/cad/calls

Request

curl -X GET "https://api.melonly.com/api/v1/server/cad/calls" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

200

Success

{
  "data": [
    {
      "address": "Highway 1",
      "closedAt": 0,
      "code": "10-80",
      "createdAt": 1794776859830,
      "createdByUnit": {},
      "createdByUserId": "7308965405773533184",
      "description": "red prancer fled a traffic stop. driver waved at us",
      "id": "7527000000000000000",
      "loc": {},
      "origin": "911",
      "panels": [],
      "postal": "214",
      "primaryUnit": {},
      "priority": "2",
      "records": [],
      "serverId": "7294057520392310784",
      "status": 0,
      "title": "10-80 on a Bullhorn Prancer",
      "type": 0,
      "unitHistory": [],
      "units": []
    }
  ],
  "page": 1,
  "pageSize": 10,
  "total": 1,
  "totalPages": 1
}

You can order by createdAt (default) or id.

Authorization

Authorizationstringrequired
Your API token as Bearer YOUR_TOKEN. Create one in your server's dashboard settings.

Query parameters

pageintegerdefault: 1
1-based page number. Defaults to 1.
pageSizeintegerdefault: 10
Items per page, clamped to 1-100. Defaults to 10.
orderBystring
Field to sort by. See the endpoint description for the accepted values.
sortstring
Sort direction. Defaults to desc.
Allowed values:ascdesc

Response

200 Success. Results are paged and also include page, pageSize, total and totalPages.

createdAtintegerrequired
When it was created.
createdByUserIdstringrequired
Melonly user ID of who created the call.
descriptionstringrequired
Longer description.
idstringrequired
Unique ID.
panelsobjectrequired
Panels the call is shown on.
recordsobjectrequired
Records attached.
serverIdstringrequired
Server ID.
statusintegerrequired
Status code.
titlestringrequired
Title.
typeintegerrequired
Type code.
unitHistoryobjectrequired
Units that have been on the call.
unitsobjectrequired
Units attached.
addressstring | null
Address.
apiIdstring | null
ID set by an integration that created the call.
closedAtinteger | null
When the call was closed.
codestring | null
Call code.
createdByUnitobject | null
Unit that created the call.
locobject | null
Map position.
originstring | null
Where the call came from.
postalstring | null
Postal code.
primaryUnitobject | null
Unit leading the call.
prioritystring | null
Call priority.

Errors

StatusMeaning
400Invalid request. validation_failed lists each invalid field in details.fields.
401Missing, invalid or expired token
404CAD is not set up
429Rate limited. See Retry-After and details.
500Internal server error