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.
Field Type Description iduuid Unique identifier of the source (UUID). account_iduuid ID of the account that owns this source (UUID). created_byuuid ID of the user who created this source (UUID). namestring Display name of the source. archived_atdatetime? Timestamp when the source was archived (ISO 8601), or null if active. created_atdatetime Timestamp when the source was created (ISO 8601). updated_atdatetime Timestamp when the source was last updated (ISO 8601).
Endpoint: sources-archive
Field Type Required Description idstring Yes ID of the source to archive (UUID).
curl -X POST https://api.driftwoodapp.com/api/sources-archive \
-H " Authorization: Bearer YOUR_TOKEN " \
-H " Content-Type: application/json " \
Endpoint: sources-create
Field Type Required Description namestring Yes Display name of the source. Required and must be non-empty after trimming.
curl -X POST https://api.driftwoodapp.com/api/sources-create \
-H " Authorization: Bearer YOUR_TOKEN " \
-H " Content-Type: application/json " \
Endpoint: sources-get
Field Type Required Description idstring Yes ID of the source to retrieve (UUID).
curl -X POST https://api.driftwoodapp.com/api/sources-get \
-H " Authorization: Bearer YOUR_TOKEN " \
-H " Content-Type: application/json " \
Endpoint: sources-list
Field Type Required Description include_archivedbool No When true, include archived sources in the results; defaults to false.
curl -X POST https://api.driftwoodapp.com/api/sources-list \
-H " Authorization: Bearer YOUR_TOKEN " \
-H " Content-Type: application/json " \
Endpoint: sources-unarchive
Field Type Required Description idstring Yes ID of the source to unarchive (UUID).
curl -X POST https://api.driftwoodapp.com/api/sources-unarchive \
-H " Authorization: Bearer YOUR_TOKEN " \
-H " Content-Type: application/json " \
Endpoint: sources-update
Field Type Required Description idstring Yes ID of the source to update (UUID). Required. namestring Yes New display name of the source. Required and must be non-empty after trimming.
curl -X POST https://api.driftwoodapp.com/api/sources-update \
-H " Authorization: Bearer YOUR_TOKEN " \
-H " Content-Type: application/json " \
-d ' {"id": "...", "name": "..."} '
Code Description sources.invalid_requestinvalid request body sources.invalid_idinvalid source ID sources.not_foundsource not found sources.name_requiredname is required