Drip
Manage subscribers, tags, and e-commerce email automation workflows via the Drip REST API.
Drip is an e-commerce marketing automation platform (ECRM). This tool wraps the core contact + tag endpoints so you can read and manage your audience from any InTouch job, schedule, or the AI assistant.
What it does
Calls the real Drip v2 API (https://api.getdrip.com/v2/<account_id>/...) using
HTTP Basic authentication — your API token is the username and the password is
empty. No external Python packages: standard library only (urllib, json,
base64). Response bodies are capped at 5 MB. The raw JSON response and HTTP
status are returned so a downstream step (or the assistant) can interpret them;
non-2xx responses are surfaced rather than thrown, so you can inspect Drip's
error document.
Operations
| operation | method | endpoint | required params |
|---|---|---|---|
list-subscribers |
GET | /v2/{account}/subscribers |
accountId |
get-contact |
GET | /v2/{account}/subscribers/{id-or-email} |
accountId, contact/email |
upsert-contact |
POST | /v2/{account}/subscribers |
accountId, email |
apply-tag |
POST | /v2/{account}/tags |
accountId, email, tag |
list-tags |
GET | /v2/{account}/tags |
accountId |
Inputs
apiKey(required) — Drip API token.accountId(required) — your numeric Drip account id.operation(required) — one of the operations above.contact— id or email forget-contact(falls back toemail).email— contact email forupsert-contact/apply-tag.tag— tag name forapply-tag(optional onupsert-contact).customFields— JSON object string of custom fields forupsert-contact, e.g.{"shirt_size":"Medium"}.page/perPage— pagination forlist-subscribers(defaults1/100).
Outputs
result— the raw JSON response body from Drip (as a string).status— the HTTP status code (as a string).
API key setup
- Log in to Drip.
- Go to Settings → User Settings → API Token.
- Copy your API Token — this is the
apiKey. - Your account id is the numeric id shown in your Drip dashboard URL
(e.g.
https://www.getdrip.com/<account_id>/...) — this isaccountId.
Authentication is HTTP Basic with the token as the username and an empty
password (Authorization: Basic base64("<apiKey>:")).
Examples
List the first page of subscribers:
operation = list-subscribers
apiKey = <your token>
accountId = 9999999
perPage = 50
Fetch one contact by email:
operation = get-contact
apiKey = <your token>
accountId = 9999999
email = [email protected]
Create or update a contact with a tag and a custom field:
operation = upsert-contact
apiKey = <your token>
accountId = 9999999
email = [email protected]
tag = Customer
customFields = {"shirt_size":"Medium"}
Apply a tag to a contact:
operation = apply-tag
apiKey = <your token>
accountId = 9999999
email = [email protected]
tag = SEO
List all tags in the account:
operation = list-tags
apiKey = <your token>
accountId = 9999999