API Reference

contacts

8 endpoints

  • /api/v1/contacts
GET/api/v1/contacts

List Contacts

Scope: contact:read

List your contacts.

Use detail=full for complete profile data, detail=summary for basic info. Use activity_uuid to filter contacts met at a specific activity. Use type to filter by contact type (saved, dropped). Use visited_after to filter contacts with recent visits. Use sort_by=last_visited to sort by most recently visited. Use sort_order=asc to reverse the sort direction (e.g. oldest first).

Query parameters

pageinteger

Page number

default: 1 · ≥ 1

page_sizeinteger

Items per page

default: 20 · ≥ 1 · ≤ 100

detailenum

Response detail level: 'full' or 'summary'

default: "summary"

searchstring | null

Search by name or username

activity_uuidstring | null

Filter by activity UUID (contacts met at this activity)

typestring | null

Filter by contact type (saved, dropped)

visited_afterstring (date-time) | null

Filter contacts with visits after this datetime (ISO 8601)

sort_byenum | null

Sort order: 'created_at' (default) or 'last_visited'

sort_orderenum | null

Sort direction: 'asc' or 'desc' (default)

default_backendstring

default: "primary"

Responses

200Successful Response

PaginatedResponse_ContactDetailResponse_ | PaginatedResponse_ContactSummaryResponse_

401Authentication failed
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

403Insufficient permissions
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

422Validation error
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

Example request

curl -X GET "https://api.davi.social/api/v1/contacts" \
  -H "Authorization: Bearer <token>"
POST/api/v1/contacts

Create Contact

Scope: contact:write

Save a contact, and record the encounter that produced it.

Name the contact by identifier (a card, wallet, username, user_id or link), by profile_page_uuid, or by name + email for someone with no Davi account. Saving someone already in your contacts adds a visit rather than a duplicate.

An identifier must resolve to a claimed Davi profile — an identity that resolves to no account, or to an account with no profile, is rejected rather than saved as an anonymous contact, because the two are different records and guessing between them loses the distinction.

Attribution (via_client_id) is taken from the caller's token, not the request body.

Query parameters

default_backendstring

default: "primary"

Request body*application/json

FieldTypeDescription
identifierIdentifierRef | null

Identity to save (card, wallet, username, user_id, or link)

object · IdentifierRef

FieldTypeDescription
type*enum

How to interpret `value`

value*string

Identifier value (card uid, wallet address, username, user uuid, or Davi link)

profile_page_uuidstring | string (uuid) | null

UUID of the profile page to save as a contact

namestring | null

Name of the anonymous contact (paired with `email`)

max length 255

positionstring | null

Job position/title of the anonymous contact

max length 255

companystring | null

Company/organization of the anonymous contact

max length 255

emailstring | null

Email of the anonymous contact (paired with `name`)

max length 255

visited_atstring (date-time) | null

Timestamp when the contact was encountered.

activity_session_uuidstring | string (uuid) | null

UUID of the activity session where the contact was met

notesstring | null

Notes about this encounter. Kept against the visit, not the contact — the contact's standing note is set through `PATCH /contacts/{contact_uuid}`.

max length 1000

via_client_idstring | null

Ignored. Attribution is derived server-side from the caller's access token; a client_id sent here is an unverified claim about another app and is discarded.

Responses

200Successful Response
FieldTypeDescription
uuid*string
typestring

default: "saved"

is_registeredboolean

default: false

namestring

default: ""

emailstring | null
positionstring | null
companystring | null
phone_numberstring | null
image_urlstring

default: ""

usernamestring | null
profile_page_uuidstring | null
notesstring | null
visit_countinteger

default: 0

saved_at*string (date-time)
last_visited_atstring (date-time) | null
met_atActivitySessionContext | null

object · ActivitySessionContext

FieldTypeDescription
session_uuid*string
session_name*string
activity_uuidstring | null
activity_namestring | null
session_date*string (date-time)
profileProfileDocument-Output | null

object · ProfileDocument-Output

FieldTypeDescription
version*integer

Profile schema version

default: 2

theme*ProfileTheme-Output

Profile theme settings

object · ProfileTheme-Output

FieldTypeDescription
template_uuid*string (uuid) | null

Live link to base template identifier; null uses platform default

overrides*ProfileThemeOverrides-Output

Theme overrides

identity*ProfileIdentity-Output

Profile identity details

object · ProfileIdentity-Output

FieldTypeDescription
display_name*string

Profile display name

default: ""

avatar*UploadRef-Output | UserAssetRef-Output | OrgAssetRef-Output | TemplateAssetRef-Output | ExternalRef-Output | null

Profile avatar asset

avatar_frame*UploadRef-Output | UserAssetRef-Output | OrgAssetRef-Output | TemplateAssetRef-Output | ExternalRef-Output | null

Decorative avatar frame asset

headline*string

Headline or bio text formatted as inline markdown

default: ""

role*ProfileRole-Output | null

Current professional role

pages*ProfileDocumentPage-Output[]

Profile pages

array items · ProfileDocumentPage-Output

FieldTypeDescription
id*string

Page identifier

default: "home"

slug*string

URL slug for the page

default: ""

sections*MainSection-Output[]

Sections in this page

stickers*object[]

Decorative stickers

feature_sourcesProfileFeatureSources-Output | null

Server-managed provenance for gated profile features; read-only for clients

object · ProfileFeatureSources-Output

FieldTypeDescription
connect_omission*ConnectOmissionSource | null

Server-managed provenance for a template-seeded connect omission; read-only for clients

mediaProfileMediaResponse | null

Display URLs for the embedded profile's avatar, frame and background. Absent whenever the profile is not embedded.

object · ProfileMediaResponse

FieldTypeDescription
avatar_url*string | null

Hydrated avatar image URL

avatar_frame_url*string | null

Hydrated avatar frame image URL

background*CssBackground-Output | null

Hydrated background CSS representation

object · CssBackground-Output

FieldTypeDescription
source*string

CSS-based background styling

default: "css"

background*string | null

CSS background shorthand value

background_color*string | null

CSS background color

background_image*string | null

CSS background image value

background_position*string | null

CSS background position

background_size*string | null

CSS background size

background_repeat*string | null

CSS background repeat

background_attachment*string | null

CSS background attachment

avatar_fallback*boolean

Whether avatar uses platform fallback

default: false

avatar_frame_fallback*boolean

Whether avatar frame uses platform fallback

default: false

background_fallback*boolean

Whether background uses platform fallback

default: false

theme*ProfileMediaTheme

Effective theme resolved in the same generation as the media

object · ProfileMediaTheme

FieldTypeDescription
palette*object

Effective palette colors for the profile; keys left out use the platform default

custom_css*SanitizedProfileCssV1 | null

Effective compiled stylesheet: eligible template rules followed by the owner's, or null when neither applies

media_version*string

Stable digest of the effective palette, media sources and styling

visitsContactVisitResponse[]

default: []

array items · ContactVisitResponse

FieldTypeDescription
uuid*string
visited_at*string (date-time)
activity_session_uuidstring | null
via_client_idstring | null
met_atActivitySessionContext | null

object · ActivitySessionContext

FieldTypeDescription
session_uuid*string
session_name*string
activity_uuidstring | null
activity_namestring | null
session_date*string (date-time)
notesstring | null
created_at*string (date-time)
400Invalid request
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

401Authentication failed
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

403Insufficient permissions
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

409Resource already exists
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

422Validation error
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

Example request

curl -X POST "https://api.davi.social/api/v1/contacts" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{ /* request body */ }'
GET/api/v1/contacts/{contact_uuid}

Get Contact

Scope: contact:read

Get a single contact with all visits.

Returns the contact details along with the full visit history.

Path parameters

contact_uuid*string

Query parameters

default_backendstring

default: "primary"

Responses

200Successful Response
FieldTypeDescription
uuid*string
typestring

default: "saved"

is_registeredboolean

default: false

namestring

default: ""

emailstring | null
positionstring | null
companystring | null
phone_numberstring | null
image_urlstring

default: ""

usernamestring | null
profile_page_uuidstring | null
notesstring | null
visit_countinteger

default: 0

saved_at*string (date-time)
last_visited_atstring (date-time) | null
met_atActivitySessionContext | null

object · ActivitySessionContext

FieldTypeDescription
session_uuid*string
session_name*string
activity_uuidstring | null
activity_namestring | null
session_date*string (date-time)
profileProfileDocument-Output | null

object · ProfileDocument-Output

FieldTypeDescription
version*integer

Profile schema version

default: 2

theme*ProfileTheme-Output

Profile theme settings

object · ProfileTheme-Output

FieldTypeDescription
template_uuid*string (uuid) | null

Live link to base template identifier; null uses platform default

overrides*ProfileThemeOverrides-Output

Theme overrides

identity*ProfileIdentity-Output

Profile identity details

object · ProfileIdentity-Output

FieldTypeDescription
display_name*string

Profile display name

default: ""

avatar*UploadRef-Output | UserAssetRef-Output | OrgAssetRef-Output | TemplateAssetRef-Output | ExternalRef-Output | null

Profile avatar asset

avatar_frame*UploadRef-Output | UserAssetRef-Output | OrgAssetRef-Output | TemplateAssetRef-Output | ExternalRef-Output | null

Decorative avatar frame asset

headline*string

Headline or bio text formatted as inline markdown

default: ""

role*ProfileRole-Output | null

Current professional role

pages*ProfileDocumentPage-Output[]

Profile pages

array items · ProfileDocumentPage-Output

FieldTypeDescription
id*string

Page identifier

default: "home"

slug*string

URL slug for the page

default: ""

sections*MainSection-Output[]

Sections in this page

stickers*object[]

Decorative stickers

feature_sourcesProfileFeatureSources-Output | null

Server-managed provenance for gated profile features; read-only for clients

object · ProfileFeatureSources-Output

FieldTypeDescription
connect_omission*ConnectOmissionSource | null

Server-managed provenance for a template-seeded connect omission; read-only for clients

mediaProfileMediaResponse | null

Display URLs for the embedded profile's avatar, frame and background. Absent whenever the profile is not embedded.

object · ProfileMediaResponse

FieldTypeDescription
avatar_url*string | null

Hydrated avatar image URL

avatar_frame_url*string | null

Hydrated avatar frame image URL

background*CssBackground-Output | null

Hydrated background CSS representation

object · CssBackground-Output

FieldTypeDescription
source*string

CSS-based background styling

default: "css"

background*string | null

CSS background shorthand value

background_color*string | null

CSS background color

background_image*string | null

CSS background image value

background_position*string | null

CSS background position

background_size*string | null

CSS background size

background_repeat*string | null

CSS background repeat

background_attachment*string | null

CSS background attachment

avatar_fallback*boolean

Whether avatar uses platform fallback

default: false

avatar_frame_fallback*boolean

Whether avatar frame uses platform fallback

default: false

background_fallback*boolean

Whether background uses platform fallback

default: false

theme*ProfileMediaTheme

Effective theme resolved in the same generation as the media

object · ProfileMediaTheme

FieldTypeDescription
palette*object

Effective palette colors for the profile; keys left out use the platform default

custom_css*SanitizedProfileCssV1 | null

Effective compiled stylesheet: eligible template rules followed by the owner's, or null when neither applies

media_version*string

Stable digest of the effective palette, media sources and styling

visitsContactVisitResponse[]

default: []

array items · ContactVisitResponse

FieldTypeDescription
uuid*string
visited_at*string (date-time)
activity_session_uuidstring | null
via_client_idstring | null
met_atActivitySessionContext | null

object · ActivitySessionContext

FieldTypeDescription
session_uuid*string
session_name*string
activity_uuidstring | null
activity_namestring | null
session_date*string (date-time)
notesstring | null
created_at*string (date-time)
401Authentication failed
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

403Insufficient permissions
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

404Resource not found
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

422Validation error
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

Example request

curl -X GET "https://api.davi.social/api/v1/contacts/{contact_uuid}" \
  -H "Authorization: Bearer <token>"
PATCH/api/v1/contacts/{contact_uuid}

Update Contact

Scope: contact:write

Update a contact's details, or your note about them.

Provide only the fields you want to change.

name, position, company and email describe the contact and can only be set on someone with no Davi account — sending any of them for a registered contact is rejected, because those values come from that person's own profile.

notes is your own writing about the contact, so it can be set on either kind. It is private to you and never shown to the person it describes. Send null or an empty string to clear it.

A contact that is absent and one that is not yours both answer 404.

Path parameters

contact_uuid*string

Query parameters

default_backendstring

default: "primary"

Request body*application/json

FieldTypeDescription
namestring | null

max length 255

positionstring | null

max length 255

companystring | null

max length 255

emailstring | null

max length 255

notesstring | null

Your private note about this contact. Send `null` or an empty string to clear it; omit the field to leave it unchanged.

max length 2000

Responses

200Successful Response
FieldTypeDescription
uuid*string
typestring

default: "saved"

is_registeredboolean

default: false

namestring

default: ""

emailstring | null
positionstring | null
companystring | null
phone_numberstring | null
image_urlstring

default: ""

usernamestring | null
profile_page_uuidstring | null
notesstring | null
visit_countinteger

default: 0

saved_at*string (date-time)
last_visited_atstring (date-time) | null
met_atActivitySessionContext | null

object · ActivitySessionContext

FieldTypeDescription
session_uuid*string
session_name*string
activity_uuidstring | null
activity_namestring | null
session_date*string (date-time)
profileProfileDocument-Output | null

object · ProfileDocument-Output

FieldTypeDescription
version*integer

Profile schema version

default: 2

theme*ProfileTheme-Output

Profile theme settings

object · ProfileTheme-Output

FieldTypeDescription
template_uuid*string (uuid) | null

Live link to base template identifier; null uses platform default

overrides*ProfileThemeOverrides-Output

Theme overrides

identity*ProfileIdentity-Output

Profile identity details

object · ProfileIdentity-Output

FieldTypeDescription
display_name*string

Profile display name

default: ""

avatar*UploadRef-Output | UserAssetRef-Output | OrgAssetRef-Output | TemplateAssetRef-Output | ExternalRef-Output | null

Profile avatar asset

avatar_frame*UploadRef-Output | UserAssetRef-Output | OrgAssetRef-Output | TemplateAssetRef-Output | ExternalRef-Output | null

Decorative avatar frame asset

headline*string

Headline or bio text formatted as inline markdown

default: ""

role*ProfileRole-Output | null

Current professional role

pages*ProfileDocumentPage-Output[]

Profile pages

array items · ProfileDocumentPage-Output

FieldTypeDescription
id*string

Page identifier

default: "home"

slug*string

URL slug for the page

default: ""

sections*MainSection-Output[]

Sections in this page

stickers*object[]

Decorative stickers

feature_sourcesProfileFeatureSources-Output | null

Server-managed provenance for gated profile features; read-only for clients

object · ProfileFeatureSources-Output

FieldTypeDescription
connect_omission*ConnectOmissionSource | null

Server-managed provenance for a template-seeded connect omission; read-only for clients

mediaProfileMediaResponse | null

Display URLs for the embedded profile's avatar, frame and background. Absent whenever the profile is not embedded.

object · ProfileMediaResponse

FieldTypeDescription
avatar_url*string | null

Hydrated avatar image URL

avatar_frame_url*string | null

Hydrated avatar frame image URL

background*CssBackground-Output | null

Hydrated background CSS representation

object · CssBackground-Output

FieldTypeDescription
source*string

CSS-based background styling

default: "css"

background*string | null

CSS background shorthand value

background_color*string | null

CSS background color

background_image*string | null

CSS background image value

background_position*string | null

CSS background position

background_size*string | null

CSS background size

background_repeat*string | null

CSS background repeat

background_attachment*string | null

CSS background attachment

avatar_fallback*boolean

Whether avatar uses platform fallback

default: false

avatar_frame_fallback*boolean

Whether avatar frame uses platform fallback

default: false

background_fallback*boolean

Whether background uses platform fallback

default: false

theme*ProfileMediaTheme

Effective theme resolved in the same generation as the media

object · ProfileMediaTheme

FieldTypeDescription
palette*object

Effective palette colors for the profile; keys left out use the platform default

custom_css*SanitizedProfileCssV1 | null

Effective compiled stylesheet: eligible template rules followed by the owner's, or null when neither applies

media_version*string

Stable digest of the effective palette, media sources and styling

visitsContactVisitResponse[]

default: []

array items · ContactVisitResponse

FieldTypeDescription
uuid*string
visited_at*string (date-time)
activity_session_uuidstring | null
via_client_idstring | null
met_atActivitySessionContext | null

object · ActivitySessionContext

FieldTypeDescription
session_uuid*string
session_name*string
activity_uuidstring | null
activity_namestring | null
session_date*string (date-time)
notesstring | null
created_at*string (date-time)
400Invalid request
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

401Authentication failed
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

403Insufficient permissions
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

404Resource not found
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

422Validation error
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

Example request

curl -X PATCH "https://api.davi.social/api/v1/contacts/{contact_uuid}" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{ /* request body */ }'
DELETE/api/v1/contacts/{contact_uuid}

Remove Contact

Scope: contact:write

Remove a contact and all its visits.

Path parameters

contact_uuid*string

Query parameters

default_backendstring

default: "primary"

Responses

200Successful Response
FieldTypeDescription
message*string

Success or status message

401Authentication failed
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

403Insufficient permissions
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

404Resource not found
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

422Validation error
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

Example request

curl -X DELETE "https://api.davi.social/api/v1/contacts/{contact_uuid}" \
  -H "Authorization: Bearer <token>"
POST/api/v1/contacts/{contact_uuid}/visits

Add Contact Visit

Scope: contact:write

Add a visit to an existing contact.

Records a new encounter/interaction with the contact. Attribution (via_client_id) is taken from the caller's token, not the request body.

Path parameters

contact_uuid*string

Query parameters

default_backendstring

default: "primary"

Request body*application/json

FieldTypeDescription
visited_at*string (date-time)

Timestamp when the contact was encountered

activity_session_uuidstring | string (uuid) | null

UUID of the activity session where the contact was met

notesstring | null

Notes about this encounter. Kept against the visit, not the contact — the contact's standing note is set through `PATCH /contacts/{contact_uuid}`.

max length 1000

via_client_idstring | null

Ignored. Attribution is derived server-side from the caller's access token; a client_id sent here is an unverified claim about another app and is discarded.

Responses

200Successful Response
FieldTypeDescription
uuid*string
visited_at*string (date-time)
activity_session_uuidstring | null
via_client_idstring | null
met_atActivitySessionContext | null

object · ActivitySessionContext

FieldTypeDescription
session_uuid*string
session_name*string
activity_uuidstring | null
activity_namestring | null
session_date*string (date-time)
notesstring | null
created_at*string (date-time)
400Invalid request
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

401Authentication failed
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

403Insufficient permissions
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

409Resource already exists
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

422Validation error
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

Example request

curl -X POST "https://api.davi.social/api/v1/contacts/{contact_uuid}/visits" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{ /* request body */ }'
DELETE/api/v1/contacts/{contact_uuid}/visits/{visit_uuid}

Remove Contact Visit

Scope: contact:write

Remove a specific visit from a contact.

Cannot remove the last visit - use the delete contact endpoint instead.

Path parameters

contact_uuid*string
visit_uuid*string

Query parameters

default_backendstring

default: "primary"

Responses

200Successful Response
FieldTypeDescription
message*string

Success or status message

401Authentication failed
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

403Insufficient permissions
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

404Resource not found
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

422Validation error
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

Example request

curl -X DELETE "https://api.davi.social/api/v1/contacts/{contact_uuid}/visits/{visit_uuid}" \
  -H "Authorization: Bearer <token>"
GET/api/v1/contacts/activities

List Contact Activities

Scope: contact:read

Activities where you have met contacts, with the count met at each.

Bounded by how many activities you have attended, so it returns one page.

Query parameters

default_backendstring

default: "primary"

Responses

200Successful Response
FieldTypeDescription
total_items*integer

Total number of items available

total_pages*integer

Total number of pages available

current_page*integer

Current page number

items*ContactActivityResponse[]

List of items on the current page

array items · ContactActivityResponse

FieldTypeDescription
activity_uuid*string
activity_name*string
activity_slug*string
organization_uuid*string
contact_count*integer

Number of contacts met at this activity

401Authentication failed
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

403Insufficient permissions
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

422Validation error
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

detailsobject | null

What the refusal is about, where it is something you can act on — the amount and currency owed on a `402`, the entitlement a tier did not grant on a `403`. Values are typed as the error carries them, so read a figure from here rather than from `errors`, whose values are always the copy a form shows against a field.

Example request

curl -X GET "https://api.davi.social/api/v1/contacts/activities" \
  -H "Authorization: Bearer <token>"