{"components":{"parameters":{"cursor":{"description":"Opaque cursor returned as next_cursor by the preceding page.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},"limit":{"description":"Maximum collection items to return.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},"brandId":{"description":"Brand to operate on when an API key does not already select one.","in":"header","name":"X-App9-Post-Brand","required":false,"schema":{"type":"string"}}},"responses":{"Problem":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"RFC 9457 problem details"}},"schemas":{"AcceptedResult":{"additionalProperties":false,"properties":{"accepted":{"type":"boolean"}},"required":["accepted"],"type":"object"},"AccountAuthHealth":{"additionalProperties":false,"properties":{"account_id":{"type":"string"},"status":{"enum":["healthy","expiring","action_required","disconnected"],"type":"string"},"token_error_code":{"type":["string","null"]},"token_error_message":{"type":["string","null"]},"token_expires_at":{"format":"date-time","type":["string","null"]},"token_last_verified_at":{"format":"date-time","type":["string","null"]}},"required":["account_id","status"],"type":"object"},"AccountCapabilities":{"additionalProperties":false,"properties":{"account_id":{"type":"string"},"capabilities":{"additionalProperties":false,"properties":{"analytics":{"type":"boolean"},"comments":{"type":"boolean"},"deleteRemote":{"type":"boolean"},"directMessages":{"type":"boolean"},"feed":{"type":"boolean"},"maxCaptionLength":{"type":"integer"},"maxImages":{"type":"integer"},"mentions":{"type":"boolean"},"publishing":{"additionalProperties":false,"properties":{"document":{"type":"boolean"},"image":{"type":"boolean"},"text":{"type":"boolean"},"video":{"type":"boolean"}},"required":["document","image","text","video"],"type":"object"},"replies":{"type":"boolean"},"requiresMedia":{"type":"boolean"}},"required":["analytics","comments","deleteRemote","directMessages","feed","maxCaptionLength","maxImages","mentions","publishing","replies","requiresMedia"],"type":"object"}},"required":["account_id","capabilities"],"type":"object"},"ActionResult":{"additionalProperties":false,"properties":{"status":{"type":"string"}},"type":"object"},"AnalyticsMetrics":{"additionalProperties":false,"properties":{"averageWatchTimeSeconds":{"type":["number","null"]},"clicks":{"type":["number","null"]},"comments":{"type":["number","null"]},"completionRate":{"type":["number","null"]},"engagedViews":{"type":["number","null"]},"followers":{"type":["number","null"]},"impressions":{"type":["number","null"]},"reactions":{"type":["number","null"]},"reach":{"type":["number","null"]},"saves":{"type":["number","null"]},"shares":{"type":["number","null"]},"views":{"type":["number","null"]},"watchTimeSeconds":{"type":["number","null"]}},"required":["averageWatchTimeSeconds","clicks","comments","completionRate","engagedViews","followers","impressions","reactions","reach","saves","shares","views","watchTimeSeconds"],"type":"object"},"AnalyticsSummary":{"additionalProperties":false,"properties":{"metrics":{"$ref":"#/components/schemas/AnalyticsMetrics"},"range":{"enum":["7d","30d","90d"],"type":"string"}},"required":["metrics","range"],"type":"object"},"ApiKey":{"additionalProperties":false,"properties":{"created_at":{"format":"date-time","type":"string"},"expires_at":{"format":"date-time","type":["string","null"]},"id":{"type":"string"},"last_used_at":{"format":"date-time","type":["string","null"]},"name":{"type":"string"},"prefix":{"type":"string"},"revoked_at":{"format":"date-time","type":["string","null"]},"scopes":{"items":{"enum":["brands:read","brands:admin","accounts:read","accounts:write","media:read","media:write","posts:read","posts:write","posts:publish","feeds:read","analytics:read","inbox:read","inbox:reply","webhooks:read","webhooks:write","browser:deliver"],"type":"string"},"type":"array"}},"required":["created_at","id","name","prefix","scopes"],"type":"object"},"ApiKeyRevocation":{"additionalProperties":false,"properties":{"id":{"type":"string"},"revoked":{"const":true,"type":"boolean"},"revokedAt":{"format":"date-time","type":"string"}},"required":["id","revoked","revokedAt"],"type":"object"},"ApiKeySecret":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"},"scopes":{"items":{"enum":["brands:read","brands:admin","accounts:read","accounts:write","media:read","media:write","posts:read","posts:write","posts:publish","feeds:read","analytics:read","inbox:read","inbox:reply","webhooks:read","webhooks:write","browser:deliver"],"type":"string"},"type":"array"}},"required":["id","key"],"type":"object"},"ApiKeyRotation":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"},"replacedApiKeyId":{"type":"string"},"scopes":{"items":{"enum":["brands:read","brands:admin","accounts:read","accounts:write","media:read","media:write","posts:read","posts:write","posts:publish","feeds:read","analytics:read","inbox:read","inbox:reply","webhooks:read","webhooks:write","browser:deliver"],"type":"string"},"type":"array"}},"required":["createdAt","id","key","name","replacedApiKeyId","scopes"],"type":"object"},"AuthenticatedSession":{"additionalProperties":false,"properties":{"authenticated":{"const":true,"type":"boolean"},"brands":{"items":{"$ref":"#/components/schemas/SessionBrand"},"type":"array"},"user":{"additionalProperties":false,"properties":{"accountId":{"type":"string"},"actorId":{"type":"string"}},"required":["accountId","actorId"],"type":"object"}},"required":["authenticated","brands","user"],"type":"object"},"BillingStatus":{"oneOf":[{"additionalProperties":false,"properties":{"balance":{"type":"number"},"status":{"const":"available"}},"required":["balance","status"],"type":"object"},{"additionalProperties":false,"properties":{"reason":{"type":"string"},"status":{"const":"unavailable"}},"required":["reason","status"],"type":"object"}]},"CompleteMediaInput":{"additionalProperties":false,"properties":{"backend":{"enum":["cloudflare_images","cloudflare_stream","r2"],"type":"string"}},"required":["backend"],"type":"object"},"CreateApiKey":{"additionalProperties":false,"properties":{"expires_at":{"format":"date-time","type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"scopes":{"items":{"enum":["brands:read","brands:admin","accounts:read","accounts:write","media:read","media:write","posts:read","posts:write","posts:publish","feeds:read","analytics:read","inbox:read","inbox:reply","webhooks:read","webhooks:write","browser:deliver"],"type":"string"},"minItems":1,"type":"array"}},"required":["name","scopes"],"type":"object"},"CreateMediaUpload":{"additionalProperties":false,"properties":{"content_type":{"type":"string"},"file_name":{"type":"string"},"kind":{"enum":["image","video","document"],"type":"string"},"musical_loop":{"additionalProperties":false,"properties":{"boundary_mode":{"enum":["automatic","manual"],"type":"string"},"max_duration_seconds":{"default":30,"maximum":120,"minimum":4,"type":"number"},"min_duration_seconds":{"default":12,"maximum":120,"minimum":4,"type":"number"},"preferred_end_seconds":{"maximum":36000,"exclusiveMinimum":0,"type":"number"},"preferred_boundary_tolerance_seconds":{"maximum":5,"minimum":0.1,"type":"number"},"preferred_start_seconds":{"maximum":36000,"minimum":0,"type":"number"},"processing_scope":{"default":"customer","enum":["customer","internal"],"type":"string"},"target_duration_seconds":{"default":24,"maximum":120,"minimum":4,"type":"number"},"visual_match":{"default":true,"type":"boolean"}},"type":"object"},"size_bytes":{"minimum":1,"type":"integer"},"source_url":{"format":"uri","type":"string"}},"required":["content_type","file_name","kind","size_bytes"],"type":"object"},"CreateBrand":{"additionalProperties":false,"properties":{"allow_direct_publish":{"default":false,"type":"boolean"},"approval_policy":{"enum":["none","one_approver"],"type":"string"},"name":{"maxLength":120,"minLength":1,"type":"string"},"team_access":{"default":true,"type":"boolean"},"team_default_role":{"default":"editor","enum":["admin","editor","approver","viewer"],"type":"string"},"timezone":{"default":"UTC","type":"string"}},"required":["name"],"type":"object"},"CreateBrandMembership":{"additionalProperties":false,"properties":{"role":{"enum":["owner","admin","editor","approver","viewer"],"type":"string"},"user_id":{"type":"string"}},"required":["role","user_id"],"type":"object"},"CreateProviderApp":{"additionalProperties":false,"properties":{"client_id":{"type":"string"},"client_secret":{"format":"password","type":"string","writeOnly":true},"provider":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"}},"required":["client_id","client_secret","provider"],"type":"object"},"AdaptiveCampaign":{"additionalProperties":false,"properties":{"approvalSnapshot":{"$ref":"#/components/schemas/CreateAdaptiveCampaign"},"approvedAt":{"format":"date-time","type":"string"},"approvedBy":{"type":"string"},"brandId":{"type":"string"},"contentSets":{"items":{"$ref":"#/components/schemas/AdaptiveContentSet"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"externalId":{"type":"string"},"id":{"type":"string"},"policyVersion":{"type":"string"},"status":{"enum":["in_review","active","paused","completed","canceled"],"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["approvalSnapshot","brandId","contentSets","createdAt","externalId","id","policyVersion","status","timezone","updatedAt"],"type":"object"},"AdaptiveCampaignActionInput":{"additionalProperties":false,"properties":{"action":{"enum":["approve","pause","resume","cancel"],"type":"string"}},"required":["action"],"type":"object"},"AdaptiveCandidate":{"additionalProperties":false,"properties":{"approvedAt":{"format":"date-time","type":"string"},"caption":{"type":"string"},"id":{"type":"string"},"mediaId":{"type":"string"},"platformConfigurations":{"additionalProperties":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},"type":"object"},"role":{"enum":["hook","chorus","full"],"type":"string"},"targets":{"items":{"$ref":"#/components/schemas/AdaptiveCandidateTarget"},"type":"array"}},"required":["approvedAt","caption","id","mediaId","platformConfigurations","role","targets"],"type":"object"},"AdaptiveCandidateTarget":{"additionalProperties":false,"properties":{"accountId":{"type":"string"},"candidateId":{"type":"string"},"confidence":{"enum":["low","medium","high"],"type":"string"},"createdAt":{"format":"date-time","type":"string"},"eligibilityTime":{"format":"date-time","type":"string"},"evidenceClassification":{"enum":["none","inconclusive","winner","exceptional","weak"],"type":"string"},"id":{"type":"string"},"manualPromoteOnce":{"type":"boolean"},"provider":{"enum":["facebook","instagram","tiktok","youtube","pinterest","snapchat"],"type":"string"},"reasonComponents":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},"score":{"type":["number","null"]},"selectedPostId":{"type":"string"},"state":{"enum":["dormant","eligible","selected","published","failed","suppressed","canceled"],"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["accountId","candidateId","confidence","createdAt","evidenceClassification","id","manualPromoteOnce","provider","reasonComponents","score","state","updatedAt"],"type":"object"},"AdaptiveCandidateTargetActionInput":{"additionalProperties":false,"properties":{"action":{"enum":["suppress","restore","promote_next","publish_now"],"type":"string"},"confirmation":{"type":"boolean"}},"required":["action"],"type":"object"},"AdaptiveContentSet":{"additionalProperties":false,"properties":{"candidates":{"items":{"$ref":"#/components/schemas/AdaptiveCandidate"},"type":"array"},"createdAt":{"format":"date-time","type":"string"},"expiresAt":{"format":"date-time","type":"string"},"externalId":{"type":"string"},"id":{"type":"string"},"title":{"type":"string"}},"required":["candidates","createdAt","externalId","id","title"],"type":"object"},"AdaptiveQueueAccount":{"additionalProperties":false,"properties":{"accountId":{"type":"string"},"accountName":{"type":"string"},"candidates":{"items":{"allOf":[{"$ref":"#/components/schemas/AdaptiveCandidateTarget"},{"additionalProperties":false,"properties":{"campaignExternalId":{"type":"string"},"campaignId":{"type":"string"},"caption":{"type":"string"},"contentSetId":{"type":"string"},"contentSetTitle":{"type":"string"},"mediaId":{"type":"string"},"role":{"enum":["hook","chorus","full"],"type":"string"}},"required":["campaignExternalId","campaignId","caption","contentSetId","contentSetTitle","mediaId","role"],"type":"object"}]},"type":"array"},"locked":{"type":"boolean"},"nextEligibleAt":{"format":"date-time","type":"string"},"provider":{"enum":["facebook","instagram","tiktok","youtube","pinterest","snapchat"],"type":"string"}},"required":["accountId","accountName","candidates","locked","provider"],"type":"object"},"AdaptiveQueueResponse":{"additionalProperties":false,"properties":{"data":{"items":{"$ref":"#/components/schemas/AdaptiveQueueAccount"},"type":"array"}},"required":["data"],"type":"object"},"CreateAdaptiveCampaign":{"additionalProperties":false,"properties":{"content_sets":{"items":{"additionalProperties":false,"properties":{"expires_at":{"format":"date-time","type":"string"},"external_id":{"maxLength":240,"minLength":1,"type":"string"},"title":{"maxLength":240,"minLength":1,"type":"string"},"variants":{"items":{"additionalProperties":false,"properties":{"caption":{"maxLength":5000,"minLength":1,"type":"string"},"media_id":{"maxLength":200,"minLength":1,"type":"string"},"platform_configurations":{"additionalProperties":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},"type":"object"},"role":{"enum":["hook","chorus","full"],"type":"string"}},"required":["caption","media_id","role"],"type":"object"},"maxItems":3,"minItems":1,"type":"array"}},"required":["external_id","title","variants"],"type":"object"},"minItems":1,"type":"array"},"external_id":{"maxLength":240,"minLength":1,"type":"string"},"target_account_ids":{"items":{"type":"string"},"minItems":1,"type":"array"},"timezone":{"maxLength":100,"minLength":1,"type":"string"}},"required":["content_sets","external_id","target_account_ids","timezone"],"type":"object"},"CreateSocialPost":{"additionalProperties":false,"properties":{"caption":{"type":"string"},"external_id":{"type":"string"},"media_ids":{"items":{"type":"string"},"type":"array"},"mode":{"enum":["draft","scheduled","immediate"],"type":"string"},"platform_configurations":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},"publish_at":{"format":"date-time","type":"string"},"schedule_strategy":{"enum":["exact","next_available"],"type":"string"},"target_account_ids":{"items":{"type":"string"},"minItems":1,"type":"array"},"timezone":{"type":"string"}},"required":["mode","target_account_ids"],"type":"object"},"CreatedProviderApp":{"additionalProperties":false,"properties":{"enabled":{"const":true,"type":"boolean"},"id":{"type":"string"},"mode":{"const":"byo","type":"string"},"brand_id":{"type":"string"},"provider":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"},"redirect_uri":{"format":"uri","type":"string"},"status":{"const":"active","type":"string"}},"required":["enabled","id","mode","brand_id","provider","redirect_uri","status"],"type":"object"},"CreateWebhook":{"additionalProperties":false,"properties":{"event_types":{"items":{"type":"string"},"minItems":1,"type":"array"},"url":{"format":"uri","type":"string"}},"required":["event_types","url"],"type":"object"},"DeleteResult":{"additionalProperties":false,"properties":{"deleted":{"const":true,"type":"boolean"},"id":{"type":"string"}},"required":["deleted","id"],"type":"object"},"DisconnectResult":{"additionalProperties":false,"properties":{"disconnected":{"const":true,"type":"boolean"}},"required":["disconnected"],"type":"object"},"EmptyInput":{"additionalProperties":false,"properties":{},"type":"object"},"FeedItem":{"additionalProperties":false,"properties":{"account_id":{"type":"string"},"external_id":{"type":"string"},"id":{"type":"string"},"media":{"items":{"type":"string"},"type":"array"},"permalink":{"type":["string","null"]},"provider":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"},"published_at":{"format":"date-time","type":"string"},"synced_at":{"format":"date-time","type":"string"},"text_content":{"type":["string","null"]}},"required":["account_id","external_id","id","provider","published_at"],"type":"object"},"InboxMessage":{"additionalProperties":false,"properties":{"body":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"direction":{"enum":["inbound","outbound"],"type":"string"},"external_message_id":{"type":["string","null"]},"id":{"type":"string"},"sender_display_name":{"type":["string","null"]},"sent_at":{"format":"date-time","type":"string"},"status":{"type":"string"}},"required":["body","created_at","direction","id","sent_at","status"],"type":"object"},"InboxReply":{"additionalProperties":false,"properties":{"external_message_id":{"type":"string"},"id":{"type":"string"},"status":{"const":"sent"}},"required":["external_message_id","id","status"],"type":"object"},"InboxReplyInput":{"additionalProperties":false,"properties":{"message":{"type":"string"}},"required":["message"],"type":"object"},"InboxThread":{"additionalProperties":false,"properties":{"accountId":{"type":"string"},"assignedTo":{"type":"string"},"deepLinkUrl":{"format":"uri","type":"string"},"externalThreadId":{"type":"string"},"id":{"type":"string"},"participantDisplayName":{"type":"string"},"provider":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"},"replySupported":{"type":"boolean"},"status":{"enum":["open","resolved","archived"],"type":"string"},"type":{"enum":["comment","mention","direct_message"],"type":"string"},"unreadCount":{"type":"integer"},"updatedAt":{"format":"date-time","type":"string"}},"required":["accountId","externalThreadId","id","participantDisplayName","provider","replySupported","status","type","unreadCount","updatedAt"],"type":"object"},"JaxiaTurn":{"additionalProperties":false,"properties":{"conversationId":{"type":"string"},"message":{"type":"string"},"suggestedActions":{"items":{"additionalProperties":false,"properties":{"confirmationRequired":{"type":"boolean"},"label":{"type":"string"},"tool":{"type":"string"}},"required":["confirmationRequired","label"],"type":"object"},"type":"array"},"toolActivity":{"items":{"additionalProperties":false,"properties":{"name":{"type":"string"},"status":{"enum":["pending","succeeded","failed"],"type":"string"}},"required":["name","status"],"type":"object"},"type":"array"}},"required":["conversationId","message","suggestedActions","toolActivity"],"type":"object"},"JaxiaTurnInput":{"additionalProperties":false,"properties":{"conversation":{"items":{"additionalProperties":false,"properties":{"content":{"type":"string"},"role":{"enum":["assistant","user"],"type":"string"}},"required":["content","role"],"type":"object"},"type":"array"},"conversation_id":{"type":"string"},"message":{"type":"string"},"page":{"type":"string"},"selected_resource":{"additionalProperties":false,"properties":{"id":{"type":"string"},"type":{"enum":["account","inbox_thread","media","post"],"type":"string"}},"required":["id","type"],"type":"object"}},"required":["message"],"type":"object"},"JsonValue":{"oneOf":[{"type":["boolean","number","string","null"]},{"items":{"$ref":"#/components/schemas/JsonValue"},"type":"array"},{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"}]},"MediaUpload":{"additionalProperties":false,"properties":{"direct_upload":{"additionalProperties":false,"properties":{"id":{"type":"string"}},"type":"object"},"media":{"$ref":"#/components/schemas/SocialMedia"},"upload_url":{"format":"uri","type":"string"}},"required":["media"],"type":"object"},"MediaVariant":{"additionalProperties":false,"properties":{"contentType":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"kind":{"enum":["musical_loop","original","optimized","thumbnail","stream"],"type":"string"},"mediaId":{"type":"string"},"status":{"enum":["pending","processing","ready","failed"],"type":"string"},"url":{"format":"uri","type":"string"}},"required":["contentType","createdAt","id","kind","mediaId","status"],"type":"object"},"MembershipDeleteResult":{"additionalProperties":false,"properties":{"deleted":{"const":true,"type":"boolean"},"user_id":{"type":"string"}},"required":["deleted","user_id"],"type":"object"},"PostActionInput":{"additionalProperties":false,"properties":{"confirmed":{"type":"boolean"},"note":{"type":"string"}},"type":"object"},"PostAnalytics":{"additionalProperties":false,"properties":{"metrics":{"$ref":"#/components/schemas/AnalyticsMetrics"},"post_id":{"type":"string"},"targets":{"items":{"additionalProperties":false,"properties":{"account_id":{"type":"string"},"captured_at":{"format":"date-time","type":["string","null"]},"confidence":{"enum":["high","medium","low","unavailable"],"type":"string"},"freshness":{"enum":["fresh","stale","expired","unavailable"],"type":"string"},"metrics":{"$ref":"#/components/schemas/AnalyticsMetrics"},"provider":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"},"remote_post_id":{"type":"string"},"target_id":{"type":"string"}},"required":["account_id","captured_at","confidence","freshness","metrics","provider","target_id"],"type":"object"},"type":"array"}},"required":["metrics","post_id","targets"],"type":"object"},"PostTarget":{"additionalProperties":false,"properties":{"accountId":{"type":"string"},"attemptCount":{"type":"integer"},"billingReservationId":{"type":"string"},"id":{"type":"string"},"lastErrorCode":{"type":"string"},"lastErrorMessage":{"type":"string"},"post_id":{"type":"string"},"provider":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"},"publishAt":{"format":"date-time","type":"string"},"remotePostId":{"type":"string"},"remotePostUrl":{"format":"uri","type":"string"},"status":{"enum":["pending","billing_blocked","queued","processing","succeeded","retryable_failed","terminal_failed","canceled"],"type":"string"}},"required":["accountId","attemptCount","id","provider","status"],"type":"object"},"BrandMembership":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","type":"string"},"brandId":{"type":"string"},"role":{"enum":["owner","admin","editor","approver","viewer"],"type":"string"},"userId":{"type":"string"}},"required":["createdAt","brandId","role","userId"],"type":"object"},"ProviderApp":{"additionalProperties":false,"properties":{"client_id":{"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"string"},"mode":{"enum":["managed","byo"],"type":"string"},"brand_id":{"type":"string"},"provider":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"},"redirect_uri":{"format":"uri","type":"string"},"status":{"enum":["active","disabled"],"type":"string"}},"required":["client_id","enabled","id","mode","provider","redirect_uri","status"],"type":"object"},"ProviderAvailability":{"additionalProperties":false,"properties":{"analytics":{"type":"boolean"},"byoConnect":{"type":"boolean"},"certification":{"additionalProperties":false,"properties":{"certifiedAt":{"format":"date-time","type":"string"},"provider":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"},"status":{"enum":["not_started","in_progress","certified","blocked"],"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["provider","status","updatedAt"],"type":"object"},"inbox":{"type":"boolean"},"managedConnect":{"type":"boolean"},"provider":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"},"publish":{"type":"boolean"},"status":{"enum":["disabled","private_beta","public_beta","generally_available"],"type":"string"},"sync":{"type":"boolean"},"updatedAt":{"format":"date-time","type":"string"}},"required":["analytics","byoConnect","certification","inbox","managedConnect","provider","publish","status","sync","updatedAt"],"type":"object"},"ProviderConnectionResult":{"additionalProperties":false,"properties":{"account_id":{"type":"string"},"credential_mode":{"enum":["byo_app_password","byo_application_password"],"type":"string"},"provider":{"enum":["bluesky","wordpress"],"type":"string"},"status":{"const":"connected","type":"string"}},"required":["account_id","credential_mode","provider","status"],"type":"object"},"BlueskyConnectionInput":{"additionalProperties":false,"properties":{"app_password":{"format":"password","type":"string","writeOnly":true},"identifier":{"type":"string"},"service_url":{"default":"https://bsky.social","format":"uri","type":"string"}},"required":["app_password","identifier"],"type":"object"},"ReplayResult":{"additionalProperties":false,"properties":{"replayed":{"const":true,"type":"boolean"}},"required":["replayed"],"type":"object"},"SocialAccount":{"additionalProperties":false,"properties":{"capabilities":{"additionalProperties":false,"properties":{"analytics":{"type":"boolean"},"comments":{"type":"boolean"},"deleteRemote":{"type":"boolean"},"directMessages":{"type":"boolean"},"feed":{"type":"boolean"},"maxCaptionLength":{"type":"integer"},"maxImages":{"type":"integer"},"mentions":{"type":"boolean"},"publishing":{"additionalProperties":false,"properties":{"document":{"type":"boolean"},"image":{"type":"boolean"},"text":{"type":"boolean"},"video":{"type":"boolean"}},"required":["document","image","text","video"],"type":"object"},"replies":{"type":"boolean"},"requiresMedia":{"type":"boolean"}},"required":["analytics","comments","deleteRemote","directMessages","feed","maxCaptionLength","maxImages","mentions","publishing","replies","requiresMedia"],"type":"object"},"deliveryMethod":{"enum":["api","browser","profile"],"type":"string"},"displayName":{"type":"string"},"externalAccountId":{"type":"string"},"id":{"type":"string"},"profileImageUrl":{"format":"uri","type":"string"},"brandId":{"type":"string"},"provider":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"},"status":{"enum":["connected","action_required","disconnected"],"type":"string"}},"required":["capabilities","displayName","externalAccountId","id","brandId","provider","status"],"type":"object"},"SocialAccountAuthUrl":{"additionalProperties":false,"properties":{"auth_url":{"format":"uri","type":"string"},"expires_at":{"format":"date-time","type":"string"},"status":{"type":"string"}},"type":"object"},"SocialAccountAuthUrlInput":{"additionalProperties":false,"properties":{"provider":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"},"provider_app_id":{"type":"string"},"redirect_after":{"format":"uri","type":"string"}},"required":["provider"],"type":"object"},"SocialMedia":{"additionalProperties":false,"properties":{"contentType":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"durationSeconds":{"type":"number"},"fileName":{"type":"string"},"height":{"type":"integer"},"id":{"type":"string"},"kind":{"enum":["image","video","document"],"type":"string"},"musicalLoop":{"additionalProperties":false,"properties":{"algorithmVersion":{"type":"string"},"audioSimilarity":{"maximum":1,"minimum":0,"type":"number"},"barCount":{"minimum":0,"type":"integer"},"bpm":{"type":"number"},"confidence":{"maximum":1,"minimum":0,"type":"number"},"endSeconds":{"type":"number"},"errorCode":{"type":"string"},"errorMessage":{"type":"string"},"maxSeconds":{"type":"number"},"minSeconds":{"type":"number"},"processingScope":{"enum":["customer","internal"],"type":"string"},"startSeconds":{"type":"number"},"status":{"enum":["pending","processing","ready","failed"],"type":"string"},"targetSeconds":{"type":"number"},"visualMatch":{"type":"boolean"},"visualSimilarity":{"maximum":1,"minimum":0,"type":"number"}},"required":["maxSeconds","minSeconds","processingScope","status","targetSeconds","visualMatch"],"type":"object"},"brandId":{"type":"string"},"sizeBytes":{"type":"integer"},"status":{"enum":["uploading","processing","ready","failed"],"type":"string"},"thumbnailUrl":{"format":"uri","type":"string"},"url":{"format":"uri","type":"string"},"width":{"type":"integer"}},"required":["contentType","createdAt","fileName","id","kind","brandId","sizeBytes","status"],"type":"object"},"SocialPost":{"additionalProperties":false,"properties":{"caption":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"createdBy":{"type":"string"},"externalId":{"type":"string"},"id":{"type":"string"},"mediaIds":{"items":{"type":"string"},"type":"array"},"mode":{"enum":["draft","scheduled","immediate"],"type":"string"},"platformConfigurations":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},"brandId":{"type":"string"},"publishAt":{"format":"date-time","type":"string"},"status":{"enum":["draft","in_review","approved","scheduled","queued","processing","partially_succeeded","succeeded","failed","canceled"],"type":"string"},"targets":{"items":{"$ref":"#/components/schemas/PostTarget"},"type":"array"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["caption","createdAt","createdBy","id","mediaIds","mode","platformConfigurations","brandId","status","targets","timezone","updatedAt"],"type":"object"},"SocialPostPreview":{"additionalProperties":false,"properties":{"previews":{"items":{"additionalProperties":false,"properties":{"account":{"$ref":"#/components/schemas/SocialAccount"},"caption":{"type":"string"},"issues":{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"field":{"type":"string"},"message":{"type":"string"},"provider":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"}},"required":["code","field","message","provider"],"type":"object"},"type":"array"},"media":{"items":{"$ref":"#/components/schemas/SocialMedia"},"type":"array"},"platform_configuration":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"}},"required":["account","caption","issues","media","platform_configuration"],"type":"object"},"type":"array"},"valid":{"type":"boolean"}},"required":["previews","valid"],"type":"object"},"SocialBrandEvent":{"additionalProperties":false,"properties":{"api_version":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"data":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},"id":{"type":"string"},"brand_id":{"type":"string"},"type":{"type":"string"}},"required":["api_version","created_at","data","id","brand_id","type"],"type":"object"},"SocialBrand":{"additionalProperties":false,"properties":{"accountId":{"type":"string"},"allowDirectPublish":{"type":"boolean"},"approvalPolicy":{"enum":["none","one_approver"],"type":"string"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"name":{"type":"string"},"teamAccess":{"type":"boolean"},"teamDefaultRole":{"enum":["admin","editor","approver","viewer"],"type":"string"},"teamId":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["accountId","allowDirectPublish","approvalPolicy","createdAt","id","name","teamAccess","teamDefaultRole","timezone","updatedAt"],"type":"object"},"TeamRosterResponse":{"additionalProperties":false,"properties":{"team":{"anyOf":[{"additionalProperties":false,"properties":{"id":{"type":"string"},"members":{"items":{"additionalProperties":false,"properties":{"email":{"type":["string","null"]},"joinedAt":{"format":"date-time","type":["string","null"]},"membershipId":{"type":"string"},"name":{"type":"string"},"roleId":{"type":"string"},"roleName":{"type":"string"},"userId":{"type":"string"}},"required":["email","joinedAt","membershipId","name","roleId","roleName","userId"],"type":"object"},"type":"array"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","members","name","slug"],"type":"object"},{"type":"null"}]}},"required":["team"],"type":"object"},"SessionBrand":{"additionalProperties":false,"properties":{"accountId":{"type":"string"},"allowDirectPublish":{"type":"boolean"},"approvalPolicy":{"enum":["none","one_approver"],"type":"string"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"name":{"type":"string"},"teamAccess":{"type":"boolean"},"teamDefaultRole":{"enum":["admin","editor","approver","viewer"],"type":"string"},"teamId":{"type":"string"},"timezone":{"type":"string"},"updatedAt":{"format":"date-time","type":"string"},"accessSource":{"enum":["membership","team"],"type":"string"},"role":{"enum":["owner","admin","editor","approver","viewer"],"type":"string"}},"required":["accountId","allowDirectPublish","approvalPolicy","createdAt","id","name","accessSource","role","teamAccess","teamDefaultRole","timezone","updatedAt"],"type":"object"},"SyncStatus":{"additionalProperties":false,"properties":{"cursor":{"type":["string","null"]},"last_error_code":{"type":["string","null"]},"last_error_message":{"type":["string","null"]},"last_synced_at":{"format":"date-time","type":["string","null"]},"resource_type":{"enum":["analytics","feed","inbox"],"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["resource_type","updated_at"],"type":"object"},"SyncStatusPage":{"additionalProperties":false,"properties":{"account_id":{"type":"string"},"data":{"items":{"$ref":"#/components/schemas/SyncStatus"},"type":"array"},"next_cursor":{"type":"string"}},"required":["account_id","data"],"type":"object"},"UpdateInboxThread":{"additionalProperties":false,"properties":{"assigned_to":{"type":["string","null"]},"status":{"enum":["open","resolved","archived"],"type":"string"}},"type":"object"},"UpdateBrand":{"additionalProperties":false,"properties":{"allow_direct_publish":{"type":"boolean"},"approval_policy":{"enum":["none","one_approver"],"type":"string"},"name":{"type":"string"},"team_access":{"type":"boolean"},"team_default_role":{"enum":["admin","editor","approver","viewer"],"type":"string"},"timezone":{"type":"string"}},"type":"object"},"UpdateBrandMembership":{"additionalProperties":false,"properties":{"role":{"enum":["owner","admin","editor","approver","viewer"],"type":"string"}},"required":["role"],"type":"object"},"UpdateProviderApp":{"additionalProperties":false,"properties":{"client_id":{"type":"string"},"client_secret":{"format":"password","type":"string","writeOnly":true},"status":{"enum":["active","disabled"],"type":"string"}},"type":"object"},"UpdateSocialPost":{"additionalProperties":false,"properties":{"caption":{"type":"string"},"media_ids":{"items":{"type":"string"},"type":"array"},"platform_configurations":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object"},"publish_at":{"type":["string","null"]},"target_account_ids":{"items":{"type":"string"},"type":"array"},"timezone":{"type":"string"}},"type":"object"},"UpdateWebhook":{"additionalProperties":false,"properties":{"event_types":{"items":{"type":"string"},"type":"array"},"status":{"enum":["active","disabled"],"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"},"Webhook":{"additionalProperties":false,"properties":{"event_types":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"brand_id":{"type":"string"},"secret":{"type":"string","writeOnly":true},"status":{"enum":["active","disabled"],"type":"string"},"url":{"format":"uri","type":"string"}},"required":["event_types","id","status","url"],"type":"object"},"WebhookDelivery":{"additionalProperties":false,"properties":{"attempt_count":{"type":"integer"},"created_at":{"format":"date-time","type":"string"},"delivered_at":{"format":"date-time","type":["string","null"]},"event_id":{"type":"string"},"id":{"type":"string"},"last_error":{"type":["string","null"]},"next_attempt_at":{"format":"date-time","type":["string","null"]},"response_status":{"type":["integer","null"]},"status":{"type":"string"},"subscription_id":{"type":"string"}},"required":["attempt_count","created_at","event_id","id","status","subscription_id"],"type":"object"},"WordPressConnectionInput":{"additionalProperties":false,"properties":{"application_password":{"format":"password","type":"string","writeOnly":true},"site_url":{"format":"uri","type":"string"},"username":{"type":"string"}},"required":["application_password","site_url","username"],"type":"object"},"ProblemDetails":{"additionalProperties":false,"properties":{"code":{"type":"string"},"detail":{"type":"string"},"request_id":{"type":"string"},"status":{"type":"integer"},"title":{"type":"string"},"type":{"format":"uri","type":"string"}},"required":["code","detail","request_id","status","title","type"],"type":"object"}},"securitySchemes":{"bearerAuth":{"scheme":"bearer","type":"http"}}},"info":{"description":"API-first multi-network publishing, scheduling, analytics, and engagement.","title":"App9 Post API","version":"1.0.0-beta.1"},"openapi":"3.1.0","paths":{"/v1/auth/session":{"get":{"operationId":"getAuthenticatedSession","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthenticatedSession"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get the signed-in user and tenant-scoped brand roles"}},"/v1/provider-availability":{"get":{"operationId":"listProviderAvailability","parameters":[{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ProviderAvailability"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List sanitized provider release availability"}},"/v1/billing/status":{"get":{"operationId":"getBillingStatus","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStatus"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get the signed-in user's sanitized App9 credit balance"}},"/v1/brands":{"get":{"operationId":"listBrands","parameters":[{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SocialBrand"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List brands"},"post":{"operationId":"createBrand","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialBrand"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Create a brand","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBrand"}}},"required":true}}},"/v1/brands/{id}":{"patch":{"operationId":"updateBrand","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialBrand"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Update brand settings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBrand"}}},"required":true}}},"/v1/brands/{id}/memberships":{"get":{"operationId":"listBrandMemberships","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BrandMembership"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List brand memberships"},"post":{"operationId":"createBrandMembership","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandMembership"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Create a brand membership","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBrandMembership"}}},"required":true}}},"/v1/brands/{id}/team-roster":{"get":{"operationId":"getTeamRoster","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRosterResponse"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get the App9 team roster for a brand"}},"/v1/brands/{id}/memberships/{userId}":{"delete":{"operationId":"deleteBrandMembership","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipDeleteResult"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Delete a brand membership"},"patch":{"operationId":"updateBrandMembership","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"path","name":"userId","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandMembership"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Update a brand membership","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBrandMembership"}}},"required":true}}},"/v1/api-keys":{"get":{"operationId":"listApiKeys","parameters":[{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ApiKey"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List API keys"},"post":{"operationId":"createApiKey","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeySecret"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Create an API key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKey"}}},"required":true}}},"/v1/api-keys/{id}":{"delete":{"operationId":"revokeApiKey","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyRevocation"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Revoke an API key"}},"/v1/api-keys/{id}/rotate":{"post":{"operationId":"rotateApiKey","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyRotation"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Rotate an API key"}},"/v1/provider-apps":{"get":{"operationId":"listProviderApps","parameters":[{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ProviderApp"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List OAuth provider applications"},"post":{"operationId":"createProviderApp","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedProviderApp"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Create an OAuth provider application","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProviderApp"}}},"required":true}}},"/v1/provider-apps/{id}":{"delete":{"operationId":"deleteProviderApp","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResult"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Delete an OAuth provider application"},"patch":{"operationId":"updateProviderApp","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApp"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Update an OAuth provider application","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProviderApp"}}},"required":true}}},"/v1/social-accounts":{"get":{"operationId":"listSocialAccounts","parameters":[{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SocialAccount"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List connected social accounts"}},"/v1/social-accounts/auth-url":{"post":{"operationId":"createSocialAccountAuthUrl","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAccountAuthUrl"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Start provider authorization","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAccountAuthUrlInput"}}},"required":true}}},"/v1/social-accounts/{id}/capabilities":{"get":{"operationId":"getSocialAccountCapabilities","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountCapabilities"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get account capabilities"}},"/v1/social-accounts/{id}/capabilities/refresh":{"post":{"operationId":"refreshSocialAccountCapabilities","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountCapabilities"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Refresh effective account capabilities","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyInput"}}},"required":true}}},"/v1/social-accounts/{id}/auth-health":{"get":{"operationId":"getSocialAccountAuthHealth","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountAuthHealth"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get sanitized provider credential health"}},"/v1/social-accounts/{id}/reconnect":{"post":{"operationId":"reconnectSocialAccount","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialAccountAuthUrl"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Reconnect a provider account","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyInput"}}},"required":true}}},"/v1/social-accounts/{id}/sync-status":{"get":{"operationId":"getSocialAccountSyncStatus","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncStatusPage"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get cursor-backed synchronization status"}},"/v1/social-accounts/wordpress/self-hosted":{"post":{"operationId":"connectSelfHostedWordPress","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderConnectionResult"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Connect self-hosted WordPress with a BYO application password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WordPressConnectionInput"}}},"required":true}}},"/v1/social-accounts/x/browser":{"post":{"operationId":"connectBrowserAssistedX","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionResult"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Connect an X handle for browser-assisted delivery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyInput"}}},"required":true}}},"/v1/social-accounts/tiktok/browser":{"post":{"operationId":"connectBrowserAssistedTikTok","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionResult"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Connect a TikTok handle for browser-assisted delivery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyInput"}}},"required":true}}},"/v1/social-accounts/profile-link":{"post":{"operationId":"connectSocialProfileLink","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionResult"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Record an existing social profile without claiming publishing access","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyInput"}}},"required":true}}},"/v1/social-accounts/bluesky/app-password":{"post":{"operationId":"connectBlueskyAppPassword","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderConnectionResult"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Connect Bluesky with an explicitly BYO app password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueskyConnectionInput"}}},"required":true}}},"/v1/social-accounts/{id}/disconnect":{"post":{"operationId":"disconnectSocialAccount","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisconnectResult"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Disconnect a social account","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyInput"}}},"required":true}}},"/v1/browser-delivery-tasks/status":{"get":{"operationId":"getBrowserDeliveryStatus","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionResult"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Verify the Chrome companion connection"}},"/v1/browser-delivery-tasks/claim":{"post":{"operationId":"claimBrowserDeliveryTask","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionResult"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Claim the next approved browser-assisted delivery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyInput"}}},"required":true}}},"/v1/browser-delivery-tasks/{id}/check":{"post":{"operationId":"checkBrowserDeliveryTask","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-App9-Post-Browser-Claim","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionResult"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Recheck approval immediately before browser publication","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyInput"}}},"required":true}}},"/v1/browser-delivery-tasks/{id}/complete":{"post":{"operationId":"completeBrowserDeliveryTask","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-App9-Post-Browser-Claim","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionResult"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Report a verified browser-assisted delivery result","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyInput"}}},"required":true}}},"/v1/media":{"get":{"operationId":"listMedia","parameters":[{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SocialMedia"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List media assets"}},"/v1/media/create-upload-url":{"post":{"operationId":"createMediaUpload","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUpload"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Create a guarded media upload","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMediaUpload"}}},"required":true}}},"/v1/media/{id}":{"delete":{"operationId":"deleteMedia","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResult"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Delete a media asset"},"get":{"operationId":"getMedia","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialMedia"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get a media asset"}},"/v1/media/{id}/content":{"put":{"operationId":"uploadMediaContent","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialMedia"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Upload media content","requestBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"required":true}}},"/v1/media/{id}/complete":{"post":{"operationId":"completeMedia","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"},{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialMedia"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Complete a media upload","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteMediaInput"}}},"required":true}}},"/v1/media/{id}/variants":{"get":{"operationId":"listMediaVariants","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/MediaVariant"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List verified media variants"}},"/v1/social-posts":{"get":{"operationId":"listSocialPosts","parameters":[{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SocialPost"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List social posts"},"post":{"operationId":"createSocialPost","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPost"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Create a social post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSocialPost"}}},"required":true}}},"/v1/adaptive-campaigns":{"get":{"operationId":"listAdaptiveCampaigns","parameters":[{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AdaptiveCampaign"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List adaptive campaigns"},"post":{"operationId":"createAdaptiveCampaign","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdaptiveCampaign"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Create an adaptive campaign","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdaptiveCampaign"}}},"required":true}}},"/v1/adaptive-campaigns/{id}":{"get":{"operationId":"getAdaptiveCampaign","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdaptiveCampaign"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get an adaptive campaign"}},"/v1/adaptive-queue":{"get":{"operationId":"getAdaptiveQueue","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdaptiveQueueResponse"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get the adaptive account queue"}},"/v1/adaptive-campaigns/{id}/actions":{"post":{"operationId":"applyAdaptiveCampaignAction","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdaptiveCampaign"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Apply an adaptive campaign action","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdaptiveCampaignActionInput"}}},"required":true}}},"/v1/adaptive-candidate-targets/{id}/actions":{"post":{"operationId":"applyAdaptiveCandidateTargetAction","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdaptiveCandidateTarget"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Apply an adaptive candidate-target action","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdaptiveCandidateTargetActionInput"}}},"required":true}}},"/v1/social-post-previews":{"post":{"operationId":"previewSocialPost","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPostPreview"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Validate and preview a social post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSocialPost"}}},"required":true}}},"/v1/social-post-results":{"get":{"operationId":"listSocialPostResults","parameters":[{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PostTarget"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List target-level delivery results"}},"/v1/social-posts/{id}":{"get":{"operationId":"getSocialPost","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPost"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get a social post"},"patch":{"operationId":"updateSocialPost","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPost"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Update a social post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSocialPost"}}},"required":true}}},"/v1/social-posts/{id}/sync-metadata":{"post":{"operationId":"syncSocialPostMetadata","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionResult"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Update metadata on an already-published provider post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyInput"}}},"required":true}}},"/v1/social-posts/{id}/results":{"get":{"operationId":"getSocialPostResults","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PostTarget"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get target-level delivery results"}},"/v1/social-posts/{id}/analytics":{"get":{"operationId":"getSocialPostAnalytics","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostAnalytics"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get normalized post analytics"}},"/v1/social-posts/{id}/submit":{"post":{"operationId":"submitSocialPost","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPost"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"submit a social post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostActionInput"}}},"required":true}}},"/v1/social-posts/{id}/approve":{"post":{"operationId":"approveSocialPost","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPost"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"approve a social post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostActionInput"}}},"required":true}}},"/v1/social-posts/{id}/reject":{"post":{"operationId":"rejectSocialPost","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPost"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"reject a social post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostActionInput"}}},"required":true}}},"/v1/social-posts/{id}/publish":{"post":{"operationId":"publishSocialPost","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPost"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"publish a social post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostActionInput"}}},"required":true}}},"/v1/social-posts/{id}/cancel":{"post":{"operationId":"cancelSocialPost","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPost"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"cancel a social post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostActionInput"}}},"required":true}}},"/v1/social-posts/{id}/retry":{"post":{"operationId":"retrySocialPost","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SocialPost"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"retry a social post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostActionInput"}}},"required":true}}},"/v1/social-account-feeds/{id}":{"get":{"operationId":"getSocialAccountFeed","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FeedItem"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get a normalized account feed"}},"/v1/analytics/summary":{"get":{"operationId":"getAnalyticsSummary","parameters":[{"description":"Analytics snapshots captured within the selected rolling range.","in":"query","name":"range","required":false,"schema":{"default":"30d","enum":["7d","30d","90d"],"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsSummary"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Get normalized analytics"}},"/v1/inbox/threads":{"get":{"operationId":"listInboxThreads","parameters":[{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/InboxThread"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List normalized inbox threads"}},"/v1/inbox/threads/{id}/messages":{"get":{"operationId":"listInboxMessages","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/InboxMessage"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List inbox messages"}},"/v1/inbox/threads/{id}/replies":{"post":{"operationId":"replyToInboxThread","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxReply"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Reply when the provider capability is enabled","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxReplyInput"}}},"required":true}}},"/v1/inbox/threads/{id}":{"patch":{"operationId":"updateInboxThread","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxThread"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Assign or update an inbox thread","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInboxThread"}}},"required":true}}},"/v1/webhooks":{"get":{"operationId":"listWebhooks","parameters":[{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Webhook"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List webhook subscriptions"},"post":{"operationId":"createWebhook","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}},"description":"Created"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Create a webhook subscription","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhook"}}},"required":true}}},"/v1/webhooks/{id}":{"delete":{"operationId":"deleteWebhook","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResult"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Delete a webhook subscription"},"patch":{"operationId":"updateWebhook","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Update a webhook subscription","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhook"}}},"required":true}}},"/v1/webhooks/{id}/deliveries":{"get":{"operationId":"listWebhookDeliveries","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"},{"$ref":"#/components/parameters/cursor"},{"$ref":"#/components/parameters/limit"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WebhookDelivery"},"type":"array"},"next_cursor":{"type":"string"}},"required":["data"],"type":"object"}}},"description":"Successful cursor page"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"List webhook deliveries"}},"/v1/webhook-deliveries/{id}/replay":{"post":{"operationId":"replayWebhookDelivery","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayResult"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Replay a webhook delivery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyInput"}}},"required":true}}},"/v1/events/stream":{"get":{"operationId":"streamEvents","parameters":[{"$ref":"#/components/parameters/brandId"},{"description":"Resume strictly after this retained brand event identifier.","in":"header","name":"Last-Event-ID","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"text/event-stream":{"schema":{"$ref":"#/components/schemas/SocialBrandEvent"}}},"description":"Replay followed by live brand events","headers":{"X-App9-Post-Reconnect-After":{"schema":{"type":"integer"}}}},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"503":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Stream console events with SSE"}},"/v1/jaxia/turn":{"post":{"operationId":"createJaxiaTurn","parameters":[{"$ref":"#/components/parameters/brandId"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JaxiaTurn"}}},"description":"Successful response"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[{"bearerAuth":[]}],"summary":"Send a brand-scoped Jaxia turn","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JaxiaTurnInput"}}},"required":true}}},"/provider-callbacks/{provider}/{accountId}":{"post":{"operationId":"receiveProviderCallback","parameters":[{"in":"path","name":"provider","required":true,"schema":{"enum":["facebook","instagram","threads","x","linkedin","tiktok","youtube","pinterest","snapchat","bluesky","wordpress"],"type":"string"}},{"in":"path","name":"accountId","required":true,"schema":{"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptedResult"}}},"description":"Accepted"},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"409":{"$ref":"#/components/responses/Problem"},"422":{"$ref":"#/components/responses/Problem"}},"security":[],"summary":"Receive a signature-verified provider callback","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmptyInput"}}},"required":true}}}},"servers":[{"url":"https://postapi.app9.co"},{"url":"https://postapi-staging.app9.co"},{"url":"http://postapi.app9.co.localhost:8793"}]}