This page shows you how to read and manage the signed-in user's contacts. You need
a user access token with contact:read, plus contact:write to change anything.
A contact is somebody the user saved after meeting them, typically by tapping a card. Each contact holds visits, one per encounter, so the list records how often and where the user met each person.
List contacts
curl "https://api.davi.social/api/v1/contacts?detail=summary&sort_by=last_visited" \
-H "Authorization: Bearer ACCESS_TOKEN"
GET /contacts (scope contact:read) is paginated with the
standard parameters and takes these
filters:
| Parameter | Values | Effect |
|---|---|---|
detail | full, summary | Complete profile data, or basic info. Default summary |
search | text, at least 2 characters | Matches name or username |
activity_uuid | UUID | Only contacts met at that activity |
type | saved, dropped | Filter by contact type. Another value matches nothing rather than failing |
visited_after | ISO 8601 datetime | Only contacts visited since then |
sort_by | created_at, last_visited | Default created_at |
sort_order | asc, desc | Default desc |
detail changes the response shape: use summary for a list view and full for
a detail view.
For a "recently met" view, sort by last_visited. created_at orders by when the
contact was first saved.
Read, update, remove
| Endpoint | Scope | Does |
|---|---|---|
POST /contacts | contact:write | Save a contact |
GET /contacts/{contact_uuid} | contact:read | Read one |
PATCH /contacts/{contact_uuid} | contact:write | Update it |
DELETE /contacts/{contact_uuid} | contact:write | Remove it |
Visits
When the user meets a saved contact again, add a visit instead of saving the
contact a second time. last_visited and visited_after are computed from
visits.
curl -X POST "https://api.davi.social/api/v1/contacts/CONTACT_UUID/visits" \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "visited_at": "2026-02-01T19:30:00Z" }'
visited_at is required. Pass activity_session_uuid as well to record which
session the visit happened at.
POST /contacts/{contact_uuid}/visits and
DELETE /contacts/{contact_uuid}/visits/{visit_uuid} both take contact:write.
A contact always keeps at least one visit: deleting the last one answers 400.
Delete the contact instead.
Where contacts were met
curl "https://api.davi.social/api/v1/contacts/activities" \
-H "Authorization: Bearer ACCESS_TOKEN"
GET /contacts/activities (scope contact:read) lists the activities where the
user has met contacts, with a count for each. To list the contacts from one of
them, pass its UUID as activity_uuid to GET /contacts.
Next
- Read the Activity Feed: the user's own timeline.
- Read a User: identity and profile.