Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Sources

Sources let you track the origin of contacts — “Website”, “Referral”, “Trade Show”, etc. Contacts can be linked to a source to understand your acquisition channels.

FieldTypeDescription
iduuidUnique identifier
account_iduuidAccount this source belongs to
created_byuuidUser who created the source
namestringSource name
archived_atdatetime | nullWhen archived, if applicable
created_atdatetimeCreation timestamp
updated_atdatetimeLast update timestamp

Endpoint: sources-list

FieldTypeRequiredDescription
include_archivedbooleanNoInclude archived sources (default: false)
Terminal window
curl -X POST https://api.driftwoodapp.com/api/sources-list \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"include_archived": false}'

Endpoint: sources-get

FieldTypeRequiredDescription
iduuidYesSource ID

Endpoint: sources-create

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

Endpoint: sources-update

FieldTypeRequiredDescription
iduuidYesSource ID
namestringNoNew name

Endpoint: sources-archive

FieldTypeRequiredDescription
iduuidYesSource ID

Endpoint: sources-unarchive

FieldTypeRequiredDescription
iduuidYesSource ID
CodeDescription
sources.invalid_requestMalformed request body
sources.invalid_idInvalid UUID format
sources.not_foundSource does not exist
sources.name_requiredName is required
sources.internalServer error