{"openapi":"3.1.0","info":{"title":"Trovv Developer API","version":"1.0.0","description":"Create, schedule, publish, and observe social content through the same execution pipeline used by Trovv. Every response includes an X-Request-Id header. Mutations require an Idempotency-Key header."},"externalDocs":{"description":"Trovv developer documentation","url":"https://app.trovv.io/developers/docs/getting-started"},"servers":[{"url":"https://app.trovv.io/api/v1","description":"Production"}],"tags":[{"name":"Workspace"},{"name":"Accounts"},{"name":"Posts"},{"name":"Media"},{"name":"Operations"},{"name":"Analytics"},{"name":"Automations"},{"name":"Bio Cards"},{"name":"Webhooks"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"trv_* or troa_*","description":"API key or OAuth access token."},"oauth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://app.trovv.io/oauth/authorize","tokenUrl":"https://app.trovv.io/oauth/token","refreshUrl":"https://app.trovv.io/oauth/token","scopes":{"workspace:read":"Read workspace identity","accounts:read":"Read connected social accounts","posts:read":"Read posts and publishing attempts","posts:write":"Create and edit posts","posts:schedule":"Schedule posts","posts:publish":"Publish posts","posts:cancel":"Cancel posts","media:read":"Read media assets","media:write":"Upload and import media","analytics:read":"Read analytics summaries","automations:read":"Read automations and runs","bio:read":"Read Bio Cards","webhooks:read":"Read webhook endpoints and deliveries","webhooks:write":"Manage webhook endpoints"}}}}},"schemas":{"Problem":{"type":"object","required":["title","status","code","requestId"],"properties":{"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"code":{"type":"string"},"requestId":{"type":"string"},"errors":{"type":"array","items":{"type":"object"}}}},"Page":{"type":"object","required":["hasMore","next","limit"],"properties":{"hasMore":{"type":"boolean"},"next":{"type":["string","null"]},"limit":{"type":"integer"}}},"Envelope":{"type":"object","required":["data"],"properties":{"data":{},"meta":{"type":"object"}}},"Account":{"type":"object","required":["id","platform","connectionStatus"],"properties":{"id":{"type":"string"},"platform":{"type":"string","enum":["twitter","linkedin","facebook","instagram","pinterest","tiktok","youtube","googlebusiness","threads","bluesky"]},"accountType":{"type":"string"},"name":{"type":["string","null"]},"username":{"type":["string","null"]},"profilePictureUrl":{"type":["string","null"],"format":"uri"},"connectionStatus":{"type":"string","enum":["connected","disconnected","expired"]},"expiresAt":{"type":["string","null"],"format":"date-time"},"lastSyncedAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"YouTubeOptions":{"type":"object","description":"Options for a YouTube video target. YouTube classifies square or vertical uploads up to 3 minutes as Shorts; youtubeVideoType selects Trovv validation and defaults to short.","properties":{"youtubeVideoType":{"type":"string","enum":["short","regular"],"default":"short"},"title":{"type":"string","maxLength":100},"privacyStatus":{"type":"string","enum":["public","unlisted","private"],"default":"public"},"madeForKids":{"type":"boolean"},"youtubeUploadTermsAccepted":{"type":"boolean","const":true,"description":"Must be true to publish through the API."},"thumbnailUrl":{"type":"string","format":"uri","description":"Optional custom thumbnail for Shorts and regular videos. An HTTPS URL of a JPEG or PNG (up to 50 MB) uploaded to your Trovv media library; use the fileUrl returned by the media API. Recommended 9:16 (2160x3840) for Shorts and 16:9 (3840x2160, at least 640 px wide) for regular videos. The YouTube channel must be verified. It is applied after the video uploads (for Shorts, after YouTube finishes processing); if YouTube rejects it the post still publishes and the delivery event carries a warning."},"thumbnailMimeType":{"type":"string","enum":["image/jpeg","image/png"],"description":"Optional; validated before publishing when provided."},"thumbnailSize":{"type":"integer","maximum":52428800,"description":"Optional size in bytes; validated before publishing when provided."}},"additionalProperties":true},"PostTargetInput":{"type":"object","required":["accountId"],"properties":{"accountId":{"type":"string","description":"Connected account ID returned by GET /accounts."},"platformSpecificContent":{"allOf":[{"$ref":"#/components/schemas/YouTubeOptions"}],"description":"Per-platform publishing options. For YouTube, these fields configure Shorts or regular video uploads."}}},"PostMediaInput":{"type":"object","required":["mediaAssetId"],"properties":{"mediaAssetId":{"type":"string"},"position":{"type":"integer","minimum":0},"caption":{"type":"string"},"altText":{"type":"string"}}},"PostCreateInput":{"type":"object","properties":{"text":{"type":"string","description":"Default post text/description."},"delivery":{"type":"string","enum":["draft","schedule","now"],"default":"draft"},"scheduledAt":{"type":"string","format":"date-time"},"scheduleTimezone":{"type":"string","description":"IANA timezone."},"scheduleLocalTime":{"type":"string"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/PostTargetInput"}},"media":{"type":"array","items":{"$ref":"#/components/schemas/PostMediaInput"}}}},"Post":{"type":"object","required":["id","status","createdAt"],"properties":{"id":{"type":"string"},"text":{"type":"string"},"status":{"type":"string","enum":["draft","queued","publishing","scheduled","uploaded","published","partial","failed","cancelled"]},"scheduledAt":{"type":["string","null"],"format":"date-time"},"publishedAt":{"type":["string","null"],"format":"date-time"},"scheduleTimezone":{"type":["string","null"]},"scheduleLocalTime":{"type":["string","null"]},"isIdea":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"targets":{"type":"array","items":{"$ref":"#/components/schemas/PostTarget"}},"media":{"type":"array","items":{"$ref":"#/components/schemas/PostMedia"}}}},"PostTarget":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"providerPostId":{"type":["string","null"]},"error":{"type":["object","null"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},"account":{"$ref":"#/components/schemas/Account"}}},"PostMedia":{"type":"object","properties":{"position":{"type":"integer"},"caption":{"type":["string","null"]},"altText":{"type":["string","null"]},"asset":{"$ref":"#/components/schemas/Media"}}},"Media":{"type":"object","required":["id","url","type","createdAt"],"properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"type":{"type":"string","enum":["image","video","audio","document"]},"url":{"type":"string","format":"uri"},"thumbnailUrl":{"type":["string","null"],"format":"uri"},"metadata":{},"tags":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"Operation":{"type":"object","required":["id","status","type"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"status":{"type":"string","enum":["pending","processing","completed","failed"]},"result":{},"error":{},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"}}},"WebhookInput":{"type":"object","required":["url","eventTypes"],"properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri"},"eventTypes":{"type":"array","minItems":1,"items":{"type":"string","enum":["post.published","post.failed","post.cancelled","operation.completed","automation.run.completed","bio.published"]}}}}}},"paths":{"/me":{"get":{"operationId":"getCurrentClient","summary":"Current authenticated developer client","tags":["Workspace"],"description":"Required scope: `workspace:read`.","parameters":[],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/workspaces/current":{"get":{"operationId":"getCurrentWorkspace","summary":"Current workspace","tags":["Workspace"],"description":"Required scope: `workspace:read`.","parameters":[],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/accounts":{"get":{"operationId":"listAccounts","summary":"List connected accounts","tags":["Accounts"],"description":"Required scope: `accounts:read`.","parameters":[{"name":"page[limit]","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"page[after]","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/accounts/{id}":{"get":{"operationId":"getAccount","summary":"Get a connected account","tags":["Accounts"],"description":"Required scope: `accounts:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/posts":{"get":{"operationId":"listPosts","summary":"List posts","tags":["Posts"],"description":"Required scope: `posts:read`.","parameters":[{"name":"page[limit]","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"page[after]","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"createPost","summary":"Create a post","tags":["Posts"],"description":"Required scope: `posts:write`. Repeat an identical request with the same idempotency key to safely recover from a timeout.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCreateInput"}}}},"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict or idempotency replay in progress","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/posts/{id}":{"get":{"operationId":"getPost","summary":"Get a post","tags":["Posts"],"description":"Required scope: `posts:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"updatePost","summary":"Update a draft","tags":["Posts"],"description":"Required scope: `posts:write`. Repeat an identical request with the same idempotency key to safely recover from a timeout.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict or idempotency replay in progress","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/posts/{id}/attempts":{"get":{"operationId":"listPostAttempts","summary":"List publishing attempts","tags":["Posts"],"description":"Required scope: `posts:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/posts/{id}/schedule":{"post":{"operationId":"schedulePost","summary":"Schedule a draft","tags":["Posts"],"description":"Required scope: `posts:schedule`. Repeat an identical request with the same idempotency key to safely recover from a timeout.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["scheduledAt"],"properties":{"scheduledAt":{"type":"string","format":"date-time","description":"A future UTC timestamp."}}}}}},"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict or idempotency replay in progress","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/posts/{id}/publish":{"post":{"operationId":"publishPost","summary":"Queue a post for immediate publishing","tags":["Posts"],"description":"Required scope: `posts:publish`. Repeat an identical request with the same idempotency key to safely recover from a timeout.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"202":{"description":"Accepted; poll the returned operation","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict or idempotency replay in progress","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/posts/{id}/cancel":{"post":{"operationId":"cancelPost","summary":"Cancel eligible post targets","tags":["Posts"],"description":"Required scope: `posts:cancel`. Repeat an identical request with the same idempotency key to safely recover from a timeout.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict or idempotency replay in progress","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/media":{"get":{"operationId":"listMedia","summary":"List media assets","tags":["Media"],"description":"Required scope: `media:read`.","parameters":[{"name":"page[limit]","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"page[after]","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/media/{id}":{"get":{"operationId":"getMedia","summary":"Get a media asset","tags":["Media"],"description":"Required scope: `media:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/media/uploads":{"post":{"operationId":"uploadMedia","summary":"Upload a media asset","tags":["Media"],"description":"Required scope: `media:write`. Repeat an identical request with the same idempotency key to safely recover from a timeout.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict or idempotency replay in progress","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/media/imports":{"post":{"operationId":"importMedia","summary":"Import media from a public URL","tags":["Media"],"description":"Required scope: `media:write`. Repeat an identical request with the same idempotency key to safely recover from a timeout.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"},"name":{"type":"string"}}}}}},"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict or idempotency replay in progress","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/operations/{id}":{"get":{"operationId":"getOperation","summary":"Get asynchronous operation status","tags":["Operations"],"description":"Required scope: `workspace:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/analytics/summary":{"get":{"operationId":"getAnalyticsSummary","summary":"Get bounded analytics summary","tags":["Analytics"],"description":"Required scope: `analytics:read`.","parameters":[],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/automations":{"get":{"operationId":"listAutomations","summary":"List automation rules","tags":["Automations"],"description":"Required scope: `automations:read`.","parameters":[{"name":"page[limit]","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"page[after]","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/automations/{id}":{"get":{"operationId":"getAutomation","summary":"Get an automation","tags":["Automations"],"description":"Required scope: `automations:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/automations/{id}/runs":{"get":{"operationId":"listAutomationRuns","summary":"List automation runs","tags":["Automations"],"description":"Required scope: `automations:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"page[limit]","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"page[after]","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/bio-cards":{"get":{"operationId":"listBioCards","summary":"List Bio Cards","tags":["Bio Cards"],"description":"Required scope: `bio:read`.","parameters":[],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/bio-cards/{id}":{"get":{"operationId":"getBioCard","summary":"Get a Bio Card","tags":["Bio Cards"],"description":"Required scope: `bio:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/webhooks":{"get":{"operationId":"listWebhooks","summary":"List webhook endpoints","tags":["Webhooks"],"description":"Required scope: `webhooks:read`.","parameters":[],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"createWebhook","summary":"Create a webhook endpoint","tags":["Webhooks"],"description":"Required scope: `webhooks:write`. Repeat an identical request with the same idempotency key to safely recover from a timeout.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookInput"}}}},"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"400":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict or idempotency replay in progress","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/webhooks/{id}":{"delete":{"operationId":"disableWebhook","summary":"Disable a webhook endpoint","tags":["Webhooks"],"description":"Required scope: `webhooks:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/webhooks/{id}/deliveries":{"get":{"operationId":"listWebhookDeliveries","summary":"List webhook deliveries","tags":["Webhooks"],"description":"Required scope: `webhooks:read`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"page[limit]","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"page[after]","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/webhooks/{id}/test":{"post":{"operationId":"testWebhook","summary":"Queue a test webhook delivery","tags":["Webhooks"],"description":"Required scope: `webhooks:write`.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","headers":{"RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed in the current one-minute window."},"RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests remaining in the current window."},"RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix timestamp when the current window resets."},"X-Request-Id":{"schema":{"type":"string"},"description":"Request correlation identifier."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Envelope"}}}},"401":{"description":"Invalid or expired credential","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Missing scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}}}