{"openapi":"3.1.0","info":{"title":"Vismatix Developer API v3","description":"High-performance, sub-millisecond REST API for social media matrix planning, multi-platform publishing, and workspace automation. Authenticated via cryptographic vmtx_ tokens (vmtx_u_ Master and vmtx_p_ Project Scoped).","x-studio-agent-mode":{"availability":["pro","ultra"],"workspace_context":["selected_matrix_day_slot_and_draft","active_brand_dna_profile","connected_channels","pending_client_review_summary"],"split_canvas_actions":["jump_to_matrix_cell","open_existing_approval_link","inspect_brand_dna"],"selection_sync":"Matrix cell and draft selections are associated with their Hoxi thread.","progress_receipts":"Progress indicators are emitted only after a workspace mutation is confirmed.","approval_bearer_tokens_in_model_context":false,"generation_token_check":"Every metered execution step checks available GT before continuing."},"version":"3.0.0","contact":{"name":"Vismatix Architecture Team","url":"https:\/\/vismatix.online"}},"servers":[{"url":"https:\/\/vismatix.online\/api\/v3","description":"Production Gateway"}],"tags":[{"name":"System & Health","description":"Telemetry, diagnostic probes, and platform specs"},{"name":"Posts & Publishing","description":"Publishing pipeline, content scheduling, and batch mutations"},{"name":"Matrix Grid","description":"Weekly 84-slot scheduling canvas and auto-orchestration"},{"name":"Workspaces","description":"Multi-project management, permissions, and members"},{"name":"Tasks & Backlog","description":"Editorial workflow tasks and priorities"},{"name":"Ideas Scratchpad","description":"Content brainstorming and 1-click draft conversion"},{"name":"AI Copilot Suite","description":"Virality hook scoring, copy improvement, and hashtag discovery"},{"name":"GEO & AI Search","description":"Generative Engine Optimization and AI crawler compatibility"},{"name":"Analytics & Cadence","description":"Measured post-publish performance, provider sync, Hoxi diagnosis, and the 84-slot Matrix heatmap"},{"name":"Content Templates","description":"Curated viral frameworks and blueprints"},{"name":"Webhooks","description":"Event-driven real-time outbound webhooks with HMAC signatures"},{"name":"Notifications","description":"In-app publication alerts and delivery notifications"},{"name":"Wallet & Credits","description":"GC balance, peer-to-peer transfers, and vouchers"},{"name":"Audit Trail","description":"Immutable audit log stream (Master Key only)"},{"name":"Unified Social Inbox","description":"Workspace-scoped DMs, comments, mentions, Hoxi triage, and safe replies"}],"components":{"securitySchemes":{"BearerToken":{"type":"http","scheme":"bearer","bearerFormat":"vmtx_u_... (Account) | vmtx_p_... (Project)","description":"Personal API token. Use vmtx_u_ for Account Master or vmtx_p_ for Project Restricted access."},"ApiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Alternative authentication header (supports vmtx_ keys)."},"Idempotency":{"type":"apiKey","in":"header","name":"Idempotency-Key","description":"Unique UUID to prevent duplicate execution on network retries."}},"schemas":{"ApiResponse":{"type":"object","properties":{"success":{"type":"boolean","example":true},"message":{"type":"string","example":"OK"},"data":{"type":"object"},"meta":{"type":"object","properties":{"api_version":{"type":"string","example":"v3"},"timestamp":{"type":"string","format":"date-time"},"request_id":{"type":"string","example":"v3_req_4f9a2e"},"latency_ms":{"type":"number","example":1.25}}}}},"HealthResponse":{"type":"object","required":["status","api_version","timestamp","request_id"],"properties":{"status":{"type":"string","enum":["ok"]},"api_version":{"type":"string","example":"v3"},"timestamp":{"type":"string","format":"date-time"},"request_id":{"type":"string","example":"req_4f9a2e"}}},"ApiError":{"type":"object","properties":{"ok":{"type":"boolean","example":false},"success":{"type":"boolean","example":false},"error":{"type":"object","properties":{"code":{"type":"string","example":"AUTHENTICATION_REQUIRED"},"message":{"type":"string","example":"Bearer token is missing or invalid."},"hint":{"type":"string","example":"Provide a valid Bearer vmtx_u_, vmtx_p_, or vmtx_oa_ token."},"request_id":{"type":"string","example":"req_4f9a2e1b"},"details":{"type":"object","nullable":true}}}}},"BillingWallets":{"type":"object","properties":{"gc":{"type":"object","description":"Purchasing currency wallet only (1 GC = $1.00 USD).","properties":{"unit":{"type":"string","example":"GC"},"balance":{"type":"number","format":"float","example":25},"exchange_rate":{"type":"string","example":"1 GC = $1.00 USD"}}},"gt":{"type":"object","description":"Generation Tokens wallet used strictly for AI usage.","properties":{"unit":{"type":"string","example":"GT"},"monthly_gt_quota":{"type":"integer","example":80000},"monthly_gt_remaining":{"type":"number","format":"float","example":74500},"topup_gt_balance":{"type":"number","format":"float","example":12000},"reset_timestamp":{"type":"string","format":"date-time","nullable":true}}}}},"BrandDnaProfile":{"type":"object","properties":{"brand_name":{"type":"string","example":"Vismatix Studio"},"tagline":{"type":"string"},"voice_persona":{"type":"string","enum":["growth_strategist","technical_expert","storyteller","executive_leader","community_builder","provocateur"]},"target_audience":{"type":"string"},"tone_rules":{"type":"string"},"content_pillars":{"type":"array","items":{"type":"string"}},"forbidden_words":{"type":"array","items":{"type":"string"}},"arabic_register":{"type":"string","enum":["auto","msa","gulf","egyptian","levantine"]}}},"Post":{"type":"object","properties":{"id":{"type":"integer","example":42},"project_id":{"type":"integer","example":1},"platform_id":{"type":"integer","example":1},"title":{"type":"string","example":"Building resilient APIs with Laravel 13"},"description":{"type":"string","example":"Full breakdown of sub-millisecond caching..."},"scheduled_at":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["draft","scheduled","published"]},"is_evergreen":{"type":"boolean","example":true},"content_pillar":{"type":"string","nullable":true,"maxLength":120},"campaign":{"type":"string","nullable":true,"example":"Q4 Launch"},"tags":{"type":"string","nullable":true,"example":"#saas #api #laravel"},"readiness_score":{"type":"integer","example":95}}},"Project":{"type":"object","properties":{"id":{"type":"integer","example":1},"name":{"type":"string","example":"Vismatix Core"},"description":{"type":"string","example":"Main social media marketing workspace"},"user_id":{"type":"integer","example":10}}},"Task":{"type":"object","properties":{"id":{"type":"integer","example":5},"project_id":{"type":"integer","example":1},"title":{"type":"string","example":"Review weekly thread hooks"},"priority":{"type":"string","enum":["low","medium","high","urgent"]},"is_completed":{"type":"boolean","example":false},"due_date":{"type":"string","format":"date","nullable":true}}},"Idea":{"type":"object","properties":{"id":{"type":"integer","example":12},"project_id":{"type":"integer","example":1},"title":{"type":"string","example":"Viral thread about developer productivity tools"},"notes":{"type":"string","nullable":true},"is_drafted":{"type":"boolean","example":false}}},"Platform":{"type":"object","properties":{"id":{"type":"integer","example":1},"name":{"type":"string","example":"LinkedIn"},"color_code":{"type":"string","example":"#0A66C2"},"character_limit":{"type":"integer","example":3000},"supports_threads":{"type":"boolean","example":false},"supported_media":{"type":"array","items":{"type":"string"}}}},"HookScorerRequest":{"type":"object","required":["hook"],"properties":{"hook":{"type":"string","example":"3 secrets to scale your SaaS revenue by 300%..."},"locale":{"type":"string","enum":["en","ar","es","fr","de"],"default":"en"}}},"GeoAnalysisRequest":{"type":"object","required":["content"],"properties":{"content":{"type":"string","example":"Vismatix is the premier AI social orchestration engine..."},"url":{"type":"string","format":"uri","nullable":true}}}}},"security":[{"BearerToken":[]},{"ApiKeyHeader":[]}],"paths":{"\/health":{"get":{"summary":"Public System Health with Optional Admin Diagnostics","security":[],"parameters":[{"name":"verbose","in":"query","required":false,"schema":{"type":"boolean","default":false},"description":"Authenticated administrators may request infrastructure diagnostics."}],"responses":{"200":{"description":"Minimal public availability status.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/HealthResponse"}}}}}}},"\/platforms":{"get":{"summary":"List Supported Platforms with Publishing Constraints"}},"\/models":{"get":{"operationId":"listHoxiModels","tags":["Hoxi"],"summary":"List branded Hoxi models and plan eligibility","responses":{"200":{"description":"Branded model labels, selected default, and plan availability; no provider routing details"}}}},"\/hoxi\/context":{"get":{"operationId":"hoxiGetWorkspaceContext","tags":["Hoxi"],"summary":"Read compact Brand DNA, channel capabilities, Matrix availability, recent posts, and measured winners","parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Workspace-scoped Hoxi context; no content is created or sent"}}}},"\/hoxi\/matrix\/plan":{"post":{"operationId":"hoxiGenerateMatrixPlan","tags":["Hoxi"],"summary":"Generate a reviewed seven-day Matrix plan using shared workspace context","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["project_id"],"properties":{"project_id":{"type":"integer","minimum":1},"topic":{"type":"string","maxLength":500},"tone":{"type":"string","enum":["viral","professional","casual","educational","promotional","executive"]},"language":{"type":"string","enum":["ar","en","es","fr","de"]},"model":{"type":"string","enum":["2-hoxi","3.1-hoxi","4-hoxi"],"description":"Optional eligible action override; omitted uses the account default."}}}}}},"responses":{"200":{"description":"Hoxi plan preview; creation, scheduling, and publishing are separate actions"}}}},"\/hoxi\/matrix\/drafts":{"post":{"operationId":"hoxiCreateMatrixDrafts","tags":["Hoxi"],"summary":"Create explicitly confirmed drafts transactionally in open Golden Peak Matrix cells","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["project_id","confirm_drafts","posts"],"properties":{"project_id":{"type":"integer","minimum":1},"confirm_drafts":{"type":"boolean","enum":[true]},"posts":{"type":"array","minItems":1,"maxItems":15,"items":{"type":"object"}}}}}}},"responses":{"201":{"description":"Created draft posts; no item is scheduled or published"}}}},"\/hoxi\/inbox\/threads\/{id}\/reply-draft":{"post":{"operationId":"hoxiDraftInboxReply","tags":["Hoxi","Unified Social Inbox"],"summary":"Draft three brand-checked reply options that are never sent","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["2-hoxi","3.1-hoxi","4-hoxi"],"description":"Optional eligible action override; omitted uses the account default."}}}}}},"responses":{"200":{"description":"Three reply suggestions; sending remains a separate confirmed action"}}}},"\/hoxi\/inbox\/threads\/{id}\/insight-to-post":{"post":{"operationId":"hoxiInboxInsightToDraft","tags":["Hoxi","Unified Social Inbox"],"summary":"Convert an Inbox insight into a privacy-safe draft in an open Matrix cell","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["confirm_drafts"],"properties":{"confirm_drafts":{"type":"boolean","enum":[true]},"model":{"type":"string","enum":["2-hoxi","3.1-hoxi","4-hoxi"],"description":"Optional eligible action override; omitted uses the account default."},"brief":{"type":"string","maxLength":2000},"title":{"type":"string","maxLength":255},"description":{"type":"string","maxLength":20000},"platforms":{"type":"array","maxItems":10,"items":{"type":"string","maxLength":60}}}}}}},"responses":{"201":{"description":"Created draft; no customer identity or private message is included by default"}}}},"\/hoxi\/analytics\/posts\/{post}\/diagnose":{"post":{"operationId":"hoxiDiagnosePost","tags":["Hoxi","Analytics & Cadence"],"summary":"Generate a measured post-mortem using workspace winners and Matrix context","parameters":[{"name":"post","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["2-hoxi","3.1-hoxi","4-hoxi"],"description":"Optional eligible action override; omitted uses the account default."}}}}}},"responses":{"200":{"description":"Measured observations, comparison, confidence, and next steps"}}}},"\/hoxi\/analytics\/posts\/{post}\/repurpose":{"post":{"operationId":"hoxiRepurposeMeasuredWinner","tags":["Hoxi","Analytics & Cadence"],"summary":"Create confirmed draft-only variants from a measured winner in eligible open Golden Peak cells","parameters":[{"name":"post","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["confirm_drafts"],"properties":{"confirm_drafts":{"type":"boolean","enum":[true]},"project_id":{"type":"integer","minimum":1},"count":{"type":"integer","minimum":1,"maximum":5},"platform_ids":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":1}},"model":{"type":"string","enum":["2-hoxi","3.1-hoxi","4-hoxi"],"description":"Optional eligible action override; omitted uses the account default."}}}}}},"responses":{"201":{"description":"Drafts created in Matrix cells; never scheduled or published"}}}},"\/hoxi\/runs":{"post":{"operationId":"hoxiExecuteRun","tags":["Hoxi"],"summary":"Execute a synchronous or SSE-streamed Hoxi run; ULTRA AGENTIC requires prior confirmation and supports 3.1-hoxi or 4-hoxi only","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["project_id","prompt"],"properties":{"project_id":{"type":"integer","minimum":1},"prompt":{"type":"string","maxLength":4000},"model":{"type":"string","enum":["2-hoxi","3.1-hoxi","4-hoxi"],"description":"Hoxi 2 is available for standard runs; ULTRA AGENTIC requires 3.1-hoxi or 4-hoxi."},"ultra_agentic":{"type":"boolean","default":false,"description":"Requires the user to have enabled ULTRA AGENTIC through its warning and confirmation flow."},"locale":{"type":"string","enum":["en","ar","es","fr","de"],"default":"en"}}}}}},"responses":{"200":{"description":"Hoxi execution result with GT usage snapshot or text\/event-stream SSE"},"402":{"description":"Insufficient GT balance"},"403":{"description":"Missing hoxi:execute scope, required plan tier, or ULTRA AGENTIC consent"},"422":{"description":"Hoxi 2 is not supported for ULTRA AGENTIC runs"}}}},"\/account":{"get":{"summary":"Account Details & Aggregated Telemetry (vmtx_u_ only)"}},"\/account\/profile":{"put":{"summary":"Update Account Profile Name & Email (vmtx_u_ only)"}},"\/account\/settings":{"put":{"summary":"Update Settings & Preferences (vmtx_u_ only)"}},"\/projects":{"get":{"summary":"List Workspaces"},"post":{"summary":"Create New Workspace (vmtx_u_ only)"}},"\/projects\/{id}":{"get":{"summary":"Get Workspace Details"},"put":{"summary":"Update Workspace"},"delete":{"summary":"Delete Workspace (vmtx_u_ only)"}},"\/posts":{"get":{"summary":"List Posts with Editorial Readiness Guidance"},"post":{"summary":"Create Post with Editorial Readiness Heuristic"}},"\/posts\/batch":{"post":{"summary":"Atomic Batch Mutation for Up to 50 Posts"}},"\/posts\/stats":{"get":{"summary":"Aggregated Workspace Posts Analytics & Editorial Readiness Breakdown"}},"\/posts\/bulk-reschedule":{"post":{"summary":"Batch Shift Scheduled Post Timestamps"}},"\/matrix":{"get":{"operationId":"matrixGetGrid","tags":["84-Slot Matrix"],"summary":"Full 84-Cell Weekly Calendar Matrix Grid (filterable by week_start, status, destination, golden_peak)","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"type":"integer","minimum":1}},{"name":"week_start","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["copy_ready","draft","scheduled","published","failed"]}},{"name":"destination","in":"query","required":false,"schema":{"type":"string"}},{"name":"golden_peak","in":"query","required":false,"schema":{"type":"boolean"}}]}},"\/matrix\/golden-peak":{"get":{"operationId":"matrixGoldenPeak","tags":["84-Slot Matrix"],"summary":"Recommended Golden Peak slots & open weekly windows"}},"\/matrix\/slots":{"get":{"operationId":"matrixListSlots","tags":["84-Slot Matrix"],"summary":"Fast Query Matrix Slots by Day or Peak Status"},"post":{"operationId":"matrixCreateSlot","tags":["84-Slot Matrix"],"summary":"Schedule or draft a copy_ready slot across any of the 17 destinations (even with 0 connected channels)"}},"\/matrix\/slots\/{slotId}":{"patch":{"operationId":"matrixUpdateSlot","tags":["84-Slot Matrix"],"summary":"Update or reschedule an existing Matrix slot\/post"},"delete":{"operationId":"matrixDeleteSlot","tags":["84-Slot Matrix"],"summary":"Delete a draft or scheduled post from a Matrix slot"}},"\/matrix\/batch":{"post":{"operationId":"matrixBatchPopulate","tags":["84-Slot Matrix"],"summary":"Atomically populate up to 84 weekly Matrix slots (supports ?dry_run=true)"}},"\/matrix\/stats":{"get":{"summary":"Matrix Occupancy, Peak Utilization, and Slot Statistics"}},"\/matrix\/auto-schedule":{"post":{"summary":"Auto-Schedule Draft Posts into High-Engagement Slots"}},"\/billing\/wallets":{"get":{"operationId":"billingGetWallets","tags":["Billing & Tokens"],"summary":"Inspect separated GC purchasing currency (1 GC = $1.00 USD) and GT AI usage token balances"}},"\/billing\/ledger":{"get":{"operationId":"billingGetLedger","tags":["Billing & Tokens"],"summary":"Cursor-paginated GC & GT billing ledger (?type=gc|gt&cursor=...&limit=25)","parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["all","gc","gt"]}},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","minimum":1}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}]}},"\/brand-dna":{"get":{"operationId":"brandDnaShow","tags":["Brand DNA"],"summary":"Retrieve active workspace Brand DNA & Brand Kit configuration"},"patch":{"operationId":"brandDnaUpdate","tags":["Brand DNA"],"summary":"Update workspace Brand DNA & Brand Kit rules"}},"\/brand-dna\/extract":{"post":{"operationId":"brandDnaExtract","tags":["Brand DNA"],"summary":"Extract Brand DNA from a public URL (SSRF-hardened) or business brief and optionally save to Brand Kit"}},"\/approvals":{"post":{"operationId":"approvalsCreateLink","tags":["Client Approvals"],"summary":"Create a Zero-Login Magic Client Approval Link (\/approve\/{token})"}},"\/approvals\/{approvalId}":{"get":{"operationId":"approvalsGetStatus","tags":["Client Approvals"],"summary":"Check approval link status and reviewer decisions"}},"\/approvals\/{approvalId}\/revoke":{"post":{"operationId":"approvalsRevokeLink","tags":["Client Approvals"],"summary":"Revoke an active client approval link immediately"}},"\/destinations":{"get":{"operationId":"destinationsList","tags":["Publishing Destinations"],"summary":"List all 17 active publishing destinations (6 Direct API + 11 Social Agent) with zero-leak connection status"}},"\/publish\/dispatch":{"post":{"operationId":"publishDispatch","tags":["Publishing Destinations"],"summary":"Dispatch a ready post or Matrix slot to the publisher pipeline"}},"\/tasks":{"get":{"summary":"List Tasks"},"post":{"summary":"Create Task"}},"\/ideas":{"get":{"summary":"List Ideas Scratchpad"},"post":{"summary":"Create Idea"}},"\/webhooks":{"get":{"summary":"List Webhooks"},"post":{"summary":"Create Webhook"}},"\/analytics\/overview":{"get":{"operationId":"analyticsWorkspaceOverview","tags":["Analytics & Cadence"],"summary":"Read workspace cadence and measured post-publish engagement KPIs","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"type":"integer","minimum":1}},{"name":"period","in":"query","required":false,"schema":{"type":"string","enum":["7d","30d","90d","all_time"],"default":"30d"}}],"responses":{"200":{"description":"Workspace KPIs, period comparison, trend, platform breakdown, and best measured Matrix slot"}}}},"\/analytics\/posts":{"get":{"operationId":"analyticsListPublishedPosts","tags":["Analytics & Cadence"],"summary":"List and sort published posts with measured engagement rollups","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"type":"integer","minimum":1}},{"name":"period","in":"query","required":false,"schema":{"type":"string","enum":["7d","30d","90d","all_time"],"default":"30d"}},{"name":"platform","in":"query","required":false,"schema":{"type":"string","enum":["x","twitter","instagram","facebook","linkedin","tiktok","youtube","pinterest","threads"]}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["engagement_rate","reach","comments","shares","clicks","impressions","engagements"]}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1}},{"name":"format","in":"query","required":false,"schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"Paginated published posts with latest measured metrics, or a CSV attachment"}}}},"\/analytics\/sync":{"post":{"operationId":"analyticsQueueWorkspaceSync","tags":["Analytics & Cadence"],"summary":"Queue a rate-limited refresh of published post metrics for one workspace","parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"202":{"description":"Workspace refresh queued"}}}},"\/analytics\/posts\/{post}\/sync":{"post":{"operationId":"analyticsSyncPublishedPost","tags":["Analytics & Cadence"],"summary":"Rate-limited sync for one accessible published post","parameters":[{"name":"post","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"project_id","in":"query","required":false,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Provider metrics and post rollup; unsupported or disconnected providers are identified explicitly"}}}},"\/analytics\/posts\/{post}\/diagnose":{"post":{"operationId":"analyticsDiagnosePublishedPost","tags":["Analytics & Cadence"],"summary":"Ask Hoxi for a post-mortem grounded in captured metrics","parameters":[{"name":"post","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"Measured observations, comparison, confidence, and next steps"}}}},"\/analytics\/posts\/{post}\/repurpose":{"post":{"operationId":"analyticsRepurposeWinnerToDrafts","tags":["Analytics & Cadence"],"summary":"Create draft-only Hoxi variants in eligible open Golden Peak Matrix cells","parameters":[{"name":"post","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":5},"platform_ids":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"integer","minimum":1}}}}}}},"responses":{"201":{"description":"Created drafts and any skipped variants; no post is scheduled or published"}}}},"\/analytics\/heatmap":{"get":{"operationId":"analyticsMatrixHeatmap","tags":["Analytics & Cadence"],"summary":"Read measured engagement intensity over the 7\u00d712 Matrix","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"type":"integer","minimum":1}},{"name":"period","in":"query","required":false,"schema":{"type":"string","enum":["7d","30d","90d","all_time"],"default":"all_time"}}],"responses":{"200":{"description":"Slot occupancy, measured engagement, reach, impressions, and best-performing slot"}}}},"\/templates":{"get":{"summary":"Content Framework Templates"}},"\/templates\/categories":{"get":{"summary":"List Curated Framework Categories"}},"\/templates\/{id}\/apply":{"post":{"summary":"Instantiate Template into Workspace Post"}},"\/notifications":{"get":{"summary":"List In-App Notifications and Delivery Alerts"}},"\/notifications\/unread-count":{"get":{"summary":"Fast Unread Notification Count Badge"}},"\/inbox\/threads":{"get":{"operationId":"inboxListThreads","tags":["Unified Social Inbox"],"summary":"List workspace inbox conversations with smart queue filters","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"type":"integer","minimum":1}},{"name":"queue","in":"query","required":false,"schema":{"type":"string","enum":["all_open","unassigned","assigned_to_me","hot_leads","urgent_complaints","resolved"]}},{"name":"platform","in":"query","required":false,"schema":{"type":"string","enum":["x","instagram","facebook","linkedin","tiktok","youtube"]}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["dm","comment","mention"]}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}]}},"\/inbox\/stats":{"get":{"operationId":"inboxGetStats","tags":["Unified Social Inbox"],"summary":"Get unread, open, unassigned, hot lead, and urgent complaint counts","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"type":"integer","minimum":1}}]}},"\/inbox\/accounts":{"get":{"operationId":"inboxListAccounts","tags":["Unified Social Inbox"],"summary":"List workspace inbox channel connection states"},"post":{"operationId":"inboxConfigureAccount","tags":["Unified Social Inbox"],"summary":"Configure a workspace inbox account and one-time signed-ingest secret"}},"\/inbox\/saved-replies":{"get":{"operationId":"inboxListSavedReplies","tags":["Unified Social Inbox"],"summary":"List workspace saved reply shortcuts"},"post":{"operationId":"inboxSaveReply","tags":["Unified Social Inbox"],"summary":"Create or update a workspace saved reply","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["title","shortcut","body"],"properties":{"project_id":{"type":"integer","minimum":1},"title":{"type":"string","maxLength":191},"shortcut":{"type":"string","pattern":"^\/[a-zA-Z0-9_-]{2,40}$"},"body":{"type":"string","maxLength":10000},"category":{"type":"string","maxLength":64}}}}}}}},"\/inbox\/saved-replies\/{id}":{"put":{"operationId":"inboxUpdateSavedReply","tags":["Unified Social Inbox"],"summary":"Update a saved reply in the selected workspace","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"project_id","in":"query","required":false,"schema":{"type":"integer","minimum":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["title","shortcut","body"],"properties":{"title":{"type":"string","maxLength":191},"shortcut":{"type":"string","pattern":"^\/[a-zA-Z0-9_-]{2,40}$"},"body":{"type":"string","maxLength":10000},"category":{"type":"string","maxLength":64}}}}}}},"delete":{"operationId":"inboxDeleteSavedReply","tags":["Unified Social Inbox"],"summary":"Delete a saved reply that is not referenced by an automation rule","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"project_id","in":"query","required":false,"schema":{"type":"integer","minimum":1}}]}},"\/inbox\/automation-rules":{"get":{"operationId":"inboxListAutomationRules","tags":["Unified Social Inbox"],"summary":"List eligible-plan workspace inbox automation rules"},"post":{"operationId":"inboxCreateAutomationRule","tags":["Unified Social Inbox"],"summary":"Create an eligible-plan workspace inbox automation rule","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["name","trigger_type","trigger_value","action_type"],"properties":{"project_id":{"type":"integer","minimum":1},"name":{"type":"string","maxLength":191},"is_active":{"type":"boolean","default":true},"trigger_type":{"type":"string","enum":["keyword","intent","sentiment","platform"]},"trigger_value":{"type":"string","maxLength":191},"action_type":{"type":"string","enum":["assign_user","tag","mark_priority","mark_spam","draft_hoxi_reply","draft_saved_reply"]},"action_payload":{"type":"object","properties":{"tag":{"type":"string","maxLength":48},"priority":{"type":"string","enum":["urgent","high","normal","low"]},"user_id":{"type":"integer","minimum":1},"saved_reply_id":{"type":"integer","minimum":1}}}}}}}}}},"\/inbox\/automation-rules\/{id}":{"put":{"operationId":"inboxUpdateAutomationRule","tags":["Unified Social Inbox"],"summary":"Update an eligible-plan workspace inbox automation rule","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"project_id","in":"query","required":false,"schema":{"type":"integer","minimum":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["name","trigger_type","trigger_value","action_type"],"properties":{"name":{"type":"string","maxLength":191},"is_active":{"type":"boolean"},"trigger_type":{"type":"string","enum":["keyword","intent","sentiment","platform"]},"trigger_value":{"type":"string","maxLength":191},"action_type":{"type":"string","enum":["assign_user","tag","mark_priority","mark_spam","draft_hoxi_reply","draft_saved_reply"]},"action_payload":{"type":"object","properties":{"tag":{"type":"string","maxLength":48},"priority":{"type":"string","enum":["urgent","high","normal","low"]},"user_id":{"type":"integer","minimum":1},"saved_reply_id":{"type":"integer","minimum":1}}}}}}}}},"delete":{"operationId":"inboxDeleteAutomationRule","tags":["Unified Social Inbox"],"summary":"Delete an eligible-plan workspace inbox automation rule","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"project_id","in":"query","required":false,"schema":{"type":"integer","minimum":1}}]}},"\/inbox\/ingest":{"post":{"operationId":"inboxIngestNormalizedEvent","tags":["Unified Social Inbox"],"summary":"Ingest a normalized workspace inbox event"}},"\/inbox\/threads\/{id}":{"get":{"operationId":"inboxGetThread","tags":["Unified Social Inbox"],"summary":"Read one thread and its chronological messages","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}]}},"\/inbox\/threads\/{id}\/messages":{"get":{"operationId":"inboxListMessages","tags":["Unified Social Inbox"],"summary":"List chronological messages for a workspace-scoped thread","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}]}},"\/inbox\/threads\/{id}\/reply":{"post":{"operationId":"inboxReply","tags":["Unified Social Inbox"],"summary":"Queue an outbound reply after explicit confirmation, or add a private internal note","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["body"],"properties":{"body":{"type":"string","maxLength":20000},"internal_note":{"type":"boolean"},"confirm_send":{"type":"boolean","description":"Required as true for outbound replies after explicit user approval."}}}}}}}},"\/inbox\/threads\/{id}\/ai-suggest":{"post":{"operationId":"inboxAiSuggestReplies","tags":["Unified Social Inbox"],"summary":"Generate three Brand Kit-checked Hoxi reply suggestions","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["2-hoxi","3.1-hoxi","4-hoxi"],"description":"Optional eligible model override; omitted uses the account default."}}}}}}}},"\/inbox\/threads\/{id}\/summarize":{"post":{"operationId":"inboxSummarizeThread","tags":["Unified Social Inbox"],"summary":"Summarize the customer thread and store an AI summary","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["2-hoxi","3.1-hoxi","4-hoxi"],"description":"Optional eligible model override; omitted uses the account default."}}}}}}}},"\/inbox\/threads\/{id}\/convert-to-post":{"post":{"operationId":"inboxConvertToPost","tags":["Unified Social Inbox"],"summary":"Create a draft attached to an available weekly matrix cell; does not schedule or publish","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["2-hoxi","3.1-hoxi","4-hoxi"],"description":"Optional eligible model override; omitted uses the account default."},"brief":{"type":"string","maxLength":2000},"title":{"type":"string","maxLength":255},"description":{"type":"string","maxLength":20000},"platforms":{"type":"array","items":{"type":"string"}}}}}}}}},"\/inbox\/threads\/{id}\/assign":{"post":{"operationId":"inboxAssignThread","tags":["Unified Social Inbox"],"summary":"Assign a thread to an accepted workspace member","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}]}},"\/inbox\/threads\/{id}\/mark-read":{"post":{"operationId":"inboxMarkThreadRead","tags":["Unified Social Inbox"],"summary":"Clear unread count for a workspace-scoped thread","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}]}},"\/inbox\/threads\/{id}\/status":{"patch":{"operationId":"inboxSetThreadStatus","tags":["Unified Social Inbox"],"summary":"Set a thread status to open, pending, resolved, or spam","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}]}},"\/inbox\/threads\/{id}\/presence":{"post":{"operationId":"inboxHeartbeat","tags":["Unified Social Inbox"],"summary":"Publish a short-lived workspace teammate viewing or typing heartbeat","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}}]}},"\/wallet":{"get":{"operationId":"walletOverview","tags":["Wallet & Credits"],"summary":"Read GC purchasing currency and separate Monthly Plan GT \/ Top-Up GT balances"}},"\/wallet\/transactions":{"get":{"operationId":"walletTransactions","tags":["Wallet & Credits"],"summary":"Read paginated ledger entries with GC or GT unit labels","parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1}}]}},"\/wallet\/redeem":{"post":{"summary":"Redeem Gift Code or Voucher Credits"}},"\/geo\/analyze":{"post":{"summary":"Generative Engine Optimization Content Scoring"}},"\/geo\/guidelines":{"get":{"summary":"AI Search Guidelines and Crawler Registry"}},"\/ai\/generate":{"post":{"summary":"AI Copilot Content Generation"}},"\/ai\/hook-scorer":{"post":{"summary":"Instant Algorithmic Hook & Virality Scoring"}},"\/ai\/suggest-hashtags":{"post":{"summary":"AI Hashtag Suggestions by Topic and Target Audience"}},"\/ai\/improve":{"post":{"summary":"AI Copy Polish and Multi-Platform Adaptation"}},"\/ai\/optimal-times":{"post":{"summary":"AI Optimal Posting Time Recommendations by Platform"}}}}