Skip to content

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.

FieldTypeDescription
iduuidUnique identifier of the blocked sender entry
account_iduuidID of the account this block applies to
emailstringBlocked sender email address, if blocking by address
domainstringBlocked sender domain, if blocking by domain
created_byuuidID of the user who created the block
created_atdatetimeCreation timestamp (ISO 8601)

Endpoint: blocked-senders-create

FieldTypeRequiredDescription
emailstringNoSender email address to block; provide either email or domain
domainstringNoSender domain to block; provide either email or domain
Terminal window
curl -X POST https://api.driftwoodapp.com/api/blocked-senders-create \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'

Endpoint: blocked-senders-delete

FieldTypeRequiredDescription
idstringYesID of the blocked sender entry to remove
Terminal window
curl -X POST https://api.driftwoodapp.com/api/blocked-senders-delete \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "..."}'

Endpoint: blocked-senders-list

Endpoint: inbound-emails-bcc-address

Endpoint: inbound-emails-generate-token

Endpoint: inbound-emails-list

FieldTypeRequiredDescription
contact_idstring?NoFilter to emails matched to this contact ID
company_idstring?NoFilter to emails matched to this company ID
statusstringNoFilter by processing status One of: processed, unmatched, blocked
cursorstringNoOpaque pagination cursor from a previous response
limitintNoMaximum number of emails to return
Terminal window
curl -X POST https://api.driftwoodapp.com/api/inbound-emails-list \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'

Endpoint: inbound-emails-rotate-token

CodeDescription
invalid_requestinvalid_request
not_foundnot_found
bcc.already_existsAlready exists