Skip to content
SociaMesh

n8n

Publish from n8n workflows with the HTTP Request node.

There's no SociaMesh community node yet; the HTTP Request node does everything.

  1. Credentials: create a Header Auth credential with name Authorization and value Bearer sm_live_….
  2. Validate (recommended): HTTP Request, POST https://api.sociamesh.com/v1/posts/validate, body JSON:
    {
      "content": "{{ $json.text }}",
      "publishNow": true,
      "platforms": [{ "platform": "linkedin", "accountId": "acct_…" }]
    }
    Add an IF node on {{ $json.valid }}.
  3. Publish: the same body to POST https://api.sociamesh.com/v1/posts. Under Options, add a header Idempotency-Key: {{ $execution.id }} so a retried execution never posts twice.
  4. Results: either poll GET /v1/posts/{{ $json.postId }} with a Wait node, or start another workflow from a Webhook trigger subscribed to post.published and post.failed (webhooks).

To schedule, send scheduledFor and timezone instead of publishNow.