Inbound Email
Driftwood gives each account a unique BCC email address. Add it to any outgoing email and the message is automatically logged as an activity on the matching contact.
The Inbound Email Object
Section titled “The Inbound Email Object”| Field | Type | Description |
|---|---|---|
id | uuid | |
account_id | uuid | |
email | string | |
domain | string | |
created_by | uuid | |
created_at | datetime |
Block a sender by email or domain
Section titled “Block a sender by email or domain”Endpoint: blocked-senders-create
| Field | Type | Required | Description |
|---|---|---|---|
email | string | No | |
domain | string | No |
curl -X POST https://api.driftwoodapp.com/api/blocked-senders-create \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'Unblock a sender
Section titled “Unblock a sender”Endpoint: blocked-senders-delete
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes |
curl -X POST https://api.driftwoodapp.com/api/blocked-senders-delete \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"id": "..."}'List blocked senders
Section titled “List blocked senders”Endpoint: blocked-senders-list
Get the BCC address for the current user
Section titled “Get the BCC address for the current user”Endpoint: inbound-emails-bcc-address
Generate a BCC token for the current user
Section titled “Generate a BCC token for the current user”Endpoint: inbound-emails-generate-token
List inbound emails
Section titled “List inbound emails”Endpoint: inbound-emails-list
| Field | Type | Required | Description |
|---|---|---|---|
contact_id | string? | No | |
company_id | string? | No | |
status | string | No | |
cursor | string | No | |
limit | int | No |
curl -X POST https://api.driftwoodapp.com/api/inbound-emails-list \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'Rotate the BCC token for the current user
Section titled “Rotate the BCC token for the current user”Endpoint: inbound-emails-rotate-token