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.
Field Type Description iduuid Unique identifier account_iduuid Account this source belongs to created_byuuid User who created the source namestring Source name archived_atdatetime | null When archived, if applicable created_atdatetime Creation timestamp updated_atdatetime Last update timestamp
Endpoint: sources-list
Field Type Required Description include_archivedboolean No Include archived sources (default: false)
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
Field Type Required Description iduuid Yes Source ID
Endpoint: sources-create
Field Type Required Description namestring Yes Source name
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
Field Type Required Description iduuid Yes Source ID namestring No New name
Endpoint: sources-archive
Field Type Required Description iduuid Yes Source ID
Endpoint: sources-unarchive
Field Type Required Description iduuid Yes Source ID
Code Description sources.invalid_requestMalformed request body sources.invalid_idInvalid UUID format sources.not_foundSource does not exist sources.name_requiredName is required sources.internalServer error