Skip to content
Docs menu

Zapier, Make and n8n

Schedule posts, queue videos and receive signed publishing events.

On this page

Connect your workspace

Use an Editor or Publishing admin API key from Settings → API keys on a plan with API access. Each key belongs to one workspace. Find destination account IDs with this request.

List social accounts
GET https://posthoop.com/api/v1/accounts
Authorization: Bearer YOUR_POSTHOOP_API_KEY
ToolSend a Posthoop request
ZapierAdd Webhooks by Zapier → Custom Request. Select the method and URL shown in the recipe. Set Authorization to Bearer YOUR_POSTHOOP_API_KEY and Content-Type to application/json for JSON requests. Map a JSON string into Data.
MakeOpen a new scenario and choose Import blueprint from the editor menu. Reconnect source apps. In HTTP → Make a request, set the method, URL and JSON body, and use Authorization: Bearer YOUR_POSTHOOP_API_KEY. The downloads use HTTP (legacy), with the JSON string in the Raw request body. In the current HTTP module you can store this header in an API key credential.
n8nIn a new workflow, choose Import from File. Reconnect source apps. In each Posthoop HTTP Request node, choose Generic Credential Type → Header Auth. Set the credential name field to Authorization and its value to Bearer YOUR_POSTHOOP_API_KEY. The node supplies the JSON content type.

Replace the sample values before enabling an automation. Limit access to workflows that contain secrets and remove credentials and hook URLs before sharing exports.

See the official import and HTTP action instructions. n8n workflow imports, Make blueprint imports, Make blueprint format example, Make HTTP (legacy), Zapier Custom Request.

Schedule a post from Google Sheets

Download the n8n workflow or the Make blueprint.

Create a Posts sheet with the columns caption, scheduled_at, and account_id in that order. Store the publish time as plain text in ISO 8601 with a time-zone offset. The time must be in the future when the automation runs. Choose a destination that supports text posts, such as Threads or Bluesky.

Create a scheduled post
POST https://posthoop.com/api/v1/posts
Authorization: Bearer YOUR_POSTHOOP_API_KEY
Content-Type: application/json

{
  "caption": "New studio tour",
  "scheduledAt": "2027-01-15T14:00:00Z",
  "targets": [
    {
      "accountId": "a62aed49-975f-4f9e-883a-0ce758876dda"
    }
  ]
}
  • Zapier. Start with Google Sheets → New Spreadsheet Row. Map the three columns into a JavaScript Code action using the exact input names below. In Custom Request, map the Code step’s body into Data.
  • Make. Choose the sheet in Google Sheets → Watch New Rows. The blueprint maps columns A, B and C into the HTTP request. Start watching from new rows.
  • n8n. Select your document and sheet on Google Sheets Trigger → Row Added. Select your Header Auth credential on Schedule post.
Zapier JavaScript action
return { body: JSON.stringify({
  caption: inputData.caption,
  scheduledAt: inputData.scheduled_at,
  targets: [{ accountId: inputData.account_id }],
}) };

The API returns 201 with the post ID. If workspace approvals apply, the post waits for review.

Queue a video from Google Drive

Download the n8n workflow or the Make blueprint.

Set up your workspace’s queue in Settings → Posting schedule. Watch for newly created MP4, MOV or WebM files. Use a connected destination that accepts your media and supply any required per-platform options or media metadata. YouTube, for example, needs video duration and dimensions.

  • Make. Select the folder in Google Drive → Watch Files in a Folder. Assign the Google connection to Download a File as well. The request modules reserve an upload, PUT the binary Data from Drive and queue the resulting media ID. Replace the sample account ID in the final request.
  • n8n. Choose the folder in Google Drive Trigger → File Created and use the same Google credential in Download Drive file. Assign Header Auth on Reserve media upload and Queue video. Replace the sample account ID in Queue video.
  • Zapier. Start with Google Drive → New File in Folder and filter to video MIME types. This HTTP-only version needs a Web Content Link that directly downloads a file you already intend to share publicly. Import it with the request below, then map the returned id into the queue request. For a private folder, use the Make or n8n binary workflow or Posthoop’s Drive folder watcher.
Make and n8n · Reserve a media upload
POST https://posthoop.com/api/v1/media/uploads
Authorization: Bearer YOUR_POSTHOOP_API_KEY
Content-Type: application/json

{
  "fileName": "studio-tour.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 1048576
}
Make and n8n · Upload the file bytes
PUT <uploadUrl from the reservation>
Content-Type: <headers["Content-Type"] from the reservation>
If-None-Match: <headers["If-None-Match"] from the reservation>
Content-Length: <sizeBytes sent in the reservation>

<raw video bytes>

Use the Drive metadata for the file name, MIME type and byte count. Send the exact bytes to the presigned URL within 15 minutes. Leave the Authorization header unset on the PUT.

Zapier · Import a direct download URL
POST https://posthoop.com/api/v1/media/import
Authorization: Bearer YOUR_POSTHOOP_API_KEY
Content-Type: application/json

{
  "url": "https://files.example.com/studio-tour.mp4"
}

Map the link into a Code action’s file_url field. Use return { body: JSON.stringify({ url: inputData.file_url }) }; and map body into Data. Public URL imports accept files up to 100 MiB. Verify the link downloads the file without signing in.

Queue the uploaded video
POST https://posthoop.com/api/v1/posts
Authorization: Bearer YOUR_POSTHOOP_API_KEY
Content-Type: application/json

{
  "caption": "studio-tour.mp4",
  "mediaIds": [
    "6ec855cc-3d45-4c10-b440-1fd1c103c539"
  ],
  "addToQueue": true,
  "targets": [
    {
      "accountId": "a62aed49-975f-4f9e-883a-0ce758876dda"
    }
  ]
}

Map the Drive file name into caption and the reservation or import ID into mediaIds[0]. Encode both as JSON strings. Creating the post verifies the pending upload. Queue availability and approvals can affect when it goes out.

Zapier · Build the queue request body
return { body: JSON.stringify({
  caption: inputData.file_name,
  mediaIds: [inputData.media_id],
  addToQueue: true,
  targets: [{ accountId: inputData.account_id }],
}) };

Save an RSS item as a draft

Download the n8n workflow or the Make blueprint.

Set the trigger to your feed URL. Join the item title and link with a newline in caption.

  • Zapier. Choose RSS by Zapier → New Item in Feed. Use a JavaScript Code action with title and link inputs, then map its body into the Custom Request.
  • Make. Choose RSS → Watch RSS Feed Items and start with new items. Set the Authorization header in the request module.
  • n8n. Set the URL on the RSS Feed Trigger and select a Header Auth credential on Create draft.
Zapier JavaScript action
return { body: JSON.stringify({
  caption: [inputData.title, inputData.link].filter(Boolean).join('\n'),
  draft: true,
}) };
Create a draft without choosing an account
POST https://posthoop.com/api/v1/posts
Authorization: Bearer YOUR_POSTHOOP_API_KEY
Content-Type: application/json

{
  "caption": "Studio tour\nhttps://example.com/studio-tour",
  "draft": true
}

The draft stays in the workspace until someone schedules or publishes it.

Receive and verify Posthoop webhooks

Create a receiver in your automation tool, then add its HTTPS URL in Settings → Webhooks or use the request below with a Publishing admin key. Outbound webhooks are available on Team and Agency. Save the endpoint’s signing secret when it appears.

Subscribe to publication events
POST https://posthoop.com/api/v1/webhooks
Authorization: Bearer YOUR_POSTHOOP_API_KEY
Content-Type: application/json

{
  "url": "https://receiver.example.com/posthoop",
  "events": [
    "post.target.published"
  ]
}

Verify Posthoop-Signature over the original UTF-8 body before reading payload fields. Keep the body exactly as received, including any whitespace. Each example checks the HMAC-SHA256 digest in constant time and allows five minutes of clock skew.

Zapier

Use Webhooks by Zapier → Catch Raw Hook. Add Code by Zapier → Run Python. In Input Data map the raw body to raw, the Posthoop-Signature header to signature, and set secret to the endpoint’s signing secret. Place a Filter after this step and continue only when its type equals post.target.published. Zapier acknowledges the HTTP request before the Code step runs. Check Zap History to diagnose rejected events.

Zapier · Run Python
values = input_data
import hashlib
import hmac
import json
import re
import time

secret = values.get("secret")
raw = values.get("raw")
signature = values.get("signature", "")
match = re.fullmatch(r"t=([1-9][0-9]{0,15}),v1=([0-9a-f]{64})", signature or "")
if not secret or secret == "REPLACE_WITH_SIGNING_SECRET" or not isinstance(raw, str) or not match:
    raise ValueError("Invalid Posthoop signature")
timestamp, supplied = match.groups()
if abs(int(time.time()) - int(timestamp)) > 300:
    raise ValueError("Invalid Posthoop signature")
signed = (timestamp + "." + raw).encode("utf-8")
expected = hmac.new(secret.encode("utf-8"), signed, hashlib.sha256).hexdigest()
if not hmac.compare_digest(expected, supplied):
    raise ValueError("Invalid Posthoop signature")
event = json.loads(raw)
data = event.get("data", {})
return {
    "type": event["type"],
    "eventId": event["id"],
    "postId": data.get("postId") or "",
    "targetId": data.get("targetId") or "",
    "url": data.get("externalUrl") or "",
}

Catch Raw Hook, Python Code steps.

Make

Use Webhooks → Custom webhook. Create a fresh hook in the imported scenario. In Advanced settings switch on Get request headers and JSON pass-through. In Make Code → Run code, choose Python and map the JSON text to raw and the single Posthoop-Signature header value to signature. Set secret to your endpoint’s signing secret. After verification, acknowledge with Webhook response 204 and use a filter on the Code result’s type for post.target.published.

Make · Run Python
values = input
import hashlib
import hmac
import json
import re
import time

secret = values.get("secret")
raw = values.get("raw")
signature = values.get("signature", "")
match = re.fullmatch(r"t=([1-9][0-9]{0,15}),v1=([0-9a-f]{64})", signature or "")
if not secret or secret == "REPLACE_WITH_SIGNING_SECRET" or not isinstance(raw, str) or not match:
    raise ValueError("Invalid Posthoop signature")
timestamp, supplied = match.groups()
if abs(int(time.time()) - int(timestamp)) > 300:
    raise ValueError("Invalid Posthoop signature")
signed = (timestamp + "." + raw).encode("utf-8")
expected = hmac.new(secret.encode("utf-8"), signed, hashlib.sha256).hexdigest()
if not hmac.compare_digest(expected, supplied):
    raise ValueError("Invalid Posthoop signature")
event = json.loads(raw)
data = event.get("data", {})
return {
    "type": event["type"],
    "eventId": event["id"],
    "postId": data.get("postId") or "",
    "targetId": data.get("targetId") or "",
    "url": data.get("externalUrl") or "",
}

Make Code requires a paid Make plan. Use Run once and confirm the raw body and header inputs if you replace the trigger or remap its outputs. Custom webhook settings, Make Code.

n8n

Configure a Webhook node for POST, enable Raw Body, and set Respond to Using Respond to Webhook Node. Add a JavaScript Code node in Run Once for All Items mode. Replace the signing-secret placeholder with your endpoint’s secret or a protected secret lookup. Self-hosted runners need NODE_FUNCTION_ALLOW_BUILTIN=crypto. Return 204 using Respond to Webhook after verification. Publish the workflow and use its production URL.

n8n · JavaScript Code node
const { createHmac, timingSafeEqual } = require('crypto');
const secret = 'REPLACE_WITH_SIGNING_SECRET';
const signature = $input.first().json.headers['posthoop-signature'];
const body = await this.helpers.getBinaryDataBuffer(0, 'data');
const match = /^t=([1-9]\d{0,15}),v1=([0-9a-f]{64})$/.exec(signature ?? '');
if (!secret || secret === 'REPLACE_WITH_SIGNING_SECRET' || !match ||
    Math.abs(Math.floor(Date.now() / 1000) - Number(match[1])) > 300) {
  throw new Error('Invalid Posthoop signature');
}
const expected = createHmac('sha256', secret).update(match[1] + '.').update(body).digest();
if (!timingSafeEqual(expected, Buffer.from(match[2], 'hex'))) {
  throw new Error('Invalid Posthoop signature');
}
return [{ json: JSON.parse(body.toString('utf8')) }];

Webhook node options, Allow built-in modules.

Use Send test in the Webhooks settings or call POST /api/v1/webhooks/{id}/test with a Publishing admin key. The verifier should accept webhook.test. The published-event filter stops it before Slack or Airtable. Use an actual publication for an end-to-end test.

Posthoop can retry deliveries with the same event ID. Deduplicate by the payload ID before irreversible actions. See delivery and retry behaviour.

Send a Slack message when a post goes live

Download the n8n workflow or the Make blueprint.

Follow the signed webhook setup. Posthoop sends an event per published destination. Use data.externalUrl if present and data.postId otherwise.

  • Zapier. After the signature step and Filter, add Slack → Send Channel Message. Select a channel and map the verified url or postId.
  • Make and n8n. Create a Slack Incoming Webhook for the destination channel. Set its private URL on the final HTTP request. If duplicate messages matter, use an event-ID store with a unique key before the Slack action.
Slack Incoming Webhook request
POST https://hooks.slack.com/services/REPLACE/REPLACE/REPLACE
Content-Type: application/json

{
  "text": "Published: https://example.com/post"
}

Set up a Slack Incoming Webhook.

Log published posts in Airtable

Download the n8n workflow or the Make blueprint.

Follow the signed webhook setup. Create a table with single-line text fields named Event ID, Post ID, Target ID, and Post URL. Use an Airtable personal access token that can write records in that base.

  • Zapier. After verification and Filter, use Webhooks by Zapier → Custom Request with PATCH. Encode the verified eventId, postId, targetId and url as JSON strings in the request.
  • Make and n8n. Replace the base and table IDs in the final HTTP request. Add Authorization: Bearer YOUR_AIRTABLE_TOKEN there. In n8n use a separate Header Auth credential for Airtable.
Upsert by event ID
PATCH https://api.airtable.com/v0/REPLACE_BASE_ID/REPLACE_TABLE_ID
Authorization: Bearer YOUR_AIRTABLE_TOKEN
Content-Type: application/json

{
  "performUpsert": {
    "fieldsToMergeOn": [
      "Event ID"
    ]
  },
  "records": [
    {
      "fields": {
        "Event ID": "event-id",
        "Post ID": "post-id",
        "Target ID": "target-id",
        "Post URL": "https://example.com/post"
      }
    }
  ]
}

The upsert creates a row for a new event or updates the existing one on retry. Airtable update records API.