# Trovv Developer Documentation Canonical API: https://app.trovv.io/api/v1 MCP endpoint: https://app.trovv.io/mcp OpenAPI: https://app.trovv.io/api/v1/openapi.json ## Getting started Create a credential, verify access, create a draft, schedule it, and inspect delivery. Documentation: https://app.trovv.io/developers/docs/getting-started ### Before you begin - Connect at least one social account in Trovv. - Open Settings → Developer API and create a credential. - Grant workspace:read, accounts:read, posts:read, posts:write, and posts:schedule. - Save the credential when it is shown. Trovv stores only a hash and cannot reveal it again. ### 1. Find a delivery target ```bash curl https://app.trovv.io/api/v1/accounts \ -H "Authorization: Bearer $TROVV_API_KEY" ``` ### 2. Create a draft ```bash curl -X POST https://app.trovv.io/api/v1/posts \ -H "Authorization: Bearer $TROVV_API_KEY" \ -H "Idempotency-Key: launch-draft-001" \ -H "Content-Type: application/json" \ -d '{"text":"Launch day","delivery":"draft","targets":[{"accountId":"ACCOUNT_ID"}]}' ``` ### 3. Schedule the draft ```bash curl -X POST https://app.trovv.io/api/v1/posts/POST_ID/schedule \ -H "Authorization: Bearer $TROVV_API_KEY" \ -H "Idempotency-Key: launch-schedule-001" \ -H "Content-Type: application/json" \ -d '{"scheduledAt":"2026-11-05T14:00:00Z","scheduleTimezone":"UTC"}' ``` ### 4. Verify delivery Read the post and its attempts after the scheduled instant. A successful HTTP request means Trovv accepted the command; provider delivery is represented by each target and attempt. ```bash curl https://app.trovv.io/api/v1/posts/POST_ID/attempts -H "Authorization: Bearer $TROVV_API_KEY" ``` ### Next steps - Upload media and use its ID in post.media. - Register a webhook for post.published and post.failed. - Use OAuth instead of API keys for a multi-user application. - Connect an MCP client for tool-based access. ## Base URLs Use the application host for the API, OAuth, MCP, and developer dashboard. Documentation: https://app.trovv.io/developers/docs/base-urls ### Canonical endpoints | Service | URL | | --- | --- | | REST API | https://app.trovv.io/api/v1 | | OpenAPI 3.1 | https://app.trovv.io/api/v1/openapi.json | | MCP | https://app.trovv.io/mcp | | OAuth discovery | https://app.trovv.io/.well-known/oauth-authorization-server | | OAuth protected resource | https://app.trovv.io/.well-known/oauth-protected-resource | | Developer dashboard | https://app.trovv.io/settings/developers | ### URL rules - Always use HTTPS. - Treat IDs, operation IDs, and cursors as opaque strings. - Do not put credentials in URLs or query parameters. - The marketing site at trovv.io is not the canonical API origin. ## Authentication Authenticate trusted services with scoped credentials or user-facing applications with OAuth 2.1 Authorization Code and PKCE. Documentation: https://app.trovv.io/developers/docs/authentication ### Developer credentials Create a credential in Settings → Developer API. The token starts with trv_ and is shown once. Send it in every API or bearer-authenticated MCP request. ```http Authorization: Bearer trv_KEY_ID_SECRET ``` ### OAuth tokens OAuth access tokens start with troa_ and expire after one hour. Refresh tokens start with tror_, expire after 30 days, and rotate on every successful refresh. Authorization codes expire after ten minutes and can be used once. ### Credential restrictions - Scopes limit operations. - Allowed-account grants limit delivery targets. - Expiration and revocation are checked on every request. - The default request limit is stored per developer client. ### Secret storage > **Keep tokens server-side:** Store tokens in a secret manager. Never place a developer credential in browser code, mobile binaries, URLs, prompts, logs, screenshots, or source control. ## Scopes Grant the smallest set of permissions required by an integration. Documentation: https://app.trovv.io/developers/docs/scopes ### Scope catalog | Scope | Allows | | --- | --- | | workspace:read | Current client, workspace, and asynchronous operations | | accounts:read | Connected-account metadata and health | | posts:read | Posts and delivery attempts | | posts:write | Create and edit drafts | | posts:schedule | Schedule drafts | | posts:publish | Queue immediate publishing | | posts:cancel | Cancel eligible targets | | media:read | Media library reads | | media:write | Uploads and URL imports | | analytics:read | Bounded analytics summary | | automations:read | Automation definitions and runs | | bio:read | Bio Card state | | webhooks:read | Webhook endpoints and deliveries | | webhooks:write | Create, test, and disable webhook endpoints | ### Common combinations - Read-only reporting: workspace:read, accounts:read, posts:read, analytics:read. - Draft assistant: workspace:read, accounts:read, posts:read, posts:write, media:read. - Scheduler: add posts:schedule. - Immediate publisher: add posts:publish only when the integration truly needs it. ## Rate limits The API uses a per-client fixed-minute request window with explicit response headers. Documentation: https://app.trovv.io/developers/docs/rate-limits ### Default limit Developer clients default to 60 requests per minute. The limit is applied to the authenticated developer client across its credentials and OAuth grants. Publishing plan limits and provider limits are separate. | Window | Default allowance | | --- | --- | | Fixed one-minute window | 60 requests per developer client | ### Response headers | Header | Meaning | | --- | --- | | RateLimit-Limit | Allowed requests in the current window | | RateLimit-Remaining | Requests remaining | | RateLimit-Reset | Unix timestamp when the window resets | | Retry-After | Seconds to wait after a 429 | ### Retry behavior On 429, wait for Retry-After and add jitter. Do not retry non-idempotent work with a new idempotency key. Provider rate limits may appear later as target-level publishing failures rather than API 429 responses. ### 429 response ```json {"type":"https://docs.trovv.io/errors/429","title":"Rate limit exceeded","status":429,"code":"http_429","requestId":"..."} ``` ## Pagination Traverse list endpoints using opaque cursors and bounded page sizes. Documentation: https://app.trovv.io/developers/docs/pagination ### Request a page Set page[limit] from 1 to 100. Pass page.next from the previous response as page[after]. Never decode, modify, or construct a cursor. ```http GET https://app.trovv.io/api/v1/posts?page[limit]=25&page[after]=OPAQUE_CURSOR ``` ### Pagination envelope ```json {"data":[],"page":{"hasMore":true,"next":"OPAQUE_CURSOR","limit":25}} ``` ### Consistency Pages are ordered by creation time and ID. New records can appear while a traversal is in progress; use returned cursors and de-duplicate by resource ID when continuously synchronizing. ## Errors and request IDs Failures use application/problem+json with a stable code and support-safe request ID. Documentation: https://app.trovv.io/developers/docs/errors ### Problem response ```json {"type":"https://docs.trovv.io/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"Invalid pagination cursor","instance":"/api/v1/posts","code":"invalid_cursor","requestId":"..."} ``` ### Status codes | Status | Meaning | | --- | --- | | 400 | Invalid input or command | | 401 | Invalid, expired, or revoked credential | | 402 | Workspace plan or storage limit reached | | 403 | Missing scope, account grant, or policy permission | | 404 | Resource is absent or inaccessible | | 409 | Idempotency conflict or concurrent duplicate | | 413 | Payload or media exceeds a documented limit | | 415 | Unsupported content or media type | | 422 | Remote import or provider-compatible validation failed | | 429 | API request limit exceeded | | 503 | Developer API, writes, MCP, or immediate publishing is temporarily disabled | ### Important stable codes - idempotency_key_required, idempotency_conflict, idempotency_in_progress - invalid_cursor - empty_media, media_too_large, unsupported_media_type, storage_limit - invalid_media_url, blocked_media_url, redirect_limit, media_download_failed - PLATFORM_NOT_SUPPORTED, ACCOUNT_DISCONNECTED, TEXT_TOO_LONG, MEDIA_REQUIRED, MEDIA_LIMIT, MEDIA_FORMAT_NOT_SUPPORTED, MEDIA_SIZE_TOO_LARGE, VIDEO_TOO_LONG, BOARD_REQUIRED ### Request IDs Trovv returns X-Request-Id and includes requestId in problem responses. Send that value, the UTC timestamp, route, and a redacted response to support. Never send credentials or webhook secrets. ## Platform capabilities Validate content against Trovv and provider constraints before scheduling. Documentation: https://app.trovv.io/developers/docs/platforms ### Publishing support | Platform | Text limit | Max media | Max video | Max file | Important options | | --- | --- | --- | --- | --- | --- | | X / Twitter | 280 | 4 | 140 sec | 512 MB | threadItems and alt text | | LinkedIn | 3,000 | 9 | 600 sec | 200 MB | visibility; member and organization accounts | | Facebook | 63,206 | 10 | 14,400 sec | 4,096 MB | Page publishing | | Instagram | 2,200 | 10 | 90 sec | 100 MB | firstComment; Stories require one media item | | Pinterest | 500 | 1 | 900 sec | 200 MB | boardId required; title and destinationLink | | TikTok | 4,000 (2,200 with video) | 35 | 600 sec | 287 MB | privacyLevel, uploadAsDraft, duet/comment/stitch controls | | YouTube | 5,000 description | 1 video | 180 sec for Shorts; 12 hours for regular video | 512 MB in Trovv | youtubeVideoType, title, privacyStatus, madeForKids, thumbnailUrl, youtubeUploadTermsAccepted | ### Shared validation - Images and videos cannot be mixed in one target. - A target supports at most one video. - Media count, text length, file size, format, dimensions, and video duration are validated per platform. - The connected account must have connectionStatus=connected. - Provider rules may change independently; a provider can still reject otherwise valid content. ### Accepted publishing formats | Platform | Formats | | --- | --- | | X / Twitter | JPEG, PNG, GIF, WebP, MP4 | | LinkedIn | JPEG, PNG, GIF, MP4 | | Facebook | JPEG, PNG, GIF, WebP, MP4 | | Instagram | JPEG, PNG, WebP, MP4 | | Pinterest | JPEG, PNG, WebP, MP4 | | TikTok | JPEG, WebP, MP4, QuickTime, WebM | | YouTube | Video uploads (for Shorts, square or vertical; 3 minutes or less) | ### YouTube Shorts Create a YouTube post with one video asset and set youtubeVideoType to short in that target’s platformSpecificContent. Trovv validates that the video is square or vertical and no longer than 180 seconds. YouTube determines whether an uploaded video is categorized as a Short; selecting short in Trovv applies these validations and does not override YouTube classification. The upload terms confirmation must be true. ```json {"youtubeVideoType":"short","title":"A concise title","privacyStatus":"public","madeForKids":false,"youtubeUploadTermsAccepted":true} ``` ### Authoritative behavior The dashboard and API use the same backend platform validation. Provider rules can change more quickly than Trovv releases, so clients should also handle validation and provider errors. ## List posts List recent posts visible to the credential using cursor pagination. Documentation: https://app.trovv.io/developers/docs/api/posts/list ### Authorization Required scope: posts:read. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Request ```bash curl 'https://app.trovv.io/api/v1/posts?page[limit]=25&status=scheduled' -H "Authorization: Bearer $TROVV_API_KEY" ``` ### Query parameters | Parameter | Type | Description | | --- | --- | --- | | page[limit] | integer 1–100 | Page size; default 25 | | page[after] | string | Opaque cursor | | status | string | Optional post-status filter | ### Response ```json {"data":[{"id":"post_123","status":"scheduled","media":[],"targets":[]}],"page":{"hasMore":false,"next":null,"limit":25}} ``` ### 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. | ## Create post Create a draft, scheduled post, or immediate publishing request. Documentation: https://app.trovv.io/developers/docs/api/posts/create ### 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 | 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. | ## Get post Read a post, embedded media, delivery targets, provider IDs, and safe errors. Documentation: https://app.trovv.io/developers/docs/api/posts/get ### Authorization Required scope: posts:read. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Request ```bash curl https://app.trovv.io/api/v1/posts/POST_ID -H "Authorization: Bearer $TROVV_API_KEY" ``` ### 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..." } ``` ### 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. | | 404 | http_404 | The post is absent or outside the account grant. | ## Update draft Edit content, media, targets, or scheduling data while a post remains editable. Documentation: https://app.trovv.io/developers/docs/api/posts/update ### Authorization Required scope: posts:write. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Editable states Published, uploaded, publishing, and queued posts cannot be edited. Use the dedicated schedule, publish, and cancel actions for delivery transitions. ### Request ```bash curl -X PATCH https://app.trovv.io/api/v1/posts/POST_ID \ -H "Authorization: Bearer $TROVV_API_KEY" -H "Idempotency-Key: edit-001" \ -H "Content-Type: application/json" -d '{"text":"Updated copy"}' ``` ### 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 | invalid_state | The post is already delivered or in flight. | | 404 | http_404 | The post is absent or inaccessible. | ## List delivery attempts Inspect each provider delivery attempt without exposing provider credentials. Documentation: https://app.trovv.io/developers/docs/api/posts/attempts ### Authorization Required scope: posts:read. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Request ```bash curl https://app.trovv.io/api/v1/posts/POST_ID/attempts -H "Authorization: Bearer $TROVV_API_KEY" ``` ### Attempt states - queued — waiting for a worker - running — provider request is in progress - succeeded — provider confirmed delivery - failed — a retryable or terminal failure occurred - uncertain — the provider outcome could not be proven - dead_letter — automatic retry policy is exhausted ### Diagnosis Use the target error code, attempt state, and request ID. Do not create a replacement post while an outcome is uncertain; doing so can duplicate content. ## Schedule post Move an editable post to a future delivery instant. Documentation: https://app.trovv.io/developers/docs/api/posts/schedule ### Authorization Required scope: posts:schedule. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Request ```bash curl -X POST https://app.trovv.io/api/v1/posts/POST_ID/schedule \ -H "Authorization: Bearer $TROVV_API_KEY" -H "Idempotency-Key: schedule-001" \ -H "Content-Type: application/json" -d '{"scheduledAt":"2026-11-05T14:00:00Z","scheduleTimezone":"Asia/Karachi"}' ``` ### Scheduling rules - The timestamp must be a valid future instant. - At least one connected target is required. - All target content is validated before the state changes. - The IANA timezone preserves the user’s scheduling intent. ### 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. | ## Publish post Queue an existing draft or failed post for immediate publishing. Documentation: https://app.trovv.io/developers/docs/api/posts/publish ### Authorization Required scope: posts:publish. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Request ```bash curl -X POST https://app.trovv.io/api/v1/posts/POST_ID/publish \ -H "Authorization: Bearer $TROVV_API_KEY" -H "Idempotency-Key: publish-001" ``` ### Accepted does not mean published The request returns after Trovv safely queues the work. Read the post, attempts, or webhook events to determine final provider outcomes. Immediate publishing can be disabled independently during an incident. ### 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. | | 503 | immediate_publish_disabled | Immediate publishing is temporarily unavailable. | ## Cancel delivery Cancel targets that have not reached a terminal provider state. Documentation: https://app.trovv.io/developers/docs/api/posts/cancel ### Authorization Required scope: posts:cancel. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Request ```bash curl -X POST https://app.trovv.io/api/v1/posts/POST_ID/cancel \ -H "Authorization: Bearer $TROVV_API_KEY" -H "Idempotency-Key: cancel-001" ``` ### Cancellation limits Cancellation is best-effort. Trovv cannot retract a provider post that has already been published. The aggregate post state is recalculated from its targets. ### 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. | ## Post lifecycle Understand aggregate post state, target state, attempts, and asynchronous operations. Documentation: https://app.trovv.io/developers/docs/guides/post-lifecycle ### Post states | State | Meaning | | --- | --- | | draft | Editable and not scheduled | | scheduled | Waiting for a future instant | | queued | Ready for worker dispatch | | publishing | One or more targets are active | | uploaded | Provider accepted an upload but publishing is not final | | published | All eligible targets succeeded | | partial | Targets have mixed success | | failed | Delivery failed | | cancelled | Eligible delivery was cancelled | ### Target states - pending, publishing, uploaded, published, failed, uncertain, dead_letter, cancelled ### Operation states - accepted, queued, running, partially_succeeded, succeeded, failed, uncertain, cancelled ### Integration rule > **Model partial success:** A single post can succeed on one provider and fail on another. Always use target-level state for reconciliation. ## Schedule a post workflow Upload media, create a draft, schedule it, and reconcile delivery safely. Documentation: https://app.trovv.io/developers/docs/guides/schedule-post ### Workflow - List connected accounts and retain eligible IDs. - Upload or import media and retain media IDs. - Create a draft with targets and media. - Schedule the draft with a future ISO 8601 instant. - Read attempts after the scheduled instant. - Subscribe to post.published and post.failed webhooks for push reconciliation. ### Create body ```json {"text":"Launch day","delivery":"draft","targets":[{"accountId":"ACCOUNT_ID","platformSpecificContent":{"title":"Launch"}}],"media":[{"mediaAssetId":"MEDIA_ID","altText":"Accessible description"}]} ``` ## Publish a YouTube Short Create and publish a square or vertical YouTube video as a Short candidate through the API or MCP. Documentation: https://app.trovv.io/developers/docs/guides/youtube-shorts ### Shorts requirements Provide one square or vertical video no longer than 180 seconds. Trovv uses youtubeVideoType=short to validate these requirements. YouTube ultimately classifies eligible uploads as Shorts; the option does not force classification. Set youtubeUploadTermsAccepted to true for the upload. ### REST API request ```bash curl -X POST https://app.trovv.io/api/v1/posts \ -H "Authorization: Bearer $TROVV_API_KEY" -H "Idempotency-Key: yt-short-001" \ -H "Content-Type: application/json" \ -d '{"text":"A short video description","delivery":"draft","targets":[{"accountId":"YOUTUBE_ACCOUNT_ID","platformSpecificContent":{"youtubeVideoType":"short","title":"My Short","privacyStatus":"public","madeForKids":false,"youtubeUploadTermsAccepted":true}}],"media":[{"mediaAssetId":"VIDEO_MEDIA_ID"}]}' ``` ### Target options | Option | Values | Meaning | | --- | --- | --- | | youtubeVideoType | short | regular | Trovv validation mode; defaults to short | | title | Up to 100 characters | YouTube video title; defaults from text | | privacyStatus | public | unlisted | private | YouTube visibility | | madeForKids | boolean | Self-declared audience setting | | youtubeUploadTermsAccepted | true | Required confirmation before upload | | thumbnailUrl | HTTPS URL | Optional custom thumbnail for Shorts and regular videos. Use the fileUrl of a JPEG or PNG (up to 50 MB) uploaded through the media API. The channel must be verified. | | thumbnailMimeType | image/jpeg | image/png | Optional; validated before publishing | | thumbnailSize | bytes | Optional; at most 50 MB | ### Custom thumbnails Set thumbnailUrl to apply a custom thumbnail with YouTube thumbnails.set. It works for Shorts (recommended 9:16, 2160 × 3840) and regular videos (recommended 16:9, 3840 × 2160, at least 640 px wide). Upload the image to the media API first and pass its fileUrl; other hosts are rejected. Trovv applies the thumbnail after the upload. For Shorts it waits for YouTube to finish processing, which can take about a minute. The video is already published at that point, so a thumbnail failure never fails or repeats the post: the delivery event carries a warning instead. Typical causes are an unverified channel (verify at youtube.com/verify), YouTube’s daily custom thumbnail limit, or an unsupported image. ### YouTube classification YouTube classifies square or vertical videos up to three minutes as Shorts under its current eligibility rules. See the official [Shorts eligibility guidance](https://support.google.com/youtube/answer/15424877) and [videos.insert API reference](https://developers.google.com/youtube/data/reference/rest/v3/videos/insert). ## Workspace and client Identify the authenticated client, its grants, and its current workspace. Documentation: https://app.trovv.io/developers/docs/api/workspace ### Endpoints | Method | Path | Scope | | --- | --- | --- | | GET | /me | workspace:read | | GET | /workspaces/current | workspace:read | ### Current workspace ```bash curl https://app.trovv.io/api/v1/workspaces/current -H "Authorization: Bearer $TROVV_API_KEY" ``` ### Safe metadata These responses never expose social-provider tokens, internal credential hashes, or unrelated workspaces. ## Connected accounts List or retrieve safe connected-account metadata and connection health. Documentation: https://app.trovv.io/developers/docs/api/accounts ### Authorization Required scope: accounts:read. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Endpoints ```http GET /api/v1/accounts GET /api/v1/accounts/{id} ``` ### Account object ```json {"id":"account_123","platform":"instagram","accountType":"business","name":"Trovv","username":"trovv","profilePictureUrl":"https://...","connectionStatus":"connected","expiresAt":null,"lastSyncedAt":"2026-11-03T10:00:00Z","createdAt":"...","updatedAt":"..."} ``` ## Media List, upload, and securely import media for post creation. Documentation: https://app.trovv.io/developers/docs/api/media ### Authorization Required scope: media:read for reads; media:write for upload and import. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Endpoints | Method | Path | Content type | | --- | --- | --- | | GET | /media | application/json | | GET | /media/{id} | application/json | | POST | /media/uploads | multipart/form-data | | POST | /media/imports | application/json | ### Upload a file ```bash curl -X POST https://app.trovv.io/api/v1/media/uploads \ -H "Authorization: Bearer $TROVV_API_KEY" -H "Idempotency-Key: media-001" \ -F "file=@./video.mp4" ``` ### Import a public URL ```bash curl -X POST https://app.trovv.io/api/v1/media/imports \ -H "Authorization: Bearer $TROVV_API_KEY" -H "Idempotency-Key: import-001" \ -H "Content-Type: application/json" -d '{"url":"https://cdn.example.com/photo.jpg"}' ``` ### Limits and formats - Maximum stored input size: 500 MB. - Uploads accept image/*, video/*, audio/*, and PDF; platform posting validation currently supports images and videos. - Video metadata and a poster are generated when possible. - Workspace storage-plan limits also apply. ### URL-import security - Only public HTTP and HTTPS URLs are allowed. - Credentials in URLs and nonstandard ports are rejected. - Loopback, private, link-local, CGNAT, and private DNS results are blocked. - At most three redirects are followed. - Downloads time out after 30 seconds and are size-limited while streaming. ## Operations Poll asynchronous work using an opaque operation ID. Documentation: https://app.trovv.io/developers/docs/api/operations ### Authorization Required scope: workspace:read. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Request ```bash curl https://app.trovv.io/api/v1/operations/OPERATION_ID -H "Authorization: Bearer $TROVV_API_KEY" ``` ### States - accepted, queued, running, partially_succeeded, succeeded, failed, uncertain, cancelled ### Polling Use bounded exponential backoff and stop at a terminal state. Keep the operation ID and request ID together. Webhook events can replace polling for supported lifecycle events. ## Analytics Read a bounded workspace summary with freshness and coverage metadata. Documentation: https://app.trovv.io/developers/docs/api/analytics ### Authorization Required scope: analytics:read. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Request ```bash curl 'https://app.trovv.io/api/v1/analytics/summary?start=2026-10-01T00:00:00Z&end=2026-11-01T00:00:00Z' -H "Authorization: Bearer $TROVV_API_KEY" ``` ### Metrics - followers, impressions, reach, engagement, profileVisits, publishedDeliveries - The maximum requested range is 366 days. - Reporting-account coverage is returned in metadata. - Account-restricted credentials only aggregate granted accounts. ## Automations Inspect automation definitions and recent runs. Documentation: https://app.trovv.io/developers/docs/api/automations ### Authorization Required scope: automations:read. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Endpoints ```http GET /api/v1/automations GET /api/v1/automations/{id} GET /api/v1/automations/{id}/runs ``` ### Filters - List definitions by optional state. - Traverse definitions and runs using cursor pagination. - Serialized responses omit ownership internals. ## Bio Cards Read Bio Card draft and publication state without exposing ownership internals. Documentation: https://app.trovv.io/developers/docs/api/bio-cards ### Authorization Required scope: bio:read. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Endpoints ```http GET /api/v1/bio-cards GET /api/v1/bio-cards/{id} ``` ## Webhooks Receive signed, retryable lifecycle events at a public HTTPS endpoint. Documentation: https://app.trovv.io/developers/docs/api/webhooks ### Authorization Required scope: webhooks:read for reads; webhooks:write to create, test, and disable. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant. ### Event catalog | Event | Emitted for | | --- | --- | | post.published | A post reaches published state | | post.failed | Publishing reaches failure | | post.cancelled | Delivery is cancelled | | operation.completed | An asynchronous operation terminates | | automation.run.completed | An automation run completes | | bio.published | A Bio Card publication completes | ### Endpoints ```http GET|POST /api/v1/webhooks DELETE /api/v1/webhooks/{id} GET /api/v1/webhooks/{id}/deliveries POST /api/v1/webhooks/{id}/test ``` ### Event envelope ```json {"id":"stable-event-uuid","type":"post.published","createdAt":"2026-11-03T10:00:00.000Z","data":{}} ``` ### Delivery headers - Trovv-Event-Id — stable event UUID - Trovv-Event-Type — event name - Trovv-Timestamp — Unix seconds used in signing - Trovv-Signature — v1= ### Retries Return a 2xx response within 10 seconds. Failed deliveries retry up to eight total attempts. Backoff starts at 30 seconds, doubles per attempt, and is capped at 24 hours. Recent delivery state is available through the deliveries endpoint. > **Design for duplicates:** Use Trovv-Event-Id as an idempotency key. Delivery is at least once and events may arrive more than once. ## MCP overview Use Trovv’s Streamable HTTP tools from OAuth-capable assistants or bearer-authenticated clients. Documentation: https://app.trovv.io/developers/docs/mcp/overview ### Connection details | Setting | Value | | --- | --- | | URL | https://app.trovv.io/mcp | | Transport | Streamable HTTP | | Content type | application/json | | Maximum request body | 1 MB | | Authorization | OAuth discovery or Bearer credential | ### Safety model - Every tool checks its own scope. - Read and write permissions are separate. - Write tools can be disabled globally without disabling reads. - Immediate publishing has a separate feature gate. - Write tools require a stable idempotency key. - Tool results include structured content and a readable JSON text representation. ### Transport behavior Each HTTP request creates an isolated MCP server and transport. Clients should use the canonical Streamable HTTP endpoint and standard MCP initialization rather than assuming a persistent server process. ## MCP tool reference Reference every implemented tool, required scope, input, and safety behavior. Documentation: https://app.trovv.io/developers/docs/mcp/tools ### Read tools | Tool | Scope | Input | | --- | --- | --- | | trovv_get_current_workspace | workspace:read | none | | trovv_list_accounts | accounts:read | none | | trovv_list_posts | posts:read | limit 1–100; optional status | | trovv_get_post | posts:read | postId | | trovv_get_operation | workspace:read | operationId | | trovv_list_media | media:read | limit 1–100; optional type | | trovv_get_analytics_summary | analytics:read | optional start/end; max 366 days | | trovv_list_automations | automations:read | limit 1–100; optional state | | trovv_list_bio_cards | bio:read | limit 1–100 | ### Write tools | Tool | Scope | Required input | | --- | --- | --- | | trovv_create_post | posts:write (+ schedule/publish by delivery) | idempotencyKey, text, delivery, targets, media | | trovv_update_post_draft | posts:write | postId, idempotencyKey; changed fields | | trovv_schedule_post | posts:schedule | postId, idempotencyKey, scheduledAt, optional scheduleTimezone | | trovv_publish_post | posts:publish | postId, idempotencyKey | | trovv_cancel_post | posts:cancel | postId, idempotencyKey; optional targetId | ### Create-tool input ```json {"idempotencyKey":"assistant-draft-001","text":"Review this launch post","delivery":"draft","targets":[{"accountId":"YOUTUBE_ACCOUNT_ID","platformSpecificContent":{"youtubeVideoType":"short","title":"My Short","privacyStatus":"public","madeForKids":false,"youtubeUploadTermsAccepted":true}}],"media":[{"mediaAssetId":"VIDEO_MEDIA_ID"}]} ``` ### Create YouTube Shorts trovv_create_post accepts YouTube account IDs in targets and YouTube publishing settings in platformSpecificContent. For a Short, set youtubeVideoType to short, pass a square or vertical video of at most 180 seconds in media, and set youtubeUploadTermsAccepted to true. See the Publish a YouTube Short guide for the option reference. Add platformSpecificContent.thumbnailUrl to set a custom thumbnail on a Short or a regular video. Use the fileUrl of a JPEG or PNG (up to 50 MB) from the Trovv media library, 9:16 for Shorts and 16:9 for regular videos. The channel must be verified, and a thumbnail problem is reported as a warning without failing the post. ### Tool annotations Read tools are marked readOnlyHint. Write tools are marked idempotentHint. Immediate publish is open-world because it causes an external provider action. Tool hosts should present appropriate confirmation before publishing. ## Connect ChatGPT Connect Trovv as a custom MCP connector using OAuth discovery. Documentation: https://app.trovv.io/developers/docs/mcp/chatgpt ### Setup - Open ChatGPT Settings → Apps or Connectors. - Create a custom connector. - Enter https://app.trovv.io/mcp. - Complete the Trovv sign-in and consent flow. - Choose the workspace, scopes, and account access you intend to grant. - Test with “List my connected Trovv accounts.” ### Disconnect Remove the connector in ChatGPT and revoke the corresponding connection under Trovv Settings → MCP & Connected Apps. ## Connect Claude Connect Claude web or desktop through an OAuth-capable custom connector. Documentation: https://app.trovv.io/developers/docs/mcp/claude ### OAuth connector - Open Claude Settings → Connectors. - Choose Add custom connector. - Use https://app.trovv.io/mcp. - Authorize Trovv when redirected. - Verify that read tools appear before enabling write scopes. ### Test prompts - “List my recent scheduled Trovv posts.” - “Create a draft for LinkedIn; do not publish it.” - “Show the operation state for this operation ID.” ## Connect Claude Desktop Use an OAuth connector when available or bridge Streamable HTTP through mcp-remote. Documentation: https://app.trovv.io/developers/docs/mcp/claude-desktop ### Configuration ```json { "mcpServers": { "trovv": { "command": "npx", "args": ["-y", "mcp-remote", "https://app.trovv.io/mcp", "--header", "Authorization: Bearer ${TROVV_API_KEY}"], "env": { "TROVV_API_KEY": "YOUR_SCOPED_TOKEN" } } } } ``` ### Configuration locations - macOS: ~/Library/Application Support/Claude/claude_desktop_config.json - Windows: %APPDATA%\Claude\claude_desktop_config.json - Linux: ~/.config/Claude/claude_desktop_config.json - Restart Claude Desktop after saving. Node.js 18 or newer must be available to npx. ## Connect Claude Code Register the remote Streamable HTTP endpoint with a scoped bearer token. Documentation: https://app.trovv.io/developers/docs/mcp/claude-code ### CLI ```bash claude mcp add --transport http trovv https://app.trovv.io/mcp \ --header "Authorization: Bearer $TROVV_API_KEY" ``` ### Project configuration ```json {"mcpServers":{"trovv":{"type":"http","url":"https://app.trovv.io/mcp","headers":{"Authorization":"Bearer ${TROVV_API_KEY}","Accept":"application/json"}}}} ``` ### Project safety Use a project-specific credential with the minimum scopes and connected-account restrictions. Keep the token in the environment, not in a committed .mcp.json file. ## Connect Cursor Add Trovv to Cursor’s MCP configuration with an environment-backed token. Documentation: https://app.trovv.io/developers/docs/mcp/cursor ### Cursor configuration ```json {"mcpServers":{"trovv":{"url":"https://app.trovv.io/mcp","headers":{"Authorization":"Bearer ${env:TROVV_API_KEY}","Accept":"application/json"}}}} ``` ### Setup - Open Cursor Settings → MCP, or edit ~/.cursor/mcp.json. - Set TROVV_API_KEY in the environment used to launch Cursor. - Restart Cursor so it refreshes the tool list. - If the build does not support remote HTTP headers, use mcp-remote as shown in the Claude Desktop guide. ## MCP troubleshooting Diagnose connection, authorization, discovery, and tool-availability problems. Documentation: https://app.trovv.io/developers/docs/mcp/troubleshooting ### Tools are missing - Confirm the credential includes the required scope. - Reconnect after changing OAuth scopes; existing grants do not silently expand. - Restart clients that cache MCP tool lists. - Check whether MCP writes or immediate publishing are temporarily disabled. ### 401 or repeated authorization - Verify the endpoint is app.trovv.io/mcp. - Bearer values must include the Bearer prefix once. - Rotate a compromised or expired developer credential. - For OAuth, remove the stale connector and authorize again. ### Protocol errors - Send application/json. - Keep request bodies at or below 1 MB. - Use Streamable HTTP, not an SSE-only configuration. - If browser-origin enforcement is configured, the client origin must be allowed. ## OAuth 2.1 and PKCE Authorize public applications and MCP clients without asking users to copy credentials. Documentation: https://app.trovv.io/developers/docs/guides/oauth ### Discovery ```http GET https://app.trovv.io/.well-known/oauth-authorization-server GET https://app.trovv.io/.well-known/oauth-protected-resource ``` ### Authorization request - Generate a 43–128 character verifier. - Create the base64url SHA-256 challenge. - Use code_challenge_method=S256. - Use an exactly registered redirect URI. - Use resource=https://app.trovv.io. - Generate and validate state in the client. ### Authorization URL ```http https://app.trovv.io/oauth/authorize?response_type=code&client_id=...&redirect_uri=...&scope=accounts%3Aread%20posts%3Aread&code_challenge=...&code_challenge_method=S256&resource=https%3A%2F%2Fapp.trovv.io&state=... ``` ### Exchange the code ```bash curl -X POST https://app.trovv.io/oauth/token \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'grant_type=authorization_code&client_id=...&code=...&redirect_uri=...&code_verifier=...' ``` ### Lifetimes and rotation | Artifact | Lifetime | | --- | --- | | Authorization code | 10 minutes; one use | | Access token | 1 hour | | Refresh token | 30 days; rotates on every use | ### Revoke POST either an access or refresh token to /oauth/revoke. Revocation takes effect on subsequent requests. Users can also revoke an application in Settings → MCP & Connected Apps. ## TypeScript SDK Use the first-party server-side client for typed resources, pagination, and structured errors. Documentation: https://app.trovv.io/developers/docs/guides/typescript ### Install ```bash npm install @trovv/sdk ``` ### Create a client ```ts import { TrovvClient } from '@trovv/sdk' const trovv = new TrovvClient({ token: process.env.TROVV_API_TOKEN!, baseUrl: 'https://app.trovv.io/api/v1' }) ``` ### Create a draft ```ts const accounts = await trovv.listAccounts({ limit: 25 }) const draft = await trovv.createPost({ text: 'Hello from Trovv', delivery: 'draft', targets: [{ accountId: accounts.data[0].id }] }, { idempotencyKey: 'sdk-draft-001' }) ``` ### Package availability > **Verify before publishing this guide:** The repository contains SDK-oriented documentation, but package publication and registry availability must be confirmed before announcing the package as generally available. ## Safe retries Prevent duplicate resources and provider actions when clients retry uncertain requests. Documentation: https://app.trovv.io/developers/docs/guides/idempotency ### Rules - Every accepted REST mutation requires Idempotency-Key. - MCP write tools require idempotencyKey in tool input. - Keys are at most 128 characters. - A key is scoped by workspace, client, and command. - Records are retained for 24 hours. - The same key and body return the completed response. - The same key with a different body returns 409 idempotency_conflict. - A concurrent duplicate returns 409 idempotency_in_progress. ### Key strategy Use a stable business-operation identifier, not a random value created on every retry. Include the action and your own resource ID, for example crm-campaign-482-schedule-v1. ## Verify webhook signatures Authenticate the exact request body and reject stale or replayed deliveries. Documentation: https://app.trovv.io/developers/docs/guides/webhook-verification ### Node.js ```ts import { createHmac, timingSafeEqual } from 'node:crypto' const expected = 'v1=' + createHmac('sha256', process.env.TROVV_WEBHOOK_SECRET!) .update(timestamp + '.' + rawBody).digest('hex') const valid = expected.length === signature.length && timingSafeEqual(Buffer.from(expected), Buffer.from(signature)) ``` ### Verification checklist - Read the raw body before JSON parsing. - Reject timestamps outside your replay window. - Compute HMAC-SHA256 over timestamp + period + exact raw body. - Compare signatures in constant time. - De-duplicate using Trovv-Event-Id. - Return 2xx quickly and process asynchronously. ## Security practices Use narrow grants and design for revocation, partial delivery, and uncertain provider outcomes. Documentation: https://app.trovv.io/developers/docs/guides/security ### Credentials - Keep secrets in a managed vault. - Grant the smallest scope set. - Restrict credentials to required connected accounts. - Set an expiry and rotate regularly. - Revoke suspected exposure immediately. - Never expose provider tokens; Trovv’s serializers intentionally omit them. ### Network safety - Use HTTPS and validate TLS. - Webhook destinations must be public HTTPS endpoints. - Media URL imports block internal network destinations and unsafe redirects. - Do not construct URLs from untrusted IDs; use path encoding. ### Publishing safety - Treat queued responses as acceptance, not final delivery. - Model per-target partial success. - Do not retry uncertain provider outcomes with a new key. - Require explicit user confirmation before immediate publishing in an AI client. ## Troubleshooting Resolve common authentication, publishing, media, webhook, and provider failures. Documentation: https://app.trovv.io/developers/docs/troubleshooting ### Authentication | Symptom | Action | | --- | --- | | 401 | Check token prefix, expiry, revocation, and Authorization header. | | 403 missing scope | Create or authorize a grant with the required scope. | | 403 account access | Add the delivery account to the credential grant. | ### Publishing | Code/state | Action | | --- | --- | | ACCOUNT_DISCONNECTED | Reconnect the provider account in the dashboard. | | BOARD_REQUIRED | Provide Pinterest boardId. | | uncertain | Inspect attempts; do not create a duplicate post. | | partial | Reconcile each target independently. | ### Media | Code | Action | | --- | --- | | media_too_large | Upload a file at or below 500 MB and provider limits. | | unsupported_media_type | Use a supported stored-media content type. | | blocked_media_url | Use a public, directly downloadable HTTP(S) URL. | | storage_limit | Free storage or upgrade the workspace plan. | ### Escalate with useful evidence Include X-Request-Id, UTC timestamp, route or MCP tool, workspace ID, and a redacted problem response. Never send API keys, OAuth tokens, provider credentials, or webhook secrets. ## Versioning and deprecation Build resilient clients against additive v1 changes and planned breaking versions. Documentation: https://app.trovv.io/developers/docs/versioning ### Additive changes - New optional response fields - New endpoints and webhook event types - New MCP tools - New enum values where documented as extensible ### Client requirements - Ignore unknown response fields. - Treat IDs and cursors as opaque. - Avoid exhaustive enum switches without an unknown fallback. - Read the changelog and deprecation headers. ### Breaking changes Normal removals receive at least six months notice and migration guidance. Security changes may use a shorter window when maintaining the old behavior creates material risk. Breaking contracts move to a new API version. ## Support and policies Get integration help and follow Trovv’s security, privacy, and acceptable-use requirements. Documentation: https://app.trovv.io/developers/docs/support ### Integration support Send the request ID, UTC timestamp, route or MCP tool, and a redacted response. Explain expected and observed behavior. ### Security reports Report suspected credential exposure or vulnerabilities through Trovv support and revoke affected credentials immediately. ### Policies | Policy | URL | | --- | --- | | Terms of Service | https://trovv.io/terms | | Privacy Policy | https://trovv.io/privacy | ### Provider policies Integrations must comply with each connected provider’s platform terms. They may not scrape, spam, impersonate users, or bypass authorization and publishing controls. ## Changelog Track additions and behavior changes across the developer platform. Documentation: https://app.trovv.io/developers/docs/changelog ### November 3, 2026 — documentation expansion - Added operation-level REST references and complete workflows. - Added exact rate limits, token lifetimes, media limits, webhook retries, and platform guidance. - Added MCP client setup and full tool catalog. - Added AI-readable llms.txt and llms-full.txt routes. - Added page-level developer feedback and content-aware search. - Documented unavailable public capabilities explicitly. ### October 2026 — v1 developer beta - Scoped developer credentials and account restrictions - Posts, media, operations, analytics, automation reads, and Bio Card reads - OAuth 2.1 Authorization Code with PKCE - Signed webhooks - OpenAPI 3.1 - Streamable HTTP MCP endpoint