curl -X POST "https://api.submagic.co/v1/projects/550e8400-e29b-41d4-a716-446655440000/publish" \ -H "x-api-key: sk-your-api-key-here" \ -H "Content-Type: application/json" \ -d '{ "platforms": { "youtube": { "title": "How I Doubled My Revenue in 30 Days", "description": "In this video I break down the exact playbook I used.", "tags": ["business", "marketing", "growth"], "firstComment": "Drop a comment if this was helpful!" }, "tiktok": { "content": "The exact playbook I used to double my revenue 🚀 #business #marketing" } } }'
Publish or schedule an exported project to one or more social platforms (YouTube, TikTok, Instagram) in a single call
POST
/
v1
/
projects
/
{id}
/
publish
curl -X POST "https://api.submagic.co/v1/projects/550e8400-e29b-41d4-a716-446655440000/publish" \ -H "x-api-key: sk-your-api-key-here" \ -H "Content-Type: application/json" \ -d '{ "platforms": { "youtube": { "title": "How I Doubled My Revenue in 30 Days", "description": "In this video I break down the exact playbook I used.", "tags": ["business", "marketing", "growth"], "firstComment": "Drop a comment if this was helpful!" }, "tiktok": { "content": "The exact playbook I used to double my revenue 🚀 #business #marketing" } } }'
Publish or schedule an exported project to one or more connected social platforms (YouTube, TikTok, Instagram).
This endpoint requires authentication. The project must already be exported
(have a downloadUrl), and the social accounts you want to publish to must be
connected from the Publishing page in
the dashboard.
Array of platforms the project is being published to
curl -X POST "https://api.submagic.co/v1/projects/550e8400-e29b-41d4-a716-446655440000/publish" \ -H "x-api-key: sk-your-api-key-here" \ -H "Content-Type: application/json" \ -d '{ "platforms": { "youtube": { "title": "How I Doubled My Revenue in 30 Days", "description": "In this video I break down the exact playbook I used.", "tags": ["business", "marketing", "growth"], "firstComment": "Drop a comment if this was helpful!" }, "tiktok": { "content": "The exact playbook I used to double my revenue 🚀 #business #marketing" } } }'
After publishing, use the List Published Projects
endpoint to retrieve the status, platform URLs, and analytics of your posts.
Tip: To connect a YouTube, TikTok, or Instagram account, visit the
Publishing page in the dashboard. Once
connected, the account is available to all publish requests for that user.
Important: Publication to upstream platforms is asynchronous. A 200
response means the request was accepted and posts have been dispatched, but
individual platform delivery (especially for scheduled posts) is finalized in
the background. Poll the List Published Projects
endpoint to track per-platform publishStatus.