Integrate SALT Social Media' powerful content generation into your applications
Email Software@upcode.com to have your API access permitted
Authentication and Base URL
https://tazwlespypmedlgtxeld.supabase.co/functions/v1/api/v1Versioned routes are recommended for new integrations. Existing integrations can continue using https://tazwlespypmedlgtxeld.supabase.co/functions/v1/api.
All API requests require an API key. Include your key in the request headers:
x-api-key: YOUR_API_KEYGenerate your API key from your dashboard settings.
Keys can be limited to content:read, content:write, media:write, and webhooks:manage. Use the smallest set your integration needs.
/content
Create one draft or scheduled item across connected social, blog, and email destinations. Use this for Zapier, Make, n8n, Airtable, Notion, CRMs, or custom apps.
{
"mode": "scheduled",
"title": "How to walk a dog",
"body": "Full post content in Markdown or plain text.",
"text": "Short social caption",
"destinations": ["linkedin", "facebook", "blog", "email"],
"scheduled_for": "2026-08-01T15:00:00Z",
"media_urls": ["https://example.com/image.jpg"],
"link_url": "https://example.com",
"source": "zapier",
"blog": {
"platform": "wordpress",
"seo_title": "How to walk a dog",
"seo_description": "A practical dog walking guide."
},
"email": {
"subject": "How to walk a dog"
}
}curl -X POST 'https://tazwlespypmedlgtxeld.supabase.co/functions/v1/api/v1/content' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"mode": "draft",
"title": "How to walk a dog",
"body": "Start with a comfortable leash...",
"destinations": ["linkedin", "blog"],
"media_urls": ["https://example.com/dog.jpg"],
"source": "make"
}'{
"success": true,
"campaignId": "uuid",
"workspaceId": "uuid",
"mode": "draft",
"status": "draft",
"scheduled_for": null,
"created": {
"social": { "id": "uuid", "platforms": ["linkedin"] },
"blog": { "id": "uuid", "platform": "wordpress" }
}
}The universal endpoint supports draft and scheduled modes. Immediate publishing is handled inside the app so users can review destination-specific settings first.
/webhooks
Subscribe your automation, CRM, or custom app to Salt events. The signing secret is returned once when the subscription is created. Verify each request with the X-Salt-Signature header.
curl -X POST 'https://tazwlespypmedlgtxeld.supabase.co/functions/v1/api/v1/webhooks' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://example.com/salt-events",
"events": ["content.created", "post.published", "publish.failed"]
}'content.created, post.published, publish.failed, and generation.completed. Content-created delivery is active now; additional publishing and generation events will use the same contract as those workflows are emitted.
Send an Idempotency-Key header when creating universal content. Retrying the same request with the same key returns the original result instead of creating duplicate campaigns or posts.
401 - Invalid or missing API key404 - Endpoint not found400 - Bad request (missing required fields)500 - Internal server error{
"error": "API key required. Include x-api-key header."
}