Integration Guide
Connect to n8n
Learn how to automate your social media scheduling by connecting PolyBrand to n8n workflows.
What you'll need
- 1An active PolyBrand account with API access enabled.
- 2Your PolyBrand API Key (get it from Settings > API).
- 3An n8n instance (Cloud or Self-hosted).
Step 1: Configure HTTP Request Node
In your n8n workflow, add an HTTP Request node. this will act as the bridge between your workflow data and PolyBrand's API.
Node Settings
- Method:POST
- URL:
https://app.polybrand.io/api/v1/social/schedule - Auth:Generic Credential Type
- Type:Header Auth
Header Configuration
Add a custom header for authentication:
json
{
"name": "Authorization", // Fill in the "Name" (e.g., "PolyBrand")
"value": "Bearer pb_live_..." // Fill in the "Value" (your API Key from the dashboard).
}Step 2: Prepare JSON Body
Configure the body of your request to send the content, platforms, and schedule time. Map your n8n variables into the JSON structure below.
Request Body
json
{
"content": "{{ $json.social_post_text }}",
"platforms": ["linkedin", "twitter"],
"scheduled_at": "{{ $json.publish_date }}",
"media_ids": [],
"settings": {
"auto_hashtag": true
}
}Pro Tip: You can chain this node after an AI Agent node (like 'Generate LinkedIn Post's) to fully automate content creation and scheduling.
What happens next?
Once the workflow runs successfully, the post will appear in your PolyBrand Social Calendar as a scheduled item.
View full API Reference