Zum Hauptinhalt springen

Publish an export on social media

Schedule the export of a design for Instagram so that it goes out only after a person in your team has approved it. To publish a picture from the media library instead, see Publish an image on social media.

You need:

  • An approval workflow. Under Settings → Approvals, open Publishing approval, switch on Approval required and name the reviewers. From then on every publication of the workspace waits for them, whoever creates it. This is a different approval from Design export approval, which decides whether a design may be exported at all.
  • A connected social account, under Settings → Social accounts.
  • A rendered export of the design: Create and export a design. Here the design's ID is in POST_ID and the export's in EXPORT_ID.

1. Find the account​

GET /api/organizations/{organizationId}/social/accounts
curl "https://app.heycreo.io/api/organizations/$ORGANIZATION_ID/social/accounts" \
-H "Authorization: Bearer $HEYCREO_API_KEY" \
| jq '.accounts[] | {id, platform, username, isActive}'

2. Schedule the publication​

publication.json
{
"name": "Summer sale",
"contentSource": "template",
"postId": "POST_ID",
"status": "scheduled",
"scheduling": { "publishAt": "2026-12-01T09:00:00Z" },
"destinations": [
{
"platform": "instagram",
"accountId": "ACCOUNT_ID",
"postExportId": "EXPORT_ID",
"caption": "20 % off everything, this weekend only.",
"options": { "mediaType": "post" }
}
],
"idempotencyKey": "summer-sale-instagram"
}

Replace POST_ID, ACCOUNT_ID and EXPORT_ID, then send it:

POST /api/organizations/{organizationId}/publications
curl "https://app.heycreo.io/api/organizations/$ORGANIZATION_ID/publications" \
-H "Authorization: Bearer $HEYCREO_API_KEY" \
--json @publication.json \
| jq '{id, status}'
Response
{ "id": "…", "status": "pending_approval" }

You asked for scheduled; because the workspace requires approval, heycreo sets the publication to pending_approval and opens an approval request for the reviewers. They see it in heycreo and approve or reject it there.

  • options.mediaType says what it becomes on Instagram: post (a feed post, also when left out), story, or reel for a video export. Export the design in the matching format: 4:5 or 1:1 for a post, 9:16 for a story or reel.
  • scheduling.publishNow: true instead of publishAt publishes as soon as the approval is given.
  • idempotencyKey makes a repeated request (after a timeout, say) return the same publication instead of a second one.
  • One publication can go to several accounts: one entry in destinations per account, each with its own caption and export.

3. Follow the outcome​

With a webhook, subscribe to approval.decided and publication.published, publication.partially_published and publication.failed. Or ask, with the publication's id from step 2:

export PUBLICATION_ID="…"
GET /api/organizations/{organizationId}/publications/{publicationId}
curl "https://app.heycreo.io/api/organizations/$ORGANIZATION_ID/publications/$PUBLICATION_ID" \
-H "Authorization: Bearer $HEYCREO_API_KEY" \
| jq '{status, destinations: [.destinations[] | {platform, publishStatus, platformPostUrl}]}'
statusMeaning
pending_approvalWaiting for the reviewers.
scheduledApproved; goes out at publishAt.
publishedLive on every account. platformPostUrl links to the post.
partially_publishedLive on some accounts; the others report their error.
rejectedA reviewer declined. Change the design and schedule it again.
expiredThe approval deadline passed without a decision.
draftThe approval came after publishAt. heycreo does not post late: schedule it again.

See also​