Skip to content

Sources

Sources track where your contacts come from — website, referral, LinkedIn, events, etc. Assign a source to each contact to measure which channels drive the most leads.

FieldTypeDescription
iduuid
account_iduuid
created_byuuid
namestring
archived_atdatetime?
created_atdatetime
updated_atdatetime

Endpoint: sources-archive

FieldTypeRequiredDescription
idstringYes
Terminal window
curl -X POST https://api.driftwoodapp.com/api/sources-archive \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "..."}'

Endpoint: sources-create

FieldTypeRequiredDescription
namestringYes
Terminal window
curl -X POST https://api.driftwoodapp.com/api/sources-create \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "..."}'

Endpoint: sources-get

FieldTypeRequiredDescription
idstringYes
Terminal window
curl -X POST https://api.driftwoodapp.com/api/sources-get \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "..."}'

Endpoint: sources-list

FieldTypeRequiredDescription
include_archivedboolNo
Terminal window
curl -X POST https://api.driftwoodapp.com/api/sources-list \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'

Endpoint: sources-unarchive

FieldTypeRequiredDescription
idstringYes
Terminal window
curl -X POST https://api.driftwoodapp.com/api/sources-unarchive \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "..."}'

Endpoint: sources-update

FieldTypeRequiredDescription
idstringYes
namestringYes
Terminal window
curl -X POST https://api.driftwoodapp.com/api/sources-update \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "...", "name": "..."}'