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.
The Source Object
Section titled “The Source Object”| Field | Type | Description |
|---|---|---|
id | uuid | |
account_id | uuid | |
created_by | uuid | |
name | string | |
archived_at | datetime? | |
created_at | datetime | |
updated_at | datetime |
Archive a source
Section titled “Archive a source”Endpoint: sources-archive
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes |
curl -X POST https://api.driftwoodapp.com/api/sources-archive \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"id": "..."}'Create a new source
Section titled “Create a new source”Endpoint: sources-create
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes |
curl -X POST https://api.driftwoodapp.com/api/sources-create \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name": "..."}'Get a source by ID
Section titled “Get a source by ID”Endpoint: sources-get
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes |
curl -X POST https://api.driftwoodapp.com/api/sources-get \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"id": "..."}'List sources
Section titled “List sources”Endpoint: sources-list
| Field | Type | Required | Description |
|---|---|---|---|
include_archived | bool | No |
curl -X POST https://api.driftwoodapp.com/api/sources-list \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'Unarchive a source
Section titled “Unarchive a source”Endpoint: sources-unarchive
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes |
curl -X POST https://api.driftwoodapp.com/api/sources-unarchive \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"id": "..."}'Update a source
Section titled “Update a source”Endpoint: sources-update
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
name | string | Yes |
curl -X POST https://api.driftwoodapp.com/api/sources-update \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"id": "...", "name": "..."}'