Skip to main content

Posting with the API

Updated

Use the content routes to create a post for one connected social account. A post saves as a draft unless you ask to schedule it or publish it now.

You need an API key and a workspace ID. See The Public API for listing workspaces, response formats, pagination, and rate limits.

Find the Connected Account

List the workspace's connected social accounts:

curl --fail-with-body "https://api.maevesocial.com/v1/workspaces/$WORKSPACE_ID/integrations" \
  -H "Authorization: Bearer $MAEVE_API_KEY"
{
  "data": [
    {
      "id": "integration-uuid",
      "platform": "instagram",
      "username": "your_handle",
      "name": "Your Account Name",
      "status": "connected"
    }
  ],
  "meta": null
}

Set INTEGRATION_ID to the id of the account you want to post to. An account whose status is requires_reauth, disabled, or auth_incomplete needs attention in the Maeve app before it can publish.

To check what an account accepts, such as post types, media limits, and platform settings, request its capabilities:

GET /v1/workspaces/{workspaceId}/integrations/{integrationId}/capabilities

Create a Post

Send one request per connected account. There is no bulk create route.

curl --fail-with-body "https://api.maevesocial.com/v1/workspaces/$WORKSPACE_ID/content" \
  -H "Authorization: Bearer $MAEVE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "integrationId": "'"$INTEGRATION_ID"'",
    "intent": "schedule",
    "scheduledAt": "2027-01-01T12:00:00+10:00",
    "captions": {
      "canonical": "Hello from the Maeve API!"
    }
  }'
{
  "data": {
    "id": "content-uuid",
    "status": "scheduled",
    "appUrl": "https://app.maevesocial.com/workspace/content/content-uuid"
  },
  "meta": null
}

appUrl opens the post in Maeve, so your tool can send someone straight to it.

FieldRequiredDescription
integrationIdYesThe connected account to post to
intentNodraft, schedule, or publish_now. Defaults to draft
scheduledAtWith scheduleISO 8601 date and time, including the timezone offset
captionsNoThe canonical caption and optional per-platform overrides
contentMediaNoMedia to attach, by mediaId
firstCommentNoA first comment, where the platform supports one
postTypeNopost, reel, story, thread, or poll
internalTitleNoA planning title that is not sent to the platform
publishTitleNoA title for platforms that show or require one
notesNoInternal notes
settingsNoPlatform settings, such as YouTube privacy or a Pinterest board
threadMessagesNoUp to 20 replies that follow the first post

The request also accepts labels, pillars, formats, a campaign, a priority, and assignees. The API reference lists every field and the settings each platform accepts.

Choose Draft, Schedule, or Publish Now

intentResult
Omitted or draftSaves a draft
scheduleSchedules the post for scheduledAt
publish_nowQueues the post to publish immediately

Write Different Captions per Platform

captions.canonical is the default caption. Add an override when a platform needs different copy:

{
  "captions": {
    "canonical": "Default copy",
    "overrides": {
      "instagram": "Instagram-specific copy",
      "linkedin": "LinkedIn-specific copy"
    }
  }
}

Override keys are x, linkedin, linkedin-page, youtube, instagram, facebook, threads, tiktok, pinterest, and google-business-profile.

Attach Media

Upload the file first, then reference it by ID in contentMedia:

{
  "contentMedia": [
    { "mediaId": "media-uuid", "order": 0 }
  ]
}

Instagram and LinkedIn posts accept up to 20 files. Other platforms accept 10.

Create a Thread

Add threadMessages for the replies that follow the first post. Each reply has its own captions and can have its own media:

{
  "integrationId": "integration-uuid",
  "captions": { "canonical": "Thread opener" },
  "threadMessages": [
    { "captions": { "canonical": "Second post" } },
    {
      "captions": { "canonical": "Third post" },
      "contentMedia": [{ "mediaId": "media-uuid" }]
    }
  ]
}

List and Read Posts

curl --fail-with-body "https://api.maevesocial.com/v1/workspaces/$WORKSPACE_ID/content?status=scheduled&limit=10" \
  -H "Authorization: Bearer $MAEVE_API_KEY"
ParameterDefaultDescription
statusdraft, scheduled, sent, and failedFilter by one status
integrationIdNoneFilter by connected account
sortBySet by the APIcreatedAt, updatedAt, scheduledAt, or priority
sortDirectionSet by the APIasc or desc
limit20Results per page, from 1 to 100
offset0Number of results to skip

Posts held for review are left out unless you add the review filters shown in the API reference.

To read one post with its account, media, thread replies, and settings:

GET /v1/workspaces/{workspaceId}/content/{id}

Update or Reschedule a Post

You can update a draft or a scheduled post. Only the fields you send change:

curl --fail-with-body -X PATCH "https://api.maevesocial.com/v1/workspaces/$WORKSPACE_ID/content/$CONTENT_ID" \
  -H "Authorization: Bearer $MAEVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "captions": { "canonical": "Updated copy" } }'

To schedule a draft or move a scheduled post, send the new time to the schedule route:

PATCH /v1/workspaces/{workspaceId}/content/{id}/schedule
{ "scheduledAt": "2027-06-01T12:00:00+10:00" }

Publish a Post Now

curl --fail-with-body -X POST "https://api.maevesocial.com/v1/workspaces/$WORKSPACE_ID/content/$CONTENT_ID/publish" \
  -H "Authorization: Bearer $MAEVE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

The response shows status: "scheduled" because publishing is queued. Read the post afterward to confirm it reached sent. If it shows failed, read the error, fix the cause, and send POST .../content/{id}/retry.

Maeve does not send webhooks. To find out when a post publishes or fails, read the post, or list posts sorted by updatedAt.

Delete a Post

curl --fail-with-body -X DELETE "https://api.maevesocial.com/v1/workspaces/$WORKSPACE_ID/content/$CONTENT_ID" \
  -H "Authorization: Bearer $MAEVE_API_KEY"

A successful delete returns 204 with no body.

Questions

Can I post to several accounts in one request?

No. Each request creates a post for one connected account. Send one request per account.

What happens if I leave out intent?

The post saves as a draft. Use intent schedule with scheduledAt, or publish_now, to do more.

What format does scheduledAt use?

An ISO 8601 date and time that includes its timezone offset, such as 2027-01-01T12:00:00+10:00.

Why did my request return REVIEW_REQUIRED?

A required approval workflow covers the post. The draft is saved, but it must be sent for review before it can be scheduled or published.

How do I avoid creating a post twice when I retry?

Send an Idempotency-Key header and reuse the same value and payload when retrying. Within 24 hours Maeve returns the first result instead of creating a second post.

How do I know a post was published?

Read the post and check that its status is sent. A publish request only queues the work, and Maeve does not send webhooks.

Can I edit a published post?

The update route accepts drafts and scheduled posts only.

Does deleting a post remove it from the social network?

On most platforms, yes. Deleting a published post through the API also takes it down from the network, without asking for confirmation.