Contacts

Contact management operations

List all contacts

get
/api/contacts

Retrieve all contacts for the authenticated user (excludes the user's own profile)

Authorizations
sb-access-tokenstringRequired

Supabase session cookie for authentication

Responses
get
/api/contacts

Create a new contact

post
/api/contacts

Create a new contact for the authenticated user

Authorizations
sb-access-tokenstringRequired

Supabase session cookie for authentication

Body
firstNamestring · min: 1RequiredExample: John
lastNamestring · min: 1RequiredExample: Doe
linkedinstringOptional

LinkedIn profile ID (optional)

Example: john-doe-123456
Responses
post
/api/contacts

Delete multiple contacts

delete
/api/contacts

Delete multiple contacts by their IDs

Authorizations
sb-access-tokenstringRequired

Supabase session cookie for authentication

Body
idsstring · uuid[] · min: 1RequiredExample: ["123e4567-e89b-12d3-a456-426614174000","987e6543-e21b-12d3-a456-426614174999"]
Responses
delete
/api/contacts

Get a single contact

get
/api/contacts/{id}

Retrieve details of a specific contact by ID

Authorizations
sb-access-tokenstringRequired

Supabase session cookie for authentication

Path parameters
idstring · uuidRequired

Contact ID

Responses
get
/api/contacts/{id}

Update a contact

patch
/api/contacts/{id}

Update an existing contact's information

Authorizations
sb-access-tokenstringRequired

Supabase session cookie for authentication

Path parameters
idstring · uuidRequired

Contact ID

Body

All fields are optional for updating a contact

firstNamestring · min: 1OptionalExample: John
middleNamestring · nullableOptionalExample: Michael
lastNamestring · nullableOptionalExample: Doe
titlestring · nullableOptionalExample: Software Engineer
placestring · nullableOptionalExample: San Francisco, CA
notesstring · nullableOptionalExample: Interested in AI
avatarColorstring · nullableOptionalExample: blue
avatarstring · uri · nullableOptionalExample: https://example.com/avatar.jpg
connectionsstring[] · nullableOptional
phonestring · nullableOptionalExample: +1234567890
emailstring · email · nullableOptionalExample: john@example.com
linkedinstring · nullableOptionalExample: john-doe-123456
instagramstring · nullableOptionalExample: johndoe
whatsappstring · nullableOptionalExample: +1234567890
facebookstring · nullableOptionalExample: john.doe.123
websitestring · uri · nullableOptionalExample: https://johndoe.com
signalstring · nullableOptionalExample: +1234567890
birthdatestring · date · nullableOptionalExample: 1990-01-01
notifyBirthdayboolean · nullableOptionalExample: true
importantDatesone of · nullableOptional
or
objectOptional
positionone of · nullableOptional
or
objectOptional
Responses
patch
/api/contacts/{id}

Merge duplicate contacts

post
/api/contacts/merge

Merge the right contact into the left contact. The left contact survives.

Authorizations
sb-access-tokenstringRequired

Supabase session cookie for authentication

Body
leftPersonIdstring · uuidRequired
rightPersonIdstring · uuidRequired
Responses
post
/api/contacts/merge

List active merge recommendations

get
/api/contacts/merge-recommendations

Returns persisted active merge recommendations for the authenticated user.

Authorizations
sb-access-tokenstringRequired

Supabase session cookie for authentication

Responses
get
/api/contacts/merge-recommendations

Refresh merge recommendations

post
/api/contacts/merge-recommendations/refresh

Recomputes and persists merge recommendations for the authenticated user.

Authorizations
sb-access-tokenstringRequired

Supabase session cookie for authentication

Responses
post
/api/contacts/merge-recommendations/refresh

Decline merge recommendation

patch
/api/contacts/merge-recommendations/{id}/decline

Marks one merge recommendation as declined.

Authorizations
sb-access-tokenstringRequired

Supabase session cookie for authentication

Path parameters
idstring · uuidRequired

Recommendation ID

Responses
patch
/api/contacts/merge-recommendations/{id}/decline

Upload contact photo

post
/api/contacts/{id}/photo

Upload a profile photo for a contact

Authorizations
sb-access-tokenstringRequired

Supabase session cookie for authentication

Path parameters
idstring · uuidRequired

Contact ID

Body
filestring · binaryOptional

Image file (JPEG, PNG, GIF, WebP, max 5MB)

Responses
post
/api/contacts/{id}/photo

Delete contact photo

delete
/api/contacts/{id}/photo

Remove the profile photo from a contact

Authorizations
sb-access-tokenstringRequired

Supabase session cookie for authentication

Path parameters
idstring · uuidRequired

Contact ID

Responses
delete
/api/contacts/{id}/photo

Last updated