Posts

Create post

Create a draft, scheduled post, or immediate publishing request.

Reviewed November 3, 2026·AI-readable

Authorization

Required scope: posts:write; plus posts:schedule for delivery=schedule or posts:publish for delivery=now. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant.

Request body

FieldTypeDescription
textstringDefault post text or description
deliverydraft | schedule | nowDefaults to draft
scheduledAtISO 8601 stringRequired for schedule
scheduleTimezoneIANA timezoneDefaults to workspace timezone
scheduleLocalTimestringOptional local-time intent
targetsarrayaccountId plus optional platformSpecificContent
mediaarraymediaAssetId plus caption, altText, and position

Request

bash
curl -X POST https://app.trovv.io/api/v1/posts \
 -H "Authorization: Bearer $TROVV_API_KEY" \
 -H "Idempotency-Key: post-2026-11-03-001" -H "Content-Type: application/json" \
 -d '{"text":"Launch day","delivery":"draft","targets":[{"accountId":"ACCOUNT_ID"}],"media":[{"mediaAssetId":"MEDIA_ID","altText":"Product on a desk"}]}'

Response

json
{
  "data": {
    "id": "post_123", "text": "Launch day", "status": "draft",
    "scheduledAt": null, "publishedAt": null,
    "media": [],
    "targets": [{ "id": "target_123", "status": "pending", "providerPostId": null,
      "error": null, "account": { "id": "account_123", "platform": "linkedin", "connectionStatus": "connected" } }]
  },
  "queued": false, "warning": null, "requestId": "8d2..."
}

Behavior

  • Drafts may have no targets. Scheduled and immediate posts require at least one target.
  • Duplicate targets are rejected.
  • Media must belong to the same workspace.
  • Each non-draft target is validated before the post is created.
  • delivery=now returns after the job is queued, not after every provider publishes.

Errors

StatusCodeMeaning
400invalid_requestA parameter or body field is invalid.
401http_401The credential is missing, malformed, expired, or revoked.
403http_403The credential lacks the required scope or account grant.
409idempotency_conflictAn idempotency key was reused with different input.
429http_429The credential exceeded its fixed-minute request limit.
400ACCOUNT_DISCONNECTEDA selected account needs reconnection.
400MEDIA_REQUIREDThe target platform requires media.
400TEXT_TOO_LONGText exceeds the provider limit.

Was this page helpful?