pagehive

define_integration

Connect a service to the site once: resend sends email, slack posts to one channel, zapier, make, n8n and pipedream start a Zap, scenario or workflow (n8n Cloud only), apps_script runs the owner's Google Apps Script web app (Sheets, Gmail, Calendar), custom calls an HTTPS API (needs can_custom_integrations).

IntegrationsChanges dataBasic and upUpdated

What it does

Connect a service to the site once: resend sends email, slack posts to one channel, zapier, make, n8n and pipedream start a Zap, scenario or workflow (n8n Cloud only), apps_script runs the owner's Google Apps Script web app (Sheets, Gmail, Calendar), custom calls an HTTPS API (needs can_custom_integrations). It starts as needs_key until the owner pastes the key at key_url, on /hive; no tool takes a key. Triggers then use it with define_trigger.

Plans

Needs a paid plan: Basic, Pro or Ultra. On other plans your agent gets an error that says so. See Limits for what each plan includes.

Parameters

NameTypeAbout
site_idrequiredstringThe id of the site. list_sites gives the ids of your sites.
namerequiredstringThe Integration's name: a lowercase letter, then letters, digits or underscores.
servicerequiredone of: resend, slack, zapier, make, n8n, pipedream, apps_script, customresend sends an email, slack posts to one channel, zapier, make, n8n and pipedream start a Zap, scenario or workflow, apps_script runs your Google Apps Script web app, custom calls any HTTPS API.
labelstring or nullA readable name shown on /hive, such as Slack · #alerts.
descriptionstring or nullWhat it is for, in plain words (up to 500 characters). null clears it.
settingsobjectWhat stays the same for every call: resend { from? } (a default sender, such as "Shop <hi@example.com>"); slack, zapier, make, n8n, pipedream, apps_script {} (the webhook URL is the key, so one such Integration is one channel, Zap, scenario, workflow or script); custom { base_url (https), headers?, key_header (default Authorization), key_prefix (default "Bearer ") }. No placeholders.
enabledbooleanfalse pauses it: every Trigger on it stops until it is true again.
idempotency_keystringAny unique string (1-200 printable ASCII). A retry with the same key and arguments returns the first call's result instead of running again. Same as the Idempotency-Key header.

Example

Call define_integration with these arguments:

{
  "site_id": "01a1…",
  "name": "slack_alerts",
  "service": "slack",
  "label": "Slack · #alerts",
  "description": "The team's alerts channel."
}

Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.

Related guides