Appearance
Contacts
- File:
Features/Contacts/ContactsController.cs,Features/Contacts/ContactQueries.cs,Resolvers/ContactResolvers.cs
Overview
Contacts are the people and groups a clinician interacts with. The API supports listing and searching contacts, favorites, contact groups, and per-contact details. Contacts back calls, chat, and events (participants).
REST endpoints (api/contacts/...)
| Endpoint | Purpose |
|---|---|
GET /api/contacts/get?name=&skip=&take=&frequent=&alphabet= | Search contacts with paging; frequent returns recent; alphabet filters by letter |
GET /api/contacts/group/users/{groupId} | Contacts in a group |
GET /api/contacts/me | Current user's contact info (Me) |
POST /api/contacts/setFavourite | Mark/unmark a contact as favorite |
POST /api/contacts/update | Update contact information (multipart form) |
POST /api/contacts/group/create | Create a contact group |
POST /api/contacts/group/rename | Rename a group |
POST /api/contacts/group/add | Add participants to a group |
POST /api/contacts/group/remove | Remove participants from a group |
POST /api/contacts/notificationSeen/{noticeId} | Acknowledge a system notice |
GraphQL
| Operation | Purpose |
|---|---|
myContacts | Contact list with sortType, paging, alphabet, isCallList |
contactAlphabets | Available alphabet buckets for the index |
groupById(groupId) | Single group |
hasPin | Whether the user has a PIN set |
myNotice | Current system notice for the user |
Key domain types
ContactInfo/ContactSummary— contact + presence/online state (viaConnectivity).GroupInfo— a contact group.
Presence / online status
Presence is tracked through the realtime layer (userStatus events on the hub) and via AdminController helpers (lastSeen, isOnline).
Related
- Chat — chat groups are built around contacts.
- Web Contacts — the web contact management feature.