Posts
Create post
Create a draft, scheduled post, or immediate publishing request.
Request body
| Field | Type | Description |
|---|---|---|
text | string | Default post text or description |
delivery | draft | schedule | now | Defaults to draft |
scheduledAt | ISO 8601 string | Required for schedule |
scheduleTimezone | IANA timezone | Defaults to workspace timezone |
scheduleLocalTime | string | Optional local-time intent |
targets | array | accountId plus optional platformSpecificContent |
media | array | mediaAssetId 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
| Status | Code | Meaning |
|---|---|---|
400 | invalid_request | A parameter or body field is invalid. |
401 | http_401 | The credential is missing, malformed, expired, or revoked. |
403 | http_403 | The credential lacks the required scope or account grant. |
409 | idempotency_conflict | An idempotency key was reused with different input. |
429 | http_429 | The credential exceeded its fixed-minute request limit. |
400 | ACCOUNT_DISCONNECTED | A selected account needs reconnection. |
400 | MEDIA_REQUIRED | The target platform requires media. |
400 | TEXT_TOO_LONG | Text exceeds the provider limit. |
Was this page helpful?