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
iduuidUnique identifier of the source (UUID).
account_iduuidID of the account that owns this source (UUID).
created_byuuidID of the user who created this source (UUID).
namestringDisplay name of the source.
archived_atdatetime?Timestamp when the source was archived (ISO 8601), or null if active.
created_atdatetimeTimestamp when the source was created (ISO 8601).
updated_atdatetimeTimestamp when the source was last updated (ISO 8601).

Endpoint: sources-archive

FieldTypeRequiredDescription
idstringYesID of the source to archive (UUID).
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
namestringYesDisplay name of the source. Required and must be non-empty after trimming.
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
idstringYesID of the source to retrieve (UUID).
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_archivedboolNoWhen true, include archived sources in the results; defaults to false.
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
idstringYesID of the source to unarchive (UUID).
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
idstringYesID of the source to update (UUID). Required.
namestringYesNew display name of the source. Required and must be non-empty after trimming.
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": "..."}'
CodeDescription
sources.invalid_requestinvalid request body
sources.invalid_idinvalid source ID
sources.not_foundsource not found
sources.name_requiredname is required