Hubapi Communication Preferences
Hubapi Communication Preferences is the HubSpot API for managing contact subscription status and communication consent preferences.
- Base URL:
https://api.hubapi.com - Auth:
query:hapikey(pass your key via theapiKeyinput)
Operations
get_communication_preferences_v3_definitions_get— GET /communication-preferences/v3/definitions — Get subscription definitionsget_communication_preferences_v3_status_email_em— GET /communication-preferences/v3/status/email/{emailAddress} — Get subscription statuses for a contactpost_communication_preferences_v3_subscribe_subs— POST /communication-preferences/v3/subscribe — Subscribe a contactpost_communication_preferences_v3_unsubscribe_un— POST /communication-preferences/v3/unsubscribe — Unsubscribe a contact
Inputs
apiKey— your hubapi-communication-preferences API keyoperation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: get_communication_preferences_v3_definitions_get
apiKey: <your key>
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey |
string | yes | — | DEPRECATED — bind an API Key credential to the task with credentialName instead. A key pasted here is stored in the workflow definition in clear and appears in every export of it. Still honoured for workflows built before the change. |
operation |
string | yes | — | One of: get_communication_preferences_v3_definitions_get, get_communication_preferences_v3_status_email_em, post_communication_preferences_v3_subscribe_subs, post_communication_preferences_v3_unsubscribe_un |
emailAddress |
string | no | — | Path parameter emailAddress (required by some operations). |
body |
string | no | — | Request body as a JSON object string (for create/update operations). |
query |
string | no | — | Query-string parameters as a JSON object string, e.g. {"limit": 50}. Parsed and url-encoded onto the request. |