melonly logomelonly logo
melonly logo
Dashboard
Log in

List Court Hearings

Lists court hearings, newest first.

GET

/api/v1/server/cad/court-hearings

Request

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

Response

200

Success

{
  "data": [
    {
      "civId": "7527000000000000004",
      "closedAt": 0,
      "createdAt": 1794776859830,
      "id": "7527000000000000003",
      "recordId": "7527000000000000002",
      "serverId": "7294057520392310784",
      "status": 0,
      "type": 0
    }
  ],
  "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.

civIdstringrequired
Civilian the hearing is for.
createdAtintegerrequired
When it was created.
idstringrequired
Unique ID.
recordIdstringrequired
Record the hearing is for.
serverIdstringrequired
Server ID.
statusintegerrequired
Status code.
typeintegerrequired
Type code.
closedAtinteger | null
When the hearing closed.
processedBystring | null
Who processed it.

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