Messaging
Read and moderate user conversations + messages.
Messaging endpoints are strictly admin-side: stats, listing conversations + messages, and moderating individual messages. The user-facing write path lives under /client/messaging/*.
Source: apps/api/src/routes/admin/messaging.ts.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /admin/projects/:projectId/messaging/stats | Aggregate conversation and message counts. |
| GET | /admin/projects/:projectId/messaging/conversations | Paginated conversations with participant count. |
| GET | /admin/projects/:projectId/messaging/conversations/:conversationId/messages | Paginated messages with sender info. |
| DELETE | /admin/projects/:projectId/messaging/messages/:messageId | Hard-delete a message. |
GET /admin/projects/:projectId/messaging/stats
Response 200
Try it:
GET
developer auth/admin/projects/%7B%7BprojectId%7D%7D/messaging/statscurl -X GET 'https://api.amba.dev/admin/projects/%7B%7BprojectId%7D%7D/messaging/stats'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
GET /admin/projects/:projectId/messaging/conversations
Query
| Param | Default |
|---|---|
limit | 50 |
offset | 0 |
Response 200
Try it:
GET
developer auth/admin/projects/%7B%7BprojectId%7D%7D/messaging/conversationscurl -X GET 'https://api.amba.dev/admin/projects/%7B%7BprojectId%7D%7D/messaging/conversations'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
GET /admin/projects/:projectId/messaging/conversations/:conversationId/messages
Paginated messages, newest first, joined to app_users for sender info.
Response 200
Try it:
GET
developer auth/admin/projects/%7B%7BprojectId%7D%7D/messaging/conversations/%7B%7BconversationId%7D%7D/messagescurl -X GET 'https://api.amba.dev/admin/projects/%7B%7BprojectId%7D%7D/messaging/conversations/%7B%7BconversationId%7D%7D/messages'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
DELETE /admin/projects/:projectId/messaging/messages/:messageId
Try it:
DELETE
developer auth/admin/projects/%7B%7BprojectId%7D%7D/messaging/messages/%7B%7BmessageId%7D%7Dcurl -X DELETE 'https://api.amba.dev/admin/projects/%7B%7BprojectId%7D%7D/messaging/messages/%7B%7BmessageId%7D%7D'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl: