Skip to content

Zapier, Make and n8n

Step-by-step recipes for the three tools.

Before you start

Create an API key in SocialKuy under Brand → Integrations. For tools that only create drafts or posts for approval, a Contributor key is enough. Use a separate key for each tool, so one can be revoked without stopping the others.

Every recipe below sends an Idempotency-Key. Use a value that is unique for the thing you are posting, such as the row id of a spreadsheet or the id of the triggering record. When a tool retries a step, the same key returns the first answer instead of creating a second post.

Zapier

Create a post:

  1. Add an action Webhooks by Zapier → Custom Request.
  2. Method POST, URL https://app.socialkuy.com/api/v1/posts.
  3. Data: the JSON body from the posting guide, with fields mapped from the trigger.
  4. Headers: Authorization = Bearer skuy_your_key, Content-Type = application/json, Idempotency-Key = the trigger's id.

Hear about posts:

  1. Start a Zap with Webhooks by Zapier → Catch Raw Hook and copy its URL.
  2. Add that URL as a webhook in SocialKuy, with the events you need.
  3. Use the next step to check the signature (Code by Zapier with the Node sample from the webhook guide) before acting on the event.

Make

  1. Add the module HTTP → Make a request.
  2. URL https://app.socialkuy.com/api/v1/posts, method POST, body type Raw, content type JSON (application/json).
  3. Headers Authorization: Bearer skuy_your_key and Idempotency-Key from the trigger.
  4. For uploads, first run a request to https://app.socialkuy.com/api/v1/media/imports with the file's URL, then poll https://app.socialkuy.com/api/v1/media/imports/{id} and https://app.socialkuy.com/api/v1/media/{id} until the file is ready.

To receive events, start a scenario with Webhooks → Custom webhook and add its address in SocialKuy.

n8n

  1. Add an HTTP Request node. Method POST, URL https://app.socialkuy.com/api/v1/posts.
  2. Authentication: Generic → Header Auth, name Authorization, value Bearer skuy_your_key.
  3. Send body as JSON; add the header Idempotency-Key with an expression such as {{ $json.id }}.
  4. Turn on Retry On Fail. With the idempotency key, retries are safe.

To receive events, use a Webhook node with method POST and Raw Body on, add its production URL in SocialKuy, and check the signature in a Code node with the Node sample.

When something fails

Read error.code from the answer:

  • media_not_ready: wait and try again in a minute.
  • quota_exceeded or queue_full: nothing was created; tell a person.
  • rate_limited: wait Retry-After seconds.
  • key_revoked, key_expired or plan_required: a brand admin needs to make a new key or check the plan.