Contacts

List active contacts for user context

POST
/api/contacts/active

Returns contacts that have conversation activity (lastMessageTime set), scoped to the caller's ownership / assignment, sorted newest activity first with an exact total for pagination. Used to power the active conversations sidebar. query is matched literally, case-insensitive, as a substring of first name, last name or phone number; several words must all match. The response carries data and total only.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/contacts/active" \  -H "Content-Type: application/json" \  -d '{    "channelType": "sms",    "ownerFilter": "my",    "page": 1,    "size": 50  }'
{  "data": [],  "total": 0}