Friends
Project-wide friendship statistics and admin-side friendship deletion.
Friendship state is user-driven from /client/friends/*; this admin surface is read-only plus a moderation delete.
Source: apps/api/src/routes/admin/friends.ts.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /admin/projects/:projectId/friends/stats | Aggregate counts by friendship status. |
| GET | /admin/projects/:projectId/friends | Paginated list of friendships with user detail; optional ?status= filter. |
| DELETE | /admin/projects/:projectId/friends/:friendshipId | Hard-delete a friendship row. |
GET /admin/projects/:projectId/friends/stats
Response 200
Try it:
GET
developer auth/admin/projects/%7B%7BprojectId%7D%7D/friends/statscurl -X GET 'https://api.amba.dev/admin/projects/%7B%7BprojectId%7D%7D/friends/stats'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
GET /admin/projects/:projectId/friends
Query
| Param | Default | Description |
|---|---|---|
limit | 50 | |
offset | 0 | |
status | — | pending, accepted, blocked. |
Response 200
Try it:
GET
developer auth/admin/projects/%7B%7BprojectId%7D%7D/friendscurl -X GET 'https://api.amba.dev/admin/projects/%7B%7BprojectId%7D%7D/friends'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
DELETE /admin/projects/:projectId/friends/:friendshipId
Try it:
DELETE
developer auth/admin/projects/%7B%7BprojectId%7D%7D/friends/%7B%7BfriendshipId%7D%7Dcurl -X DELETE 'https://api.amba.dev/admin/projects/%7B%7BprojectId%7D%7D/friends/%7B%7BfriendshipId%7D%7D'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl: