{"openapi":"3.1.0","info":{"title":"Post My Cut","description":"Send original creator media to connected social accounts. See /agents for authentication and examples.","version":"1.0"},"paths":{"/auth/signup":{"post":{"summary":"Signup","operationId":"signup_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credentials"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credentials"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/me":{"get":{"summary":"Me","operationId":"me_api_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"summary":"Delete Workspace","operationId":"delete_workspace_api_me_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/key":{"post":{"summary":"Key","description":"Rotate the workspace's default agent key.","operationId":"key_api_key_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/keys":{"get":{"summary":"List Keys","operationId":"list_keys_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Key","operationId":"create_key_api_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentKeyName"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/keys/{key_id}":{"delete":{"summary":"Revoke Key","operationId":"revoke_key_api_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts":{"get":{"summary":"Accounts","operationId":"accounts_api_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/accounts/{account_id}/label":{"get":{"summary":"Get Account Label","description":"Read this connected account's private workspace label and revision.","operationId":"get_account_label_api_accounts__account_id__label_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/State"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Set Account Label","description":"Set or explicitly clear the private label. The original platform identity remains authoritative.","operationId":"set_account_label_api_accounts__account_id__label_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/account_labels__Edit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/State"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connect/{platform}":{"get":{"summary":"Oauth Start","operationId":"oauth_start_connect__platform__get","parameters":[{"name":"platform","in":"path","required":true,"schema":{"enum":["tiktok","instagram"],"type":"string","title":"Platform"}},{"name":"metrics","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Metrics"}},{"name":"measurement_profile_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Measurement Profile Id"}},{"name":"reconnect_account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reconnect Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/{platform}/callback":{"get":{"summary":"Oauth Callback","operationId":"oauth_callback_oauth__platform__callback_get","parameters":[{"name":"platform","in":"path","required":true,"schema":{"enum":["tiktok","instagram"],"type":"string","title":"Platform"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}":{"delete":{"summary":"Disconnect","operationId":"disconnect_api_accounts__account_id__delete","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts":{"post":{"summary":"Create Draft","description":"Save work in progress, including text-only drafts. This does not queue a delivery.","operationId":"create_draft_api_drafts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Drafts","description":"List drafts by latest edit. Use the last draft ID as before for the next page.","operationId":"list_drafts_api_drafts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DraftSummary"},"title":"Response List Drafts Api Drafts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/drafts/{draft_id}":{"get":{"summary":"Get Draft","operationId":"get_draft_api_drafts__draft_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Draft","description":"Replace the saved title, caption and media order using the version last read.","operationId":"update_draft_api_drafts__draft_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Draft","description":"Remove the authoring draft. Its uploads and any separately created deliveries stay available.","operationId":"delete_draft_api_drafts__draft_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"version","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/upload-receipt":{"post":{"summary":"Get Upload Receipt","description":"Recover a completed upload in the original workspace and delivery scope. Optionally verify its exact bytes and type.","operationId":"get_upload_receipt_api_media_upload_receipt_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadLookup"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletedUpload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/media/upload-instructions":{"get":{"summary":"Get Upload Instructions","operationId":"get_upload_instructions_api_media_upload_instructions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/media":{"post":{"summary":"Upload","description":"Optionally send an Idempotency-Key and lowercase hex X-Content-SHA256 to reuse this upload on retry. Use X-Upload-Digest: server instead to compute the checksum during upload.","operationId":"upload_api_media_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":240},{"type":"null"}],"title":"Name"}},{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"title":"Idempotency-Key"}},{"name":"x-upload-digest","in":"header","required":false,"schema":{"anyOf":[{"const":"server","type":"string"},{"type":"null"}],"title":"X-Upload-Digest"}},{"name":"x-content-sha256","in":"header","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}],"title":"X-Content-Sha256"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"required":true,"content":{"video/mp4":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}}}}},"get":{"summary":"List Media","description":"List uploads by ID. Search by filename or ID. Pass the last ID as before for the next page.","operationId":"list_media_api_media_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":240,"default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"newest_first","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Newest First"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/{identifier}":{"delete":{"summary":"Delete Media","operationId":"delete_media_api_media__identifier__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/media/usage":{"get":{"summary":"Media Usage","description":"Storage reserved by all uploads in this workspace, including transfers in progress.","operationId":"media_usage_api_media_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/media/{identifier}/content":{"get":{"summary":"Preview Media","description":"Preview an upload within its own workspace.","operationId":"preview_media_api_media__identifier__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posts":{"post":{"summary":"Create Post","description":"Reserve a delivery. Its requested_by and requested_at identify the original authenticated request.","operationId":"create_post_api_posts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"idempotency-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewPost"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostReceipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Posts","operationId":"list_posts_api_posts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"enum":["queued","awaiting_approval","sent","landed_as_draft","published","failed","cancelled"],"type":"string"},{"type":"null"}],"title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PostReceipt"},"title":"Response List Posts Api Posts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posts/{post_id}":{"get":{"summary":"Get Post","operationId":"get_post_api_posts__post_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostReceipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/delivery-receipt":{"get":{"summary":"Get Receipt By Key","description":"Recover a delivery by its original Idempotency-Key when its post ID was not saved.","operationId":"get_receipt_by_key_api_delivery_receipt_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"idempotency-key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostReceipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posts/{post_id}/cancel":{"post":{"summary":"Cancel","description":"Keep a record of a cancelled delivery. Once dispatch begins it cannot be recalled.","operationId":"cancel_api_posts__post_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostVersion"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostReceipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posts/{post_id}/reschedule":{"post":{"summary":"Reschedule","description":"Change delivery time before dispatch. Changing a schedule on a delivery that requires review invalidates its previous approval.","operationId":"reschedule_api_posts__post_id__reschedule_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reschedule"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostReceipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posts/{post_id}/preview":{"get":{"summary":"Preview","operationId":"preview_api_posts__post_id__preview_get","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/posts/{post_id}/approve":{"post":{"summary":"Approve","operationId":"approve_api_posts__post_id__approve_post","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Approval"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostReceipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reports/deliveries":{"get":{"summary":"Delivery Report","description":"Count each delivery created in the window once, grouped by its current state and platform.","operationId":"delivery_report_api_reports_deliveries_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"description":"Number of rolling 24-hour periods, ending now.","default":7,"title":"Days"},"description":"Number of rolling 24-hour periods, ending now."},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/recovery-code":{"post":{"tags":["Creator sign-in"],"summary":"Issue","description":"Replace this creator's recovery code after checking their current password. Save the code now.","operationId":"issue_api_me_recovery_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordConfirmation"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/recover":{"post":{"tags":["Creator sign-in"],"summary":"Recover","description":"Use a previously saved code to set a new password and sign in on this browser.","operationId":"recover_auth_recover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recovery"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/releasable-media":{"get":{"tags":["Media"],"summary":"List Releasable Media","description":"Preview pinned uploads used only by completed deliveries to this account. Totals cover all pages.","operationId":"list_releasable_media_api_accounts__account_id__releasable_media_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/media_release__Page"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/release-media":{"post":{"tags":["Media"],"summary":"Release Completed Media","description":"Release selected files atomically. Replaying a released ID in the same account returns its original byte count.","operationId":"release_completed_media_api_accounts__account_id__release_media_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Selection"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Release"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/history-checks/{run_id}":{"put":{"tags":["Performance"],"summary":"Record","operationId":"record_api_accounts__account_id__history_checks__run_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Check"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/history_checks__Receipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/history-checks":{"get":{"tags":["Performance"],"summary":"Read","operationId":"read_api_accounts__account_id__history_checks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"source","in":"query","required":true,"schema":{"enum":["post_bridge","pipeline"],"type":"string","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/history_checks__Summary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/history-setup/sources":{"get":{"tags":["Performance"],"summary":"List Sources","description":"List this workspace's exact Post Bridge bindings and canonical measured Pipeline source candidates.","operationId":"list_sources_api_history_setup_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sources"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/history-setup/manifest":{"post":{"tags":["Performance"],"summary":"Make Manifest","description":"Validate explicitly selected sources and return profiles.json for the downloaded history kit.","operationId":"make_manifest_api_history_setup_manifest_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Manifest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Manifest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/posts/{post_id}/tiktok-publication":{"post":{"summary":"Refresh","description":"Read the existing TikTok publish ticket once, and merge newly confirmed publication into this receipt.","operationId":"refresh_api_posts__post_id__tiktok_publication_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationCheck"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ideas":{"post":{"tags":["Ideas"],"summary":"Capture Idea","description":"Capture private text with optional exact source_daily, source_watch or source_reading evidence. The target profile is independent. Supply a stable capture_id when retrying.","operationId":"capture_idea_api_ideas_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ideas__Capture"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Idea"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Ideas"],"summary":"List Ideas","description":"Filter current draft and delivery links independently of the idea state. Browse newest captures first. Match authored text literally, or an exact source post ID or full TikTok post URL. Pass next_before to continue.","operationId":"list_ideas_api_ideas_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":2048,"description":"Idea text, an exact cited post ID or a full TikTok post URL.","default":"","title":"Q"},"description":"Idea text, an exact cited post ID or a full TikTok post URL."},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"enum":["inbox","shortlisted","used","archived"],"type":"string"},{"type":"null"}],"title":"State"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"unassigned_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unassigned Only"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":9223372036854775807,"minimum":1},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"production","in":"query","required":false,"schema":{"anyOf":[{"enum":["no_draft_or_delivery","has_draft","has_delivery"],"type":"string"},{"type":"null"}],"title":"Production"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ideas__Page"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ideas/by-link/{link_id}":{"get":{"tags":["Ideas"],"summary":"Get Idea By Link","description":"Resolve a private workspace link without reading other ideas. The link grants no access.","operationId":"get_idea_by_link_api_ideas_by_link__link_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Idea"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ideas/{idea_id}":{"get":{"tags":["Ideas"],"summary":"Get Idea","operationId":"get_idea_api_ideas__idea_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"idea_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Idea Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Idea"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Ideas"],"summary":"Update Idea","description":"Edit the thought, move it to an account or mark its progress. Pass its last read version.","operationId":"update_idea_api_ideas__idea_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"idea_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Idea Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ideas__Edit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Idea"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Ideas"],"summary":"Delete Idea","description":"Permanently remove an idea after checking its saved version. Archive keeps it searchable.","operationId":"delete_idea_api_ideas__idea_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"idea_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Idea Id"}},{"name":"version","in":"query","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":1,"title":"Version"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ideas/{idea_id}/working-draft":{"put":{"tags":["Ideas"],"summary":"Start Idea Draft","description":"Open the linked private draft, or start one from this inbox/shortlisted idea's current version.","operationId":"start_idea_draft_api_ideas__idea_id__working_draft_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"idea_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Idea Id"}},{"name":"version","in":"query","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":1,"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/idea_work__WorkingDraft"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ideas/{idea_id}/deliveries":{"get":{"tags":["Ideas"],"summary":"Get Idea Deliveries","description":"Read this idea's actual submissions newest first. Each page includes current receipts and independent exact-account measurements.","operationId":"get_idea_deliveries_api_ideas__idea_id__deliveries_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"idea_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Idea Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/idea_deliveries__Page"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/brief":{"get":{"tags":["Creator briefs"],"summary":"Get Brief","description":"Read this profile's private audience and voice guidance, including imported histories. A null brief means none is set.","operationId":"get_brief_api_accounts__account_id__brief_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBrief"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Creator briefs"],"summary":"Set Brief","description":"Replace or clear guidance. Exact retries preserve the last editor, timestamp and version.","operationId":"set_brief_api_accounts__account_id__brief_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBrief"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/post-batches/preview":{"post":{"tags":["Multi-account delivery"],"summary":"Preview Batch","description":"Check a proposed new batch without reserving deliveries or contacting platforms.\nEach destination includes its first blocking local issue. Create checks again in its transaction.\nFor a prior batch submission, retry its original key to recover its receipt.","operationId":"preview_batch_api_post_batches_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/post-batches":{"post":{"tags":["Multi-account delivery"],"summary":"Create Batch","description":"Create every delivery in one local transaction. An exact retry returns the same children and current states.","operationId":"create_batch_api_post_batches_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"idempotency-key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchReceipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/post-batches/{batch_id}":{"get":{"tags":["Multi-account delivery"],"summary":"Get Batch","description":"Read current states, per-account results and creator review links for a delivery batch.","operationId":"get_batch_api_post_batches__batch_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchReceipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/post-search":{"post":{"tags":["Deliveries"],"summary":"Search","description":"Search current receipts by account, status and literal caption fragment or exact receipt ID.\nResults are newest-created first across all dates. Send next_cursor with the same filters for older matches.","operationId":"search_api_post_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Search"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/post_search__Page"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/accounts/{account_id}/metrics/sync":{"post":{"summary":"Sync Account Metrics","description":"Import one page of a connected account's TikTok video counters or Instagram media insights.","operationId":"sync_account_metrics_api_accounts__account_id__metrics_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncPage","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/metrics/schedule":{"get":{"tags":["Metric collection"],"summary":"Get Schedule","description":"Read collection settings and progress. New accounts start with automatic collection off.","operationId":"get_schedule_api_accounts__account_id__metrics_schedule_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Metric collection"],"summary":"Set Schedule","description":"Opt in, change cadence, turn off, or resume a paused collection with its current version.","operationId":"set_schedule_api_accounts__account_id__metrics_schedule_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator-review":{"get":{"tags":["Creator review"],"summary":"Review","description":"Review adjacent publication cohorts, current approvals and failures, and notes overlapping either period.","operationId":"review_api_creator_review_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":3652059,"minimum":1,"description":"Number of inclusive UTC dates. Both this period and its preceding comparison must fit the calendar.","default":7,"title":"Days"},"description":"Number of inclusive UTC dates. Both this period and its preceding comparison must fit the calendar."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last inclusive UTC publication date. Defaults to the last complete UTC day.","title":"End"},"description":"Last inclusive UTC publication date. Defaults to the last complete UTC day."},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"at_age","in":"query","required":false,"schema":{"anyOf":[{"enum":["24h","48h","72h","7d"],"type":"string"},{"type":"null"}],"title":"At Age"}},{"name":"rank_by","in":"query","required":false,"schema":{"enum":["views","likes","comments","shares","saves","likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"],"type":"string","default":"views","title":"Rank By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorReview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator-review.md":{"get":{"tags":["Creator review"],"summary":"Download","operationId":"download_api_creator_review_md_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":3652059,"minimum":1,"description":"Number of inclusive UTC dates. Both this period and its preceding comparison must fit the calendar.","default":7,"title":"Days"},"description":"Number of inclusive UTC dates. Both this period and its preceding comparison must fit the calendar."},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Last inclusive UTC publication date. Defaults to the last complete UTC day.","title":"End"},"description":"Last inclusive UTC publication date. Defaults to the last complete UTC day."},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"at_age","in":"query","required":false,"schema":{"anyOf":[{"enum":["24h","48h","72h","7d"],"type":"string"},{"type":"null"}],"title":"At Age"}},{"name":"rank_by","in":"query","required":false,"schema":{"enum":["views","likes","comments","shares","saves","likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"],"type":"string","default":"views","title":"Rank By"}}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/delivery-events":{"get":{"tags":["Delivery events"],"summary":"List Events","description":"Read committed events in workspace sequence order. Omit cursor for retained history, or pass latest to start now.\nPersist next_cursor after processing even when items is empty. Reuse the same account/post filters.","operationId":"list_events_api_delivery_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Cursor"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"post_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/calendar":{"get":{"summary":"Search Calendar","description":"Chronological deliveries in [start, end), up to 93 days. Immediate posts use their creation time.\nSearch a literal caption fragment or exact post ID. Continue with next_cursor and the same filters.","operationId":"search_calendar_api_calendar_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"End"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"enum":["tiktok","instagram"],"type":"string"},{"type":"null"}],"title":"Platform"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"enum":["queued","awaiting_approval","sent","landed_as_draft","published","failed","cancelled"],"type":"string"},{"type":"null"}],"title":"State"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":240,"default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/observations/preview":{"post":{"summary":"Preview Observations","description":"Check 1–100 import observations in input order. A conflict anywhere would abort an atomic write.\nWith no conflicts, submit the missing rows. Later source or target changes can affect a future write.","operationId":"preview_observations_api_performance_observations_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationBatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/performance/observations":{"post":{"summary":"Record Observations","description":"Atomically import 1–100 lifetime snapshots. Exact retries are safe. Missing counters remain unknown.","operationId":"record_observations_api_performance_observations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationBatch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/performance__Receipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/performance":{"get":{"summary":"Get Report","description":"Rank posts published in inclusive UTC dates. By default use the latest snapshot through as_of.\nat_age selects the closest actual observation within 12 hours of the target for posts old enough by as_of.","operationId":"get_report_api_performance_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date","title":"End"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"rank_by","in":"query","required":false,"schema":{"enum":["views","likes","comments","shares","saves","likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"],"type":"string","default":"views","title":"Rank By"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"at_age","in":"query","required":false,"schema":{"anyOf":[{"enum":["24h","48h","72h","7d"],"type":"string"},{"type":"null"}],"title":"At Age"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerformanceReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/history":{"get":{"summary":"Get History","description":"Read chronological measurements for one platform post. Optional observation times use [start,end).","operationId":"get_history_api_performance_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"external_post_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[^\\s/?#]+$","title":"External Post Id"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":240},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/performance__HistoryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/watch-observations":{"post":{"tags":["Watch retention"],"summary":"Record Watch Observations","description":"Atomically record exact owner captures. Identical retries are unchanged; conflicting readings at the same instant return 409.","operationId":"record_watch_observations_api_performance_watch_observations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Import"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportReceipt"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/performance/watch-history":{"get":{"tags":["Watch retention"],"summary":"Get Watch History","description":"Read individual native Studio curves, their largest adjacent-sample drops and capture ages. Continue with next_before and the same as_of.","operationId":"get_watch_history_api_performance_watch_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"external_post_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[^\\s/?#]+$","title":"External Post Id"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":1,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/watch_retention__HistoryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/watch-report":{"get":{"tags":["Watch retention"],"summary":"Get Watch Report","description":"Compare exact sampled hold and within-post drops across two UTC publication cohorts. Age matching selects\nthe closest mature capture within ±12h. Each metric counts its contributing confirmed videos. A nonempty\nmeasured comparison supplies a reference that can be attached to a private dated analytics note.","operationId":"get_watch_report_api_performance_watch_report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date","title":"End"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"rank_second","in":"query","required":false,"schema":{"type":"integer","maximum":5,"minimum":1,"description":"Exact sampled second used to rank videos. Choose 1, 3 or 5.","default":3,"title":"Rank Second"},"description":"Exact sampled second used to rank videos. Choose 1, 3 or 5."},{"name":"at_age","in":"query","required":false,"schema":{"anyOf":[{"enum":["24h","48h","72h","7d"],"type":"string"},{"type":"null"}],"title":"At Age"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/watch-examples":{"get":{"tags":["Watch retention"],"summary":"List Watch Examples","description":"Rank by hold at this exact second or by measured drop from the preceding checkpoint (0→1, 1→3, 3→5).\nDrop order requires both points on the same selected Studio capture. Engagement has a separate age-matched reading.\nPage using the returned as_of, digest and next_offset. Changed historical data or filters return 409 until restarted.","operationId":"list_watch_examples_api_performance_watch_examples_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date","title":"End"}},{"name":"at_age","in":"query","required":true,"schema":{"enum":["24h","48h","72h","7d"],"type":"string","title":"At Age"}},{"name":"rank_second","in":"query","required":false,"schema":{"type":"integer","maximum":5,"minimum":1,"description":"Exact sampled second used to rank videos. Choose 1, 3 or 5.","default":3,"title":"Rank Second"},"description":"Exact sampled second used to rank videos. Choose 1, 3 or 5."},{"name":"order","in":"query","required":false,"schema":{"enum":["strongest","weakest","largest_drop","smallest_drop"],"type":"string","default":"strongest","title":"Order"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"digest","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}],"title":"Digest"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/watch_examples__Page"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/age-growth":{"get":{"tags":["Performance"],"summary":"Get Post Age Growth","description":"Rank measured changes per post published on inclusive UTC dates. Both ages must be reached.\nEach independent nearest reading must be chronological, match source kind and label, and contain the metric.\nCoverage starts with currently known publications through as_of. Early/late counts use only mature posts.\nReuse as_of and digest with next_offset. Historical backfills that change results require restarting.","operationId":"get_post_age_growth_api_performance_age_growth_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date","title":"End"}},{"name":"from_age","in":"query","required":false,"schema":{"enum":["24h","48h","72h","7d"],"type":"string","default":"24h","title":"From Age"}},{"name":"to_age","in":"query","required":false,"schema":{"enum":["24h","48h","72h","7d"],"type":"string","default":"7d","title":"To Age"}},{"name":"metric","in":"query","required":false,"schema":{"enum":["views","likes","comments","shares","saves"],"type":"string","default":"views","title":"Metric"}},{"name":"order","in":"query","required":false,"schema":{"enum":["desc","asc"],"type":"string","default":"desc","title":"Order"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}},{"name":"digest","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}],"title":"Digest"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/post_age_growth__Page"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/inventory":{"get":{"tags":["Performance"],"summary":"Inventory","description":"Count timed engagement history. For one profile include separate live, all-date publication, engagement, Studio and Post Bridge freshness.","operationId":"inventory_api_performance_inventory_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Inventory"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/posts":{"get":{"tags":["Performance"],"summary":"Search","description":"Search known publications by actual posting time. published_from is inclusive and published_before is exclusive.\nEach bound needs a timezone. as_of selects the latest eligible measurement independently of the publication period.","operationId":"search_api_performance_posts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":240,"default":"","title":"Q"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"enum":["tiktok","instagram"],"type":"string"},{"type":"null"}],"title":"Platform"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":2048},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"published_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published From"}},{"name":"published_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published Before"}},{"name":"order","in":"query","required":false,"schema":{"enum":["newest","oldest"],"type":"string","default":"newest","title":"Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/measurement-windows":{"get":{"tags":["Performance"],"summary":"Measurement Windows","description":"Find open or upcoming windows on known published posts. Engagement uses any timestamped counter in the band.\nWatch mode checks the nearest Studio capture available by as_of at the exact checkpoint. A qualifying early reading\nprovisionally covers the planner before maturity. Return whole-window coverage and the actual possible capture bounds.\nUse the same as_of and filters with next_offset. A later historical import can change past coverage.","operationId":"measurement_windows_api_performance_measurement_windows_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"at_age","in":"query","required":false,"schema":{"enum":["24h","48h","72h","7d"],"type":"string","default":"24h","title":"At Age"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":2147483647,"minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"mode","in":"query","required":false,"schema":{"enum":["engagement","watch"],"type":"string","default":"engagement","title":"Mode"}},{"name":"checkpoint_second","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","description":"Exact Studio sample second in watch mode. Choose 1, 3 or 5. Defaults to 3."},{"type":"null"}],"title":"Checkpoint Second"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WindowPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/daily-series/{account_id}/{external_post_id}":{"get":{"tags":["Daily measurements"],"summary":"Get Daily Series","description":"Read a bound post's current source calendar dates in ascending order. A known post starts at version zero.","operationId":"get_daily_series_api_performance_daily_series__account_id___external_post_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"external_post_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[^\\s/?#]+$","title":"External Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailySeries"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Daily measurements"],"summary":"Put Daily Series","description":"Add or replace complete records for the specified dates. Other dates remain. Retry using the same version and data.","operationId":"put_daily_series_api_performance_daily_series__account_id___external_post_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"external_post_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[^\\s/?#]+$","title":"External Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailySeriesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailySeries"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/daily-activity":{"get":{"tags":["Performance"],"summary":"Get Daily Activity","description":"Compare paired cumulative counters for the same post on adjacent Post Bridge calendar dates.\nEach supplied date stays a date. No timezone, intraday cutoff or missing day's change is inferred.\ntracked_posts counts distinct posts with daily snapshots across all dates. Counts and changes on\neach day include only supplied posts, with coverage for each metric.","operationId":"get_daily_activity_api_performance_daily_activity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date","title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyActivity"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/daily-movers":{"get":{"tags":["Performance"],"summary":"Get Daily Movers","description":"Rank actual adjacent-date changes, largest signed change first. Supply the returned digest while paging.","operationId":"get_daily_movers_api_performance_daily_movers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"source_date","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Source Date"}},{"name":"metric","in":"query","required":true,"schema":{"enum":["views","likes","comments","shares"],"type":"string","title":"Metric"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9223372036854775807,"minimum":0,"default":0,"title":"Offset"}},{"name":"digest","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Digest"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyMovers"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/creator-review/profiles":{"get":{"tags":["Creator review"],"summary":"Roundup","description":"Review adjacent date ranges across profiles, comparing only measurements from the same stream.","operationId":"roundup_api_creator_review_profiles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":7,"title":"Days"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End"}},{"name":"metric","in":"query","required":false,"schema":{"enum":["views","likes","comments","shares","saves"],"type":"string","default":"views","title":"Metric"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":25,"minimum":1,"default":10,"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}],"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileRoundup"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/measurement-profiles":{"get":{"tags":["Measurement profiles"],"summary":"List Profiles","description":"List this workspace's measurement identities, including connected publishers and archive-only profiles.","operationId":"list_profiles_api_measurement_profiles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Profile"},"type":"array","title":"Response List Profiles Api Measurement Profiles Get"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["Measurement profiles"],"summary":"Ensure Profile","description":"Bind one source account once. An archive profile holds imported history and cannot publish.","operationId":"ensure_profile_api_measurement_profiles_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Binding"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Profile"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/measurement-profiles/{profile_id}/removal":{"get":{"tags":["Measurement profiles"],"summary":"Get Archive Removal","description":"Review the exact archive, local data loss and revision before removal.","operationId":"get_archive_removal_api_measurement_profiles__profile_id__removal_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Removal"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/measurement-profiles/{profile_id}":{"delete":{"tags":["Measurement profiles"],"summary":"Remove Measurement Archive","description":"Remove one archive-only history after checking its last reviewed revision. Connected publishers are refused.","operationId":"remove_measurement_archive_api_measurement_profiles__profile_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}},{"name":"revision","in":"query","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Revision"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Removal"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/measurement-profile-connections/{confirmation_id}":{"get":{"tags":["Creator confirmation"],"summary":"Describe","operationId":"describe_api_measurement_profile_connections__confirmation_id__get","parameters":[{"name":"confirmation_id","in":"path","required":true,"schema":{"type":"string","title":"Confirmation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/measurement-profile-connections/{confirmation_id}/confirm":{"post":{"tags":["Creator confirmation"],"summary":"Confirm","operationId":"confirm_api_measurement_profile_connections__confirmation_id__confirm_post","parameters":[{"name":"confirmation_id","in":"path","required":true,"schema":{"type":"string","title":"Confirmation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/measurement-profile-connections/{confirmation_id}/cancel":{"post":{"tags":["Creator confirmation"],"summary":"Cancel","operationId":"cancel_api_measurement_profile_connections__confirmation_id__cancel_post","parameters":[{"name":"confirmation_id","in":"path","required":true,"schema":{"type":"string","title":"Confirmation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/measurement-archive":{"get":{"tags":["Measurement archive"],"summary":"List Archive","description":"Read all observations in account archive order. The first page fixes the cutoff, including for backdated imports.","operationId":"list_archive_api_accounts__account_id__measurement_archive_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"snapshot_sequence","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":9223372036854775807,"minimum":0},{"type":"null"}],"title":"Snapshot Sequence"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchivePage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/measurement-archive.csv":{"get":{"tags":["Measurement archive"],"summary":"Csv Archive","description":"Download every recorded observation for this account as spreadsheet-safe UTF-8 CSV.","operationId":"csv_archive_api_accounts__account_id__measurement_archive_csv_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"snapshot_sequence","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":9223372036854775807,"minimum":0},{"type":"null"}],"title":"Snapshot Sequence"}}],"responses":{"200":{"description":"Successful Response","content":{"text/csv":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/accounts/{account_id}/measurement-archive.jsonl":{"get":{"tags":["Measurement archive"],"summary":"Jsonl Archive","description":"Download original text and nullable counters as UTF-8 newline-delimited JSON, one observation per line.","operationId":"jsonl_archive_api_accounts__account_id__measurement_archive_jsonl_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"snapshot_sequence","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":9223372036854775807,"minimum":0},{"type":"null"}],"title":"Snapshot Sequence"}}],"responses":{"200":{"description":"Successful Response","content":{"application/x-ndjson":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/post-benchmark":{"get":{"summary":"Get Post Benchmark","description":"Choose preceding measured posts by current canonical publication time before testing age coverage.\nCompare real samples within 12h of the target age. A missing counter or an empty peer group has no rank.","operationId":"get_post_benchmark_api_performance_post_benchmark_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"external_post_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[^\\s/?#]+$","title":"External Post Id"}},{"name":"at_age","in":"query","required":false,"schema":{"enum":["24h","48h","72h","7d"],"type":"string","default":"24h","title":"At Age"}},{"name":"preceding_posts","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Preceding Posts"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostBenchmark"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/changes":{"get":{"summary":"Get Changes","description":"Compare lifetime counters observed on two distinct instants inside the selected inclusive UTC dates.\nEach post/counter contributes one widest same-source span. A native source, then the latest end, breaks ties.\nAll publication dates qualify. compare_previous compares the same posts and sources across adjacent periods,\nwith measured time spans and coverage. Ascending order shows the largest measured declines first.","operationId":"get_changes_api_performance_changes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date","title":"End"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"rank_by","in":"query","required":false,"schema":{"enum":["views","likes","comments","shares","saves"],"type":"string","default":"views","title":"Rank By"}},{"name":"direction","in":"query","required":false,"schema":{"enum":["desc","asc"],"type":"string","default":"desc","title":"Direction"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"compare_previous","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Compare Previous"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/post-labels":{"get":{"tags":["Post labels"],"summary":"Get Labels","description":"Read the current private labels for one measured post and the version needed to change them.","operationId":"get_labels_api_performance_post_labels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"external_post_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[^\\s/?#]+$","title":"External Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostLabels"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Post labels"],"summary":"Set Labels","description":"Replace the three private labels together. Null or omitted dimensions clear those values.","operationId":"set_labels_api_performance_post_labels_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"external_post_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":160,"pattern":"^[^\\s/?#]+$","title":"External Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostLabels"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/label-values":{"get":{"tags":["Post labels"],"summary":"List Values","description":"Browse existing private label values, case-insensitively grouped, across all publication dates.","operationId":"list_values_api_performance_label_values_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dimension","in":"query","required":true,"schema":{"enum":["topic","series","format"],"type":"string","title":"Dimension"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":512},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":40,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Suggestions"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/performance/label-comparison":{"get":{"tags":["Post labels"],"summary":"Compare Labels","description":"Rank one or two explicitly labeled groups at the same post age. Scores are mean measured counts per post,\nor a weighted rate per 1,000 views using posts with both counters. Median uses all individual measured scores at the selected age.\nEach age reports eligible, age-matched and metric-bearing posts. shared_metric_ages covers both requested groups.\nCurrent labels are applied even when replaying an older observation cutoff.","operationId":"compare_labels_api_performance_label_comparison_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date","title":"End"}},{"name":"dimension","in":"query","required":true,"schema":{"enum":["topic","series","format"],"type":"string","title":"Dimension"}},{"name":"value","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"title":"Value"}},{"name":"compare_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}],"title":"Compare To"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"As Of"}},{"name":"at_age","in":"query","required":false,"schema":{"enum":["24h","48h","72h","7d"],"type":"string","default":"24h","title":"At Age"}},{"name":"rank_by","in":"query","required":false,"schema":{"enum":["views","likes","comments","shares","saves","likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"],"type":"string","default":"views","title":"Rank By"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":12,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelComparison"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/notes/{note_id}":{"put":{"tags":["Analytics notes"],"summary":"Create Note","description":"Create a note under a caller-generated UUID. Retrying the original request returns its current record.","operationId":"create_note_api_analytics_notes__note_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Analytics notes"],"summary":"Get Note","operationId":"get_note_api_analytics_notes__note_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Analytics notes"],"summary":"Revise Note","description":"Edit a note with its current version; preserve the report cutoff when omitted.","operationId":"revise_note_api_analytics_notes__note_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Analytics notes"],"summary":"Delete Note","operationId":"delete_note_api_analytics_notes__note_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}},{"name":"version","in":"query","required":true,"schema":{"type":"integer","minimum":1,"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/notes":{"get":{"tags":["Analytics notes"],"summary":"List Notes","description":"Newest first. The period filter matches overlapping inclusive dates; account_id selects account-specific notes.","operationId":"list_notes_api_analytics_notes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"only_with_next_test","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Only With Next Test"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/notes/search":{"post":{"tags":["Analytics notes"],"summary":"Search Notes","description":"Find literal text in saved observations, next tests or original author names. Omit dates to search every saved period.","operationId":"search_notes_api_analytics_notes_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotebookSearch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/analytics/notes/{note_id}/deliveries/{post_id}/association":{"put":{"tags":["Analytics notes"],"summary":"Save Association","description":"Identify or clear the exact measured TikTok post completed from this inbox delivery.","operationId":"save_association_api_analytics_notes__note_id__deliveries__post_id__association_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}},{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Association"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/notes/{note_id}/working-draft":{"put":{"tags":["Analytics notes"],"summary":"Start Work","description":"Open the working draft for this note, creating it once. The next test stays in its private brief.","operationId":"start_work_api_analytics_notes__note_id__working_draft_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/note_work__WorkingDraft"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/notes/{note_id}/follow-up":{"get":{"tags":["Analytics notes"],"summary":"Follow Up","description":"Read deliveries, exact post associations and same-age outcomes against the saved note period. Page with next_before.","operationId":"follow_up_api_analytics_notes__note_id__follow_up_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}},{"name":"at_age","in":"query","required":false,"schema":{"enum":["24h","48h","72h","7d"],"type":"string","default":"24h","title":"At Age"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUp"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/notes/{note_id}/decision":{"get":{"tags":["Experiment decisions"],"summary":"Read Decision","description":"Read the saved decision and frozen evidence. An owned note without a decision returns version zero.","operationId":"read_decision_api_analytics_notes__note_id__decision_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Experiment decisions"],"summary":"Put Decision","description":"Save or correct this note's decision with its current version. An identical retry returns the saved record.","operationId":"put_decision_api_analytics_notes__note_id__decision_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/test-decisions":{"get":{"tags":["Experiment decisions"],"summary":"List Decisions","description":"List the latest saved version per note, newest change first. Inclusive UTC change dates default to the last 30 days.\nAccount-specific lists include frozen evidence on that account or a reason-only note scoped to it.\nEach read uses the current saved versions. Concurrent corrections can move an older note ahead of a continuation.","operationId":"list_decisions_api_analytics_test_decisions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},{"name":"disposition","in":"query","required":false,"schema":{"anyOf":[{"enum":["repeat","revise","stop","inconclusive"],"type":"string"},{"type":"null"}],"title":"Disposition"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":1024},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/providers":{"get":{"summary":"Providers","operationId":"providers_api_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/platform-access":{"get":{"summary":"Platform Access","description":"Read this deployment’s configured products. GET /api/accounts gives the creator’s granted delivery modes.","operationId":"platform_access_api_platform_access_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AccountBrief":{"properties":{"account_id":{"type":"string","title":"Account Id"},"brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brief"},"version":{"type":"integer","title":"Version"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"updated_by_type":{"anyOf":[{"type":"string","enum":["creator","agent"]},{"type":"null"}],"title":"Updated By Type"}},"type":"object","required":["account_id","brief","version","updated_at","updated_by","updated_by_type"],"title":"AccountBrief"},"ActivityDay":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"observed_posts":{"type":"integer","title":"Observed Posts","default":0},"paired_posts":{"type":"integer","title":"Paired Posts","default":0},"metrics":{"additionalProperties":{"$ref":"#/components/schemas/DailyChange"},"propertyNames":{"enum":["views","likes","comments","shares"]},"type":"object","title":"Metrics"}},"type":"object","required":["date"],"title":"ActivityDay"},"ActivityWindow":{"properties":{"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"observed_posts":{"type":"integer","title":"Observed Posts","default":0},"observed_days":{"type":"integer","title":"Observed Days","default":0},"matched_posts":{"type":"integer","title":"Matched Posts","default":0},"coverage":{"additionalProperties":{"$ref":"#/components/schemas/ChangeCoverage"},"propertyNames":{"enum":["views","likes","comments","shares","saves"]},"type":"object","title":"Coverage"}},"type":"object","required":["start","end"],"title":"ActivityWindow"},"AgeCoverage":{"properties":{"at_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"At Age"},"target_hours":{"type":"integer","title":"Target Hours"},"tolerance_hours":{"type":"integer","title":"Tolerance Hours","default":12},"cohort_posts":{"type":"integer","title":"Cohort Posts","default":0},"eligible_posts":{"type":"integer","title":"Eligible Posts","default":0},"matched_posts":{"type":"integer","title":"Matched Posts","default":0},"metric_posts":{"type":"integer","title":"Metric Posts","default":0}},"type":"object","required":["at_age","target_hours"],"title":"AgeCoverage"},"AgentKeyName":{"properties":{"role":{"type":"string","enum":["read_only","analyst","metrics_collector","delivery","full"],"title":"Role","default":"full"},"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"account_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Account Id"}},"additionalProperties":false,"type":"object","required":["name"],"title":"AgentKeyName"},"Approval":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version","description":"The version of the post you last read."},"consent":{"type":"boolean","const":true,"title":"Consent"},"caption":{"type":"string","maxLength":4000,"title":"Caption"},"settings":{"anyOf":[{"$ref":"#/components/schemas/DirectSettings"},{"$ref":"#/components/schemas/InstagramSettings"}],"title":"Settings"}},"additionalProperties":false,"type":"object","required":["version","consent","caption","settings"],"title":"Approval"},"ArchivePage":{"properties":{"account_id":{"type":"string","title":"Account Id"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"snapshot_sequence":{"type":"integer","title":"Snapshot Sequence"},"items":{"items":{"$ref":"#/components/schemas/ArchivedObservation"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["account_id","platform","snapshot_sequence","items","next_cursor"],"title":"ArchivePage"},"ArchivedObservation":{"properties":{"sequence":{"type":"integer","title":"Sequence"},"external_post_id":{"type":"string","title":"External Post Id"},"reported_published_at":{"type":"string","format":"date-time","title":"Reported Published At"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"source_kind":{"type":"string","enum":["import","provider"],"title":"Source Kind"},"source":{"type":"string","title":"Source"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"metrics":{"$ref":"#/components/schemas/Metrics"}},"type":"object","required":["sequence","external_post_id","reported_published_at","observed_at","source_kind","source","title","permalink","metrics"],"title":"ArchivedObservation"},"Association":{"properties":{"account_id":{"type":"string","maxLength":100,"minLength":1,"title":"Account Id"},"external_post_id":{"anyOf":[{"type":"string","maxLength":160,"minLength":1,"pattern":"^[^\\s/?#]+$"},{"type":"null"}],"title":"External Post Id","description":"Exact measured post you verified, or null to clear."},"version":{"type":"integer","minimum":0.0,"title":"Version"}},"additionalProperties":false,"type":"object","required":["account_id","external_post_id","version"],"title":"Association"},"Attention":{"properties":{"awaiting_approval":{"$ref":"#/components/schemas/QueueState"},"failed":{"$ref":"#/components/schemas/QueueState"}},"type":"object","required":["awaiting_approval","failed"],"title":"Attention"},"Attribution":{"properties":{"version":{"type":"integer","title":"Version"},"actor":{"type":"string","title":"Actor"},"actor_type":{"type":"string","title":"Actor Type"},"changed_at":{"type":"string","format":"date-time","title":"Changed At"}},"type":"object","required":["version","actor","actor_type","changed_at"],"title":"Attribution"},"Baseline":{"properties":{"coverage":{"$ref":"#/components/schemas/Comparison"},"metrics":{"additionalProperties":{"$ref":"#/components/schemas/CounterBaseline"},"propertyNames":{"enum":["views","likes","comments","shares","saves"]},"type":"object","title":"Metrics"},"weighted_rates":{"additionalProperties":{"$ref":"#/components/schemas/RateBaseline"},"propertyNames":{"enum":["likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"]},"type":"object","title":"Weighted Rates"},"weighted_shares_per_1000_views":{"$ref":"#/components/schemas/SharesBaseline"}},"type":"object","required":["coverage","metrics","weighted_rates","weighted_shares_per_1000_views"],"title":"Baseline"},"Batch":{"properties":{"media_ids":{"items":{"type":"string"},"type":"array","maxItems":35,"minItems":1,"title":"Media Ids"},"destinations":{"items":{"$ref":"#/components/schemas/Destination-Input"},"type":"array","maxItems":20,"minItems":2,"title":"Destinations"},"source_draft_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Source Draft Id"}},"additionalProperties":false,"type":"object","required":["media_ids","destinations"],"title":"Batch"},"BatchItem":{"properties":{"position":{"type":"integer","title":"Position","description":"One-based position in the submitted destinations."},"post":{"anyOf":[{"$ref":"#/components/schemas/ChildPost"},{"type":"null"}],"description":"Null if the creator disconnected this post's account."},"status_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Url"},"api_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Url"}},"type":"object","required":["position","post","status_url","api_url"],"title":"BatchItem"},"BatchPreview":{"properties":{"eligible":{"type":"boolean","title":"Eligible","description":"Every destination can be reserved or reused using the current local data."},"destinations":{"items":{"$ref":"#/components/schemas/DestinationPreview"},"type":"array","title":"Destinations"}},"type":"object","required":["eligible","destinations"],"title":"BatchPreview"},"BatchReceipt":{"properties":{"requested_by":{"anyOf":[{"$ref":"#/components/schemas/Requester"},{"type":"null"}]},"requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Requested At"},"id":{"type":"string","title":"Id"},"destinations":{"items":{"$ref":"#/components/schemas/BatchItem"},"type":"array","title":"Destinations"}},"type":"object","required":["requested_by","requested_at","id","destinations"],"title":"BatchReceipt"},"Binding":{"properties":{"source":{"type":"string","const":"post_bridge","title":"Source"},"source_account_id":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[1-9][0-9]*$","title":"Source Account Id"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"handle":{"type":"string","title":"Handle","description":"TikTok handle. A leading @ is optional."},"connected_account_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Connected Account Id","description":"Explicitly bind to an owned, already connected publisher on first creation."}},"additionalProperties":false,"type":"object","required":["source","source_account_id","platform","handle"],"title":"Binding"},"BridgeIdentity":{"properties":{"source_account_id":{"type":"string","pattern":"^[1-9][0-9]{0,18}$","title":"Source Account Id"},"handle":{"type":"string","maxLength":24,"minLength":1,"pattern":"^[a-z0-9._]*[a-z0-9_]$","title":"Handle"}},"additionalProperties":false,"type":"object","required":["source_account_id","handle"],"title":"BridgeIdentity"},"BriefEdit":{"properties":{"version":{"type":"integer","minimum":0.0,"title":"Version","description":"The version you last read. An untouched profile starts at zero."},"brief":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"Brief","description":"Private audience and voice guidance. Send null to clear it."}},"additionalProperties":false,"type":"object","required":["version","brief"],"title":"BriefEdit"},"ByPublication":{"properties":{"before_start":{"$ref":"#/components/schemas/Contribution"},"within_period":{"$ref":"#/components/schemas/Contribution"},"after_end":{"$ref":"#/components/schemas/Contribution"}},"type":"object","title":"ByPublication","description":"Current-window movement grouped by the post's canonical UTC publication date."},"CalendarItem":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"mode":{"type":"string","enum":["draft","direct"],"title":"Mode"},"kind":{"type":"string","enum":["video","photos"],"title":"Kind"},"caption":{"type":"string","title":"Caption"},"state":{"type":"string","enum":["queued","awaiting_approval","sent","landed_as_draft","published","failed","cancelled"],"title":"State"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"calendar_at":{"type":"string","format":"date-time","title":"Calendar At"},"status_url":{"type":"string","title":"Status Url"},"review_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Url"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"version":{"type":"integer","title":"Version"},"can_manage":{"type":"boolean","title":"Can Manage"}},"type":"object","required":["id","account_id","account_name","platform","mode","kind","caption","state","scheduled_at","created_at","calendar_at","status_url","review_url","error","version","can_manage"],"title":"CalendarItem"},"CalendarPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CalendarItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"CalendarPage"},"CaptureDetail":{"properties":{"external_post_id":{"type":"string","maxLength":160,"minLength":1,"pattern":"^[^\\s/?#]+$","title":"External Post Id"},"captured_at":{"type":"string","format":"date-time","title":"Captured At","description":"Actual offset-bearing capture timestamp, never the source calendar date or import time."},"source":{"type":"string","enum":["pipeline_tiktok_studio","tiktok_studio_export"],"title":"Source","description":"Creator-supplied provenance for this private import."},"media_kind":{"type":"string","enum":["video","photo","unknown"],"title":"Media Kind"},"views":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Views"},"average_watch_seconds":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Average Watch Seconds"},"completion_fraction":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Completion Fraction"},"retention":{"anyOf":[{"items":{"$ref":"#/components/schemas/RetentionPoint"},"type":"array","maxItems":20000},{"type":"null"}],"title":"Retention","description":"Original video-only points, increasing by elapsed seconds. Fractions range from zero to one. Null means unavailable."},"point_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Point Count","description":"Null when the source did not supply a curve. An explicitly empty curve has zero points."},"capture_age_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Capture Age Hours","description":"Hours since current canonical publication. Null when the capture predates a corrected publication time."},"largest_drop":{"anyOf":[{"$ref":"#/components/schemas/ObservedDrop"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["external_post_id","captured_at","source","media_kind","point_count","capture_age_hours","largest_drop"],"title":"CaptureDetail"},"ChangeCoverage":{"properties":{"matched_posts":{"type":"integer","title":"Matched Posts","default":0},"net_change":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Change"},"gained":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gained"},"lost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lost"},"first_observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Observed At"},"last_observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Observed At"},"min_span_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Span Hours"},"max_span_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Span Hours"}},"type":"object","title":"ChangeCoverage"},"ChangeReport":{"properties":{"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"observed_posts":{"type":"integer","title":"Observed Posts","default":0},"observed_days":{"type":"integer","title":"Observed Days","default":0},"matched_posts":{"type":"integer","title":"Matched Posts","default":0},"coverage":{"additionalProperties":{"$ref":"#/components/schemas/ChangeCoverage"},"propertyNames":{"enum":["views","likes","comments","shares","saves"]},"type":"object","title":"Coverage"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"rank_by":{"type":"string","enum":["views","likes","comments","shares","saves"],"title":"Rank By"},"direction":{"type":"string","enum":["desc","asc"],"title":"Direction"},"movers":{"items":{"$ref":"#/components/schemas/Mover"},"type":"array","title":"Movers"},"comparison":{"anyOf":[{"$ref":"#/components/schemas/PreviousComparison"},{"type":"null"}]}},"type":"object","required":["start","end","as_of","account_id","rank_by","direction","movers"],"title":"ChangeReport"},"Check":{"properties":{"source":{"type":"string","enum":["post_bridge","pipeline"],"title":"Source"},"identity":{"anyOf":[{"$ref":"#/components/schemas/BridgeIdentity"},{"$ref":"#/components/schemas/PipelineIdentity"}],"title":"Identity"},"status":{"type":"string","enum":["succeeded","failed"],"title":"Status"},"stage":{"anyOf":[{"type":"string","enum":["source_timed","source_daily","daily_identity","preview_timed","write_timed","write_daily","source_watch","preview_watch","write_watch"]},{"type":"null"}],"title":"Stage"},"timed_added":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":0.0},{"type":"null"}],"title":"Timed Added"},"daily_added":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":0.0},{"type":"null"}],"title":"Daily Added"},"daily_updated":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":0.0},{"type":"null"}],"title":"Daily Updated"},"watch_added":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":0.0},{"type":"null"}],"title":"Watch Added","description":"Acknowledged new Studio captures from an explicitly included Pipeline watch check."}},"additionalProperties":false,"type":"object","required":["source","identity","status"],"title":"Check"},"ChildPost":{"properties":{"dispatch_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Dispatch Started At","description":"UTC instant when the worker first claimed this delivery, if recorded."},"next_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Attempt At","description":"Earliest eligibility for the pending worker step. Can be in the past. Null during a marked provider operation or outside queued/sent."},"consecutive_retries":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Consecutive Retries","description":"Consecutive retry deferrals for the pending step. Resets after successful steps. Null outside queued/sent."},"dispatch_phase":{"anyOf":[{"type":"string","enum":["scheduled","ready","processing","retry_wait","awaiting_provider","waiting","awaiting_reauthorization"]},{"type":"null"}],"title":"Dispatch Phase","description":"Current worker scheduling fact for queued/sent rows. Processing requires a persisted in-flight provider-operation marker; ready means eligible, including preflight checks. Waiting means a future eligibility time without a recorded reason."},"requested_by":{"anyOf":[{"$ref":"#/components/schemas/Requester"},{"type":"null"}]},"requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Requested At"},"account_name":{"type":"string","title":"Account Name","description":"Current name reported by the connected platform."},"account_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Label","description":"Current private workspace label for this stable destination."},"account_name_ambiguous":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Account Name Ambiguous","description":"Workspace-wide name collision. Omitted for single-account delivery keys."},"id":{"type":"string","title":"Id"},"account_id":{"type":"string","title":"Account Id"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"mode":{"type":"string","enum":["draft","direct"],"title":"Mode"},"kind":{"type":"string","enum":["video","photos"],"title":"Kind"},"caption":{"type":"string","title":"Caption"},"state":{"type":"string","enum":["queued","awaiting_approval","sent","landed_as_draft","published","failed","cancelled"],"title":"State"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"failure_outcome":{"anyOf":[{"type":"string","enum":["not_sent","provider_rejected","unconfirmed"]},{"type":"null"}],"title":"Failure Outcome"},"version":{"type":"integer","title":"Version"},"source_draft_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Draft Id"},"crop_notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crop Notice","description":"Instagram’s framing rule for a photo carousel."},"published_media_ids":{"items":{"type":"string"},"type":"array","title":"Published Media Ids"},"tiktok_media_first_seen":{"additionalProperties":{"type":"string","format":"date-time"},"type":"object","title":"Tiktok Media First Seen","description":"When each exact TikTok media ID was first recorded locally. Older receipts can lack timestamps."},"can_check_tiktok_publication":{"type":"boolean","title":"Can Check Tiktok Publication","description":"The receipt has a TikTok inbox ticket eligible for an explicit status lookup. Requires a current publishing connection and creator, full, or matching delivery access."},"can_manage":{"type":"boolean","title":"Can Manage","description":"The delivery is still eligible for cancellation or rescheduling by a creator or full-access key. Once the worker first claims it, later retries and status checks keep this false. Use the latest version when requesting a change."},"settings":{"additionalProperties":true,"type":"object","title":"Settings"},"media_ids":{"items":{"type":"string"},"type":"array","title":"Media Ids"},"review_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Url"},"status_url":{"type":"string","title":"Status Url","description":"Private browser page for this delivery, in every state."},"require_review":{"type":"boolean","title":"Require Review","description":"This delivery requires creator approval, including after a schedule change."}},"type":"object","required":["dispatch_started_at","next_attempt_at","consecutive_retries","dispatch_phase","requested_by","requested_at","account_name","account_label","id","account_id","platform","mode","kind","caption","state","scheduled_at","error","failure_outcome","version","source_draft_id","published_media_ids","tiktok_media_first_seen","can_check_tiktok_publication","can_manage","settings","media_ids","review_url","status_url","require_review"],"title":"ChildPost"},"Comparison":{"properties":{"at_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"At Age"},"target_hours":{"type":"integer","title":"Target Hours"},"tolerance_hours":{"type":"integer","title":"Tolerance Hours","default":12},"cohort_posts":{"type":"integer","title":"Cohort Posts","default":0},"eligible_posts":{"type":"integer","title":"Eligible Posts","default":0},"matched_posts":{"type":"integer","title":"Matched Posts","default":0}},"type":"object","required":["at_age","target_hours"],"title":"Comparison"},"CompletedUpload":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"}},"type":"object","required":["id","type","duration"],"title":"CompletedUpload"},"Contribution":{"properties":{"paired_posts":{"type":"integer","title":"Paired Posts","default":0},"positive_posts":{"type":"integer","title":"Positive Posts","default":0},"negative_posts":{"type":"integer","title":"Negative Posts","default":0},"net_change":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Change"}},"type":"object","title":"Contribution"},"CounterBaseline":{"properties":{"posts":{"type":"integer","title":"Posts"},"mean":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mean"}},"type":"object","required":["posts","mean"],"title":"CounterBaseline"},"CreatorReview":{"properties":{"workspace_url":{"type":"string","title":"Workspace Url"},"account":{"anyOf":[{"$ref":"#/components/schemas/Destination-Output"},{"type":"null"}]},"days":{"type":"integer","title":"Days"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"at_age":{"anyOf":[{"type":"string","enum":["24h","48h","72h","7d"]},{"type":"null"}],"title":"At Age"},"rank_by":{"type":"string","enum":["views","likes","comments","shares","saves","likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"],"title":"Rank By"},"current":{"$ref":"#/components/schemas/creator_review__Cohort"},"previous":{"$ref":"#/components/schemas/creator_review__Cohort"},"activity":{"$ref":"#/components/schemas/ChangeReport"},"timed":{"anyOf":[{"$ref":"#/components/schemas/TimedSummary"},{"type":"null"}]},"period_evidence_refs":{"$ref":"#/components/schemas/PeriodRefs"},"source_days":{"anyOf":[{"$ref":"#/components/schemas/SourceCalendar"},{"type":"null"}]},"source_roundup":{"anyOf":[{"$ref":"#/components/schemas/SourceRoundup"},{"type":"null"}]},"observed_total_differences":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"null"}]},"propertyNames":{"enum":["views","likes","comments","shares","saves"]},"type":"object","title":"Observed Total Differences"},"attention_now":{"$ref":"#/components/schemas/Attention"},"overlapping_notes":{"$ref":"#/components/schemas/Notes"},"planned_tests":{"items":{"$ref":"#/components/schemas/PlannedTest"},"type":"array","title":"Planned Tests"},"experiment_decisions":{"$ref":"#/components/schemas/DecisionPage"},"agent_request":{"type":"string","title":"Agent Request"}},"type":"object","required":["workspace_url","account","days","as_of","at_age","rank_by","current","previous","activity","timed","period_evidence_refs","source_days","source_roundup","observed_total_differences","attention_now","overlapping_notes","planned_tests","experiment_decisions","agent_request"],"title":"CreatorReview"},"Credentials":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"password":{"type":"string","maxLength":1024,"format":"password","title":"Password","writeOnly":true}},"type":"object","required":["email","password"],"title":"Credentials"},"CurrentPost":{"properties":{"requested_by":{"anyOf":[{"$ref":"#/components/schemas/Requester"},{"type":"null"}]},"requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Requested At"},"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"mode":{"type":"string","enum":["draft","direct"],"title":"Mode"},"state":{"type":"string","enum":["queued","awaiting_approval","sent","landed_as_draft","published","failed","cancelled"],"title":"State"},"failure_outcome":{"anyOf":[{"type":"string","enum":["not_sent","provider_rejected","unconfirmed"]},{"type":"null"}],"title":"Failure Outcome"},"source_draft_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Draft Id"},"source_note_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Note Id"},"status_url":{"type":"string","title":"Status Url"},"review_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Url"}},"type":"object","required":["requested_by","requested_at","account_id","account_name","platform","mode","state","failure_outcome","source_draft_id","source_note_id","status_url","review_url"],"title":"CurrentPost"},"DailyActivity":{"properties":{"workspace_url":{"type":"string","title":"Workspace Url"},"account_id":{"type":"string","title":"Account Id"},"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"source":{"type":"string","const":"post_bridge","title":"Source","default":"post_bridge"},"source_timezone":{"type":"null","title":"Source Timezone"},"profile_posts":{"type":"integer","title":"Profile Posts"},"tracked_posts":{"type":"integer","title":"Tracked Posts"},"days":{"items":{"$ref":"#/components/schemas/ActivityDay"},"type":"array","title":"Days"}},"type":"object","required":["workspace_url","account_id","start","end","profile_posts","tracked_posts","days"],"title":"DailyActivity"},"DailyChange":{"properties":{"paired_posts":{"type":"integer","title":"Paired Posts","default":0},"net_change":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Change"},"gained":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gained"},"lost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lost"}},"type":"object","title":"DailyChange"},"DailyContributor":{"properties":{"external_post_id":{"type":"string","title":"External Post Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"before":{"type":"integer","title":"Before"},"after":{"type":"integer","title":"After"},"change":{"type":"integer","title":"Change"}},"type":"object","required":["external_post_id","title","permalink","before","after","change"],"title":"DailyContributor"},"DailyEvidenceRef":{"properties":{"account_id":{"type":"string","title":"Account Id"},"source_date":{"type":"string","format":"date","title":"Source Date"},"metric":{"type":"string","enum":["views","likes","comments","shares"],"title":"Metric"},"digest":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Digest"}},"additionalProperties":false,"type":"object","required":["account_id","source_date","metric","digest"],"title":"DailyEvidenceRef"},"DailyMetrics":{"properties":{"views":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Views"},"likes":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Likes"},"comments":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Comments"},"shares":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Shares"}},"additionalProperties":false,"type":"object","title":"DailyMetrics"},"DailyMovers":{"properties":{"account_id":{"type":"string","title":"Account Id"},"source_date":{"type":"string","format":"date","title":"Source Date"},"previous_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Previous Date"},"metric":{"type":"string","enum":["views","likes","comments","shares"],"title":"Metric"},"observed_posts":{"type":"integer","title":"Observed Posts"},"paired_posts":{"type":"integer","title":"Paired Posts"},"metric_posts":{"type":"integer","title":"Metric Posts"},"net_change":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Change"},"gained":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gained"},"lost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lost"},"items":{"items":{"$ref":"#/components/schemas/DailyContributor"},"type":"array","title":"Items"},"next_offset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Offset"},"evidence_ref":{"$ref":"#/components/schemas/DailyEvidenceRef"},"workspace_url":{"type":"string","title":"Workspace Url"}},"type":"object","required":["account_id","source_date","previous_date","metric","observed_posts","paired_posts","metric_posts","net_change","gained","lost","items","next_offset","evidence_ref","workspace_url"],"title":"DailyMovers"},"DailySeries":{"properties":{"account_id":{"type":"string","title":"Account Id"},"external_post_id":{"type":"string","title":"External Post Id"},"version":{"type":"integer","title":"Version"},"days":{"items":{"$ref":"#/components/schemas/DayRecord"},"type":"array","title":"Days"}},"type":"object","required":["account_id","external_post_id","version","days"],"title":"DailySeries"},"DailySeriesUpdate":{"properties":{"version":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Version"},"days":{"items":{"$ref":"#/components/schemas/DayRecord"},"type":"array","maxItems":366,"minItems":1,"title":"Days"}},"additionalProperties":false,"type":"object","required":["version","days"],"title":"DailySeriesUpdate"},"DayRecord":{"properties":{"date":{"type":"string","format":"date","title":"Date","description":"The source calendar date, without a time or timezone."},"metrics":{"$ref":"#/components/schemas/DailyMetrics"}},"additionalProperties":false,"type":"object","required":["date","metrics"],"title":"DayRecord"},"Decision":{"properties":{"disposition":{"type":"string","enum":["repeat","revise","stop","inconclusive"],"title":"Disposition"},"rationale":{"type":"string","title":"Rationale"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"author":{"type":"string","title":"Author"},"author_type":{"type":"string","title":"Author Type"},"last_editor":{"type":"string","title":"Last Editor"},"last_editor_type":{"type":"string","title":"Last Editor Type"},"evidence":{"anyOf":[{"$ref":"#/components/schemas/FrozenEvidence"},{"$ref":"#/components/schemas/FrozenWatchEvidence"},{"type":"null"}],"title":"Evidence"}},"type":"object","required":["disposition","rationale","created_at","updated_at","author","author_type","last_editor","last_editor_type","evidence"],"title":"Decision"},"DecisionPage":{"properties":{"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"items":{"items":{"$ref":"#/components/schemas/DecisionSummary"},"type":"array","title":"Items"},"next_before":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Before"}},"type":"object","required":["start","end","items","next_before"],"title":"DecisionPage"},"DecisionState":{"properties":{"note_id":{"type":"string","format":"uuid","title":"Note Id"},"workspace_url":{"type":"string","title":"Workspace Url"},"version":{"type":"integer","title":"Version"},"decision":{"anyOf":[{"$ref":"#/components/schemas/Decision"},{"type":"null"}]}},"type":"object","required":["note_id","workspace_url","version","decision"],"title":"DecisionState"},"DecisionSummary":{"properties":{"note_id":{"type":"string","format":"uuid","title":"Note Id"},"workspace_url":{"type":"string","title":"Workspace Url"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"version":{"type":"integer","title":"Version"},"disposition":{"type":"string","enum":["repeat","revise","stop","inconclusive"],"title":"Disposition"},"rationale_excerpt":{"type":"string","title":"Rationale Excerpt"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"last_editor":{"type":"string","title":"Last Editor"},"last_editor_type":{"type":"string","title":"Last Editor Type"},"evidence":{"anyOf":[{"$ref":"#/components/schemas/EvidenceIdentity"},{"$ref":"#/components/schemas/WatchIdentity"},{"type":"null"}],"title":"Evidence"}},"type":"object","required":["note_id","workspace_url","account_id","version","disposition","rationale_excerpt","updated_at","last_editor","last_editor_type","evidence"],"title":"DecisionSummary"},"DecisionUpdate":{"properties":{"version":{"type":"integer","minimum":0.0,"title":"Version"},"disposition":{"type":"string","enum":["repeat","revise","stop","inconclusive"],"title":"Disposition"},"rationale":{"type":"string","maxLength":4000,"minLength":1,"title":"Rationale"},"evidence":{"anyOf":[{"$ref":"#/components/schemas/EvidenceSelection"},{"$ref":"#/components/schemas/WatchSelection"},{"type":"null"}],"title":"Evidence","description":"Select the exact engagement reading or matched Studio capture shown for a delivery. A reason-only inconclusive decision accepts null."}},"additionalProperties":false,"type":"object","required":["version","disposition","rationale","evidence"],"title":"DecisionUpdate"},"DeliveryEvent":{"properties":{"sequence":{"type":"integer","title":"Sequence"},"post_id":{"type":"string","title":"Post Id"},"recorded_at":{"type":"string","format":"date-time","title":"Recorded At"},"kind":{"type":"string","enum":["baseline","created","state_changed","rescheduled"],"title":"Kind"},"previous_state":{"anyOf":[{"type":"string","enum":["queued","awaiting_approval","sent","landed_as_draft","published","failed","cancelled"]},{"type":"null"}],"title":"Previous State"},"state":{"type":"string","enum":["queued","awaiting_approval","sent","landed_as_draft","published","failed","cancelled"],"title":"State"},"previous_scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previous Scheduled At"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"failure_outcome":{"anyOf":[{"type":"string","enum":["not_sent","provider_rejected","unconfirmed"]},{"type":"null"}],"title":"Failure Outcome"},"current_post":{"$ref":"#/components/schemas/CurrentPost"}},"type":"object","required":["sequence","post_id","recorded_at","kind","previous_state","state","previous_scheduled_at","scheduled_at","error","failure_outcome","current_post"],"title":"DeliveryEvent"},"DeliveryOutcome":{"properties":{"id":{"type":"string","title":"Id"},"caption":{"type":"string","title":"Caption"},"state":{"type":"string","title":"State"},"platform":{"type":"string","title":"Platform"},"mode":{"type":"string","title":"Mode"},"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"status_url":{"type":"string","title":"Status Url"},"association":{"additionalProperties":true,"type":"object","title":"Association"},"can_associate":{"type":"boolean","title":"Can Associate"},"watch_status":{"anyOf":[{"type":"string","enum":["unconfirmed","different_profile","identified"]},{"type":"null"}],"title":"Watch Status"},"outcomes":{"items":{"$ref":"#/components/schemas/PostOutcome"},"type":"array","title":"Outcomes"}},"type":"object","required":["id","caption","state","platform","mode","account_id","account_name","status_url","association","can_associate","watch_status","outcomes"],"title":"DeliveryOutcome"},"DeliveryReport":{"properties":{"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"created_from":{"type":"string","format":"date-time","title":"Created From"},"created_before":{"type":"string","format":"date-time","title":"Created Before"},"total":{"type":"integer","title":"Total"},"by_state":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["queued","awaiting_approval","sent","landed_as_draft","published","failed","cancelled"]},"type":"object","title":"By State"},"by_platform":{"additionalProperties":{"additionalProperties":{"type":"integer"},"propertyNames":{"enum":["queued","awaiting_approval","sent","landed_as_draft","published","failed","cancelled"]},"type":"object"},"type":"object","title":"By Platform"},"by_failure_outcome":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Failure Outcome","description":"Counts among currently failed deliveries. Unknown means no outcome was recorded. Empty when none failed."}},"type":"object","required":["account_id","created_from","created_before","total","by_state","by_platform","by_failure_outcome"],"title":"DeliveryReport"},"Destination-Input":{"properties":{"account_id":{"type":"string","minLength":1,"title":"Account Id"},"mode":{"type":"string","enum":["draft","direct"],"title":"Mode"},"caption":{"type":"string","maxLength":4000,"title":"Caption","description":"Write the caption for this account. Send an empty string for no caption."},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"require_review":{"type":"boolean","title":"Require Review","description":"Require creator approval before Instagram publication. TikTok Direct always requires approval.","default":false},"settings":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Settings"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Idempotency Key","description":"Optional key shared with POST /api/posts for this destination."}},"additionalProperties":false,"type":"object","required":["account_id","mode","caption"],"title":"Destination"},"Destination-Output":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"}},"type":"object","required":["id","name","platform"],"title":"Destination"},"DestinationPreview":{"properties":{"position":{"type":"integer","title":"Position"},"account_id":{"type":"string","title":"Account Id"},"eligible":{"type":"boolean","title":"Eligible"},"issue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issue"},"crop_notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crop Notice"},"reuses_delivery":{"type":"boolean","title":"Reuses Delivery","description":"Creating a new batch would reuse this destination's existing keyed delivery.","default":false}},"type":"object","required":["position","account_id","eligible"],"title":"DestinationPreview"},"DirectSettings":{"properties":{"privacy_level":{"type":"string","title":"Privacy Level"},"title":{"anyOf":[{"type":"string","maxLength":90},{"type":"null"}],"title":"Title"},"disable_comment":{"type":"boolean","title":"Disable Comment","default":true},"disable_duet":{"type":"boolean","title":"Disable Duet","default":true},"disable_stitch":{"type":"boolean","title":"Disable Stitch","default":true},"brand_content_toggle":{"type":"boolean","title":"Brand Content Toggle","default":false},"brand_organic_toggle":{"type":"boolean","title":"Brand Organic Toggle","default":false},"is_aigc":{"type":"boolean","title":"Is Aigc","default":false}},"additionalProperties":false,"type":"object","required":["privacy_level"],"title":"DirectSettings"},"DraftCreate":{"properties":{"title":{"type":"string","maxLength":160,"title":"Title","default":""},"caption":{"type":"string","maxLength":4000,"title":"Caption","default":""},"media_ids":{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":35,"title":"Media Ids"}},"additionalProperties":false,"type":"object","title":"DraftCreate"},"DraftDetail":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"caption":{"type":"string","title":"Caption"},"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"media_ids":{"items":{"type":"string"},"type":"array","title":"Media Ids"},"media":{"items":{"$ref":"#/components/schemas/DraftMedia"},"type":"array","title":"Media"},"idea_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idea Brief"},"source_idea_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Idea Id"},"test_brief":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Brief"},"source_note_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Note Id"},"intended_profile":{"anyOf":[{"$ref":"#/components/schemas/IntendedProfile"},{"type":"null"}]},"destination_unknown":{"type":"boolean","title":"Destination Unknown","default":false}},"type":"object","required":["id","title","caption","version","created_at","updated_at","media_ids","media"],"title":"DraftDetail"},"DraftMedia":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"mime":{"type":"string","title":"Mime"},"bytes":{"type":"integer","title":"Bytes"},"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"}},"type":"object","required":["id","name","mime","bytes","duration"],"title":"DraftMedia"},"DraftSummary":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"caption":{"type":"string","title":"Caption"},"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"media_ids":{"items":{"type":"string"},"type":"array","title":"Media Ids"}},"type":"object","required":["id","title","caption","version","created_at","updated_at","media_ids"],"title":"DraftSummary"},"DraftUpdate":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version"},"title":{"type":"string","maxLength":160,"title":"Title"},"caption":{"type":"string","maxLength":4000,"title":"Caption"},"media_ids":{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":35,"title":"Media Ids"}},"additionalProperties":false,"type":"object","required":["version","title","caption","media_ids"],"title":"DraftUpdate"},"Drop":{"properties":{"from_second":{"type":"integer","title":"From Second"},"to_second":{"type":"integer","title":"To Second"},"posts":{"type":"integer","title":"Posts"},"median_drop_pp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Drop Pp"}},"type":"object","required":["from_second","to_second","posts","median_drop_pp"],"title":"Drop"},"Engagement":{"properties":{"sequence":{"type":"integer","title":"Sequence"},"source":{"type":"string","title":"Source"},"source_kind":{"type":"string","enum":["import","provider"],"title":"Source Kind"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"observation_age_hours":{"type":"number","title":"Observation Age Hours"},"hours_from_studio":{"type":"number","title":"Hours From Studio","description":"Signed difference in hours. Positive means engagement was observed after the Studio capture."},"metrics":{"$ref":"#/components/schemas/Metrics"},"shares_per_1000_views":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shares Per 1000 Views","description":"Shares per 1,000 positive views from this engagement observation only."}},"type":"object","required":["sequence","source","source_kind","observed_at","observation_age_hours","hours_from_studio","metrics","shares_per_1000_views"],"title":"Engagement"},"EventPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DeliveryEvent"},"type":"array","title":"Items"},"next_cursor":{"type":"string","title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["items","next_cursor","has_more"],"title":"EventPage"},"Evidence":{"properties":{"sequence":{"type":"integer","title":"Sequence"},"external_post_id":{"type":"string","title":"External Post Id"},"reported_published_at":{"type":"string","format":"date-time","title":"Reported Published At"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"source_kind":{"type":"string","enum":["import","provider"],"title":"Source Kind"},"source":{"type":"string","title":"Source"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"metrics":{"$ref":"#/components/schemas/Metrics"},"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"}},"type":"object","required":["sequence","external_post_id","reported_published_at","observed_at","source_kind","source","title","permalink","metrics","account_id","account_name","platform"],"title":"Evidence"},"EvidenceIdentity":{"properties":{"delivery_id":{"type":"string","title":"Delivery Id"},"external_post_id":{"type":"string","title":"External Post Id"},"account_id":{"type":"string","title":"Account Id"},"at_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"At Age"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"association_source":{"type":"string","enum":["platform_receipt","creator_association"],"title":"Association Source"},"sequence":{"type":"integer","title":"Sequence"}},"type":"object","required":["delivery_id","external_post_id","account_id","at_age","as_of","association_source","sequence"],"title":"EvidenceIdentity"},"EvidenceSelection":{"properties":{"delivery_id":{"type":"string","maxLength":100,"minLength":1,"title":"Delivery Id"},"external_post_id":{"type":"string","maxLength":160,"minLength":1,"pattern":"^[^\\s/?#]+$","title":"External Post Id"},"at_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"At Age"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"expected_sequence":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Expected Sequence","description":"Archive sequence seen in this delivery's matched sample. Detects a changed selection."}},"additionalProperties":false,"type":"object","required":["delivery_id","external_post_id","at_age","as_of"],"title":"EvidenceSelection"},"FollowUp":{"properties":{"at_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"At Age"},"as_of":{"type":"string","title":"As Of"},"tolerance_hours":{"type":"integer","title":"Tolerance Hours"},"page_coverage":{"additionalProperties":{"type":"integer"},"type":"object","title":"Page Coverage"},"reference":{"additionalProperties":true,"type":"object","title":"Reference"},"baselines":{"additionalProperties":true,"type":"object","title":"Baselines"},"watch_reference":{"anyOf":[{"$ref":"#/components/schemas/WatchGoal"},{"type":"null"}]},"deliveries":{"items":{"$ref":"#/components/schemas/DeliveryOutcome"},"type":"array","title":"Deliveries"},"working_draft":{"anyOf":[{"$ref":"#/components/schemas/note_work__WorkingDraft"},{"type":"null"}]},"has_more":{"type":"boolean","title":"Has More"},"next_before":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Before"}},"type":"object","required":["at_age","as_of","tolerance_hours","page_coverage","reference","baselines","watch_reference","deliveries","working_draft","has_more","next_before"],"title":"FollowUp"},"FrozenDay":{"properties":{"account_id":{"type":"string","title":"Account Id"},"source_date":{"type":"string","format":"date","title":"Source Date"},"metric":{"type":"string","enum":["views","likes","comments","shares"],"title":"Metric"},"digest":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Digest"},"source":{"type":"string","const":"post_bridge","title":"Source","default":"post_bridge"},"source_timezone":{"type":"null","title":"Source Timezone"},"account_name":{"type":"string","title":"Account Name"},"previous_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Previous Date"},"observed_posts":{"type":"integer","title":"Observed Posts"},"paired_posts":{"type":"integer","title":"Paired Posts"},"metric_posts":{"type":"integer","title":"Metric Posts"},"net_change":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Change"},"gained":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gained"},"lost":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lost"},"contributors":{"items":{"$ref":"#/components/schemas/DailyContributor"},"type":"array","maxItems":3,"title":"Contributors"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"}},"additionalProperties":false,"type":"object","required":["account_id","source_date","metric","digest","account_name","previous_date","observed_posts","paired_posts","metric_posts","net_change","gained","lost","contributors","captured_at"],"title":"FrozenDay"},"FrozenEvidence":{"properties":{"delivery_id":{"type":"string","title":"Delivery Id"},"external_post_id":{"type":"string","title":"External Post Id"},"account_id":{"type":"string","title":"Account Id"},"association_source":{"type":"string","enum":["platform_receipt","creator_association"],"title":"Association Source"},"association":{"anyOf":[{"$ref":"#/components/schemas/Attribution"},{"type":"null"}]},"at_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"At Age"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"},"sample":{"$ref":"#/components/schemas/Leader"},"reference":{"$ref":"#/components/schemas/experiment_decisions__Reference"},"baseline":{"$ref":"#/components/schemas/Baseline"}},"type":"object","required":["delivery_id","external_post_id","account_id","association_source","association","at_age","as_of","captured_at","sample","reference","baseline"],"title":"FrozenEvidence"},"FrozenPeriod":{"properties":{"account_id":{"type":"string","maxLength":100,"minLength":1,"title":"Account Id"},"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"metric":{"type":"string","enum":["views","likes","comments","shares","saves"],"title":"Metric"},"method":{"type":"string","enum":["timed","source_days"],"title":"Method"},"digest":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[a-f0-9]{64}$","title":"Digest"},"account_name":{"type":"string","title":"Account Name"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"},"previous_start":{"type":"string","format":"date","title":"Previous Start"},"previous_end":{"type":"string","format":"date","title":"Previous End"},"summary":{"anyOf":[{"$ref":"#/components/schemas/TimedSummary"},{"$ref":"#/components/schemas/SourceDays"}],"title":"Summary"}},"additionalProperties":false,"type":"object","required":["account_id","start","end","as_of","metric","method","digest","account_name","captured_at","previous_start","previous_end","summary"],"title":"FrozenPeriod"},"FrozenWatch":{"properties":{"window":{"anyOf":[{"$ref":"#/components/schemas/watch_retention__Window"},{"type":"null"}]},"current":{"$ref":"#/components/schemas/MeasuredCohort"},"previous":{"$ref":"#/components/schemas/MeasuredCohort"},"account_id":{"type":"string","maxLength":100,"minLength":1,"title":"Account Id"},"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"rank_second":{"type":"integer","enum":[1,3,5],"title":"Rank Second"},"at_age":{"anyOf":[{"type":"string","enum":["24h","48h","72h","7d"]},{"type":"null"}],"title":"At Age"},"digest":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[a-f0-9]{64}$","title":"Digest"},"account_name":{"type":"string","title":"Account Name"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"}},"additionalProperties":false,"type":"object","required":["window","current","previous","account_id","start","end","as_of","rank_second","at_age","digest","account_name","captured_at"],"title":"FrozenWatch"},"FrozenWatchEvidence":{"properties":{"delivery_id":{"type":"string","title":"Delivery Id"},"external_post_id":{"type":"string","title":"External Post Id"},"account_id":{"type":"string","title":"Account Id"},"association_source":{"type":"string","enum":["platform_receipt","creator_association"],"title":"Association Source"},"association":{"anyOf":[{"$ref":"#/components/schemas/Attribution"},{"type":"null"}]},"at_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"At Age"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"},"kind":{"type":"string","const":"watch","title":"Kind"},"watch_reference":{"$ref":"#/components/schemas/WatchGoal"},"watch_result":{"$ref":"#/components/schemas/WatchOutcome"}},"type":"object","required":["delivery_id","external_post_id","account_id","association_source","association","at_age","as_of","captured_at","kind","watch_reference","watch_result"],"title":"FrozenWatchEvidence"},"Group":{"properties":{"value":{"type":"string","title":"Value"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"metric_posts":{"type":"integer","title":"Metric Posts"},"median_per_post":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Per Post"},"age_coverage":{"additionalProperties":{"$ref":"#/components/schemas/AgeCoverage"},"propertyNames":{"enum":["24h","48h","72h","7d"]},"type":"object","title":"Age Coverage"},"report":{"$ref":"#/components/schemas/PerformanceReport"}},"type":"object","required":["value","score","metric_posts","median_per_post","age_coverage","report"],"title":"Group"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HistoryItem":{"properties":{"sequence":{"type":"integer","title":"Sequence"},"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"external_post_id":{"type":"string","title":"External Post Id"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"source":{"type":"string","title":"Source"},"source_kind":{"type":"string","enum":["import","provider"],"title":"Source Kind"},"metrics":{"$ref":"#/components/schemas/Metrics"},"rates":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"null"}]},"propertyNames":{"enum":["likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"]},"type":"object","title":"Rates"},"shares_per_1000_views":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shares Per 1000 Views"},"observation_age_hours":{"type":"number","title":"Observation Age Hours"},"reported_published_at":{"type":"string","format":"date-time","title":"Reported Published At"},"usable_for_report":{"type":"boolean","title":"Usable For Report"}},"type":"object","required":["sequence","account_id","account_name","platform","external_post_id","published_at","observed_at","title","permalink","source","source_kind","metrics","rates","shares_per_1000_views","observation_age_hours","reported_published_at","usable_for_report"],"title":"HistoryItem"},"Hold":{"properties":{"second":{"type":"integer","title":"Second"},"posts":{"type":"integer","title":"Posts"},"median_fraction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Fraction"}},"type":"object","required":["second","posts","median_fraction"],"title":"Hold"},"Idea":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_daily":{"anyOf":[{"$ref":"#/components/schemas/idea_daily__Available"},{"$ref":"#/components/schemas/Removed"},{"type":"null"}],"title":"Source Daily"},"source_watch":{"anyOf":[{"$ref":"#/components/schemas/idea_watch__Available"},{"$ref":"#/components/schemas/Removed"},{"type":"null"}],"title":"Source Watch"},"source_reading":{"anyOf":[{"$ref":"#/components/schemas/idea_readings__Available"},{"$ref":"#/components/schemas/Removed"},{"type":"null"}],"title":"Source Reading"},"text":{"type":"string","title":"Text"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"state":{"type":"string","enum":["inbox","shortlisted","used","archived"],"title":"State"},"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_by":{"type":"string","title":"Created By"},"created_by_type":{"type":"string","enum":["creator","agent"],"title":"Created By Type"},"working_draft_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Working Draft Id"},"has_deliveries":{"type":"boolean","title":"Has Deliveries"},"workspace_url":{"type":"string","title":"Workspace Url","description":"Private browser link to this specific idea. Opening it requires its creator's workspace session."}},"type":"object","required":["id","source_daily","source_watch","source_reading","text","account_id","state","version","created_at","updated_at","created_by","created_by_type","working_draft_id","has_deliveries","workspace_url"],"title":"Idea"},"IdeaDelivery":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"mode":{"type":"string","enum":["draft","direct"],"title":"Mode"},"state":{"type":"string","enum":["queued","awaiting_approval","sent","landed_as_draft","published","failed","cancelled"],"title":"State"},"requested_at":{"type":"string","format":"date-time","title":"Requested At"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"failure_outcome":{"anyOf":[{"type":"string","enum":["not_sent","provider_rejected","unconfirmed"]},{"type":"null"}],"title":"Failure Outcome"},"status_url":{"type":"string","title":"Status Url"},"account_review_url":{"type":"string","title":"Account Review Url"},"published_posts":{"items":{"$ref":"#/components/schemas/PublishedPost"},"type":"array","title":"Published Posts","description":"Distinct final IDs attested by the provider, in receipt order. An inbox ticket is not a published ID."}},"type":"object","required":["id","account_id","account_name","platform","mode","state","requested_at","scheduled_at","error","failure_outcome","status_url","account_review_url","published_posts"],"title":"IdeaDelivery"},"Import":{"properties":{"account_id":{"type":"string","maxLength":100,"minLength":1,"title":"Account Id"},"observations":{"items":{"$ref":"#/components/schemas/watch_retention__Capture"},"type":"array","maxItems":100,"minItems":1,"title":"Observations"}},"additionalProperties":false,"type":"object","required":["account_id","observations"],"title":"Import"},"ImportReceipt":{"properties":{"account_id":{"type":"string","title":"Account Id"},"inserted":{"type":"integer","title":"Inserted"},"unchanged":{"type":"integer","title":"Unchanged"}},"type":"object","required":["account_id","inserted","unchanged"],"title":"ImportReceipt"},"InstagramSettings":{"properties":{"is_ai_generated":{"type":"boolean","title":"Is Ai Generated"},"share_to_feed":{"type":"boolean","title":"Share To Feed"}},"additionalProperties":false,"type":"object","title":"InstagramSettings"},"IntendedProfile":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle"},"kind":{"type":"string","enum":["archive","connected","disconnected"],"title":"Kind"}},"type":"object","required":["id","name","handle","kind"],"title":"IntendedProfile"},"Interval":{"properties":{"from_second":{"type":"integer","title":"From Second"},"to_second":{"type":"integer","title":"To Second"},"from_fraction":{"type":"number","title":"From Fraction"},"to_fraction":{"type":"number","title":"To Fraction"},"drop_pp":{"type":"number","title":"Drop Pp","description":"Starting minus ending retention in percentage points. Negative means retention increased."}},"type":"object","required":["from_second","to_second","from_fraction","to_fraction","drop_pp"],"title":"Interval"},"Inventory":{"properties":{"posts":{"type":"integer","title":"Posts"},"observations":{"type":"integer","title":"Observations"},"earliest_publication":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Earliest Publication"},"latest_publication":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Publication"},"first_measurement":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Measurement"},"last_measurement":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Measurement"},"freshness":{"anyOf":[{"$ref":"#/components/schemas/ProfileFreshness"},{"type":"null"}],"description":"Current stored source coverage and native engagement collection for one selected profile. For all profiles, use the paginated profile roundup."}},"type":"object","required":["posts","observations","earliest_publication","latest_publication","first_measurement","last_measurement","freshness"],"title":"Inventory"},"LabelComparison":{"properties":{"dimension":{"type":"string","enum":["topic","series","format"],"title":"Dimension"},"unlabeled_posts":{"type":"integer","title":"Unlabeled Posts"},"groups":{"items":{"$ref":"#/components/schemas/Group"},"type":"array","title":"Groups"},"shared_metric_ages":{"items":{"type":"string","enum":["24h","48h","72h","7d"]},"type":"array","title":"Shared Metric Ages"}},"type":"object","required":["dimension","unlabeled_posts","groups","shared_metric_ages"],"title":"LabelComparison"},"LabelEdit":{"properties":{"version":{"type":"integer","minimum":0.0,"title":"Version"},"labels":{"$ref":"#/components/schemas/Labels"}},"additionalProperties":false,"type":"object","required":["version","labels"],"title":"LabelEdit"},"Labels":{"properties":{"topic":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Topic"},"series":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Series"},"format":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Format"}},"additionalProperties":false,"type":"object","title":"Labels"},"Leader":{"properties":{"sequence":{"type":"integer","title":"Sequence"},"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"external_post_id":{"type":"string","title":"External Post Id"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"source":{"type":"string","title":"Source"},"source_kind":{"type":"string","enum":["import","provider"],"title":"Source Kind"},"metrics":{"$ref":"#/components/schemas/Metrics"},"rates":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"null"}]},"propertyNames":{"enum":["likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"]},"type":"object","title":"Rates"},"shares_per_1000_views":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shares Per 1000 Views"},"observation_age_hours":{"type":"number","title":"Observation Age Hours"}},"type":"object","required":["sequence","account_id","account_name","platform","external_post_id","published_at","observed_at","title","permalink","source","source_kind","metrics","rates","shares_per_1000_views","observation_age_hours"],"title":"Leader"},"Manifest":{"properties":{"profiles":{"items":{"oneOf":[{"$ref":"#/components/schemas/PostBridge"},{"$ref":"#/components/schemas/Pipeline"}],"discriminator":{"propertyName":"source","mapping":{"pipeline":"#/components/schemas/Pipeline","post_bridge":"#/components/schemas/PostBridge"}}},"type":"array","minItems":1,"title":"Profiles"}},"additionalProperties":false,"type":"object","required":["profiles"],"title":"Manifest"},"MatchedMovement":{"properties":{"current":{"$ref":"#/components/schemas/ChangeCoverage"},"previous":{"$ref":"#/components/schemas/ChangeCoverage"},"difference":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Difference"}},"type":"object","title":"MatchedMovement"},"MeasuredCohort":{"properties":{"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"published_posts":{"type":"integer","title":"Published Posts","description":"All posts in this owned post library with a canonical UTC publication date in this period."},"captured_posts":{"type":"integer","title":"Captured Posts","description":"Posts with any valid Studio capture by the cutoff, independent of matching."},"mature_posts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mature Posts","description":"Library posts that reached the selected age by the cutoff. Null in latest mode."},"eligible_posts":{"type":"integer","title":"Eligible Posts","description":"Captured posts old enough for the requested age. In latest mode, all captured posts are eligible."},"matched_posts":{"type":"integer","title":"Matched Posts","description":"Eligible posts with a selected capture, including photos and unknown formats."},"video_posts":{"type":"integer","title":"Video Posts"},"photo_posts":{"type":"integer","title":"Photo Posts"},"unknown_posts":{"type":"integer","title":"Unknown Posts"},"curve_posts":{"type":"integer","title":"Curve Posts"},"min_capture_age_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Capture Age Hours"},"max_capture_age_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Capture Age Hours"},"hold":{"items":{"$ref":"#/components/schemas/Hold"},"type":"array","title":"Hold"},"drops":{"items":{"$ref":"#/components/schemas/Drop"},"type":"array","title":"Drops"},"average_watch_seconds":{"$ref":"#/components/schemas/watch_retention__Summary"},"completion_fraction":{"$ref":"#/components/schemas/watch_retention__Summary"},"top_posts":{"items":{"$ref":"#/components/schemas/SampleIdentity"},"type":"array","title":"Top Posts"},"shares_by_hold":{"anyOf":[{"$ref":"#/components/schemas/SharesByHold"},{"type":"null"}],"description":"Age-matched Studio checkpoint and engagement shares/positive views across all paired videos. The period's paired median defines the above, at-median and below groups."}},"type":"object","required":["start","end","published_posts","captured_posts","mature_posts","eligible_posts","matched_posts","video_posts","photo_posts","unknown_posts","curve_posts","min_capture_age_hours","max_capture_age_hours","hold","drops","average_watch_seconds","completion_fraction","top_posts"],"title":"MeasuredCohort"},"MetricComparison":{"properties":{"target":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Target"},"peer_count":{"type":"integer","title":"Peer Count"},"peer_median":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"null"}],"title":"Peer Median"},"below_target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Below Target"},"equal_to_target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Equal To Target"},"above_target":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Above Target"}},"type":"object","required":["target","peer_count","peer_median","below_target","equal_to_target","above_target"],"title":"MetricComparison"},"Metrics":{"properties":{"views":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Views"},"likes":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Likes"},"comments":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Comments"},"shares":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Shares"},"saves":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Saves"}},"additionalProperties":false,"type":"object","title":"Metrics"},"Mover":{"properties":{"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"external_post_id":{"type":"string","title":"External Post Id"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"source":{"type":"string","title":"Source"},"source_kind":{"type":"string","enum":["import","provider"],"title":"Source Kind"},"first_observed_at":{"type":"string","format":"date-time","title":"First Observed At"},"last_observed_at":{"type":"string","format":"date-time","title":"Last Observed At"},"first_sequence":{"type":"integer","title":"First Sequence"},"last_sequence":{"type":"integer","title":"Last Sequence"},"first_value":{"type":"integer","title":"First Value"},"last_value":{"type":"integer","title":"Last Value"},"change":{"type":"integer","title":"Change"}},"type":"object","required":["account_id","account_name","platform","external_post_id","published_at","title","permalink","source","source_kind","first_observed_at","last_observed_at","first_sequence","last_sequence","first_value","last_value","change"],"title":"Mover"},"NativeEngagement":{"properties":{"access":{"type":"string","enum":["scope_granted","consent_available","reconnect_required","archive_only","unavailable","previous_app"],"title":"Access"},"metrics_consent_configured":{"type":"boolean","title":"Metrics Consent Configured","description":"This installation can request the platform metrics scope. Per-profile authorization is reported in access."},"schedule_state":{"anyOf":[{"type":"string","enum":["off","scheduled","collecting","retrying","paused","awaiting_reauthorization"]},{"type":"null"}],"title":"Schedule State"},"interval_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Interval Hours"},"last_scheduled_success_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Scheduled Success At"},"next_scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Scheduled At"}},"type":"object","required":["access","metrics_consent_configured","schedule_state","interval_hours","last_scheduled_success_at","next_scheduled_at"],"title":"NativeEngagement"},"Need":{"properties":{"media_kind":{"type":"string","enum":["video","unknown"],"title":"Media Kind"},"reason":{"type":"string","enum":["no_age_capture","missing_checkpoint","unconfirmed_format"],"title":"Reason"},"selected_captured_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Selected Captured At"},"action":{"type":"string","enum":["wait_for_window","collect_studio_capture","import_prior_capture","fixed_capture_missing"],"title":"Action"},"capture_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Capture From","description":"Earliest eligible new source timestamp inclusive, using microsecond precision and the earlier tie rule."},"capture_through":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Capture Through","description":"Last eligible new source timestamp inclusive. Null if no other capture can improve the selected instant."}},"type":"object","required":["media_kind","reason","selected_captured_at","action","capture_from","capture_through"],"title":"Need"},"NewPost":{"properties":{"account_id":{"type":"string","title":"Account Id"},"media_ids":{"items":{"type":"string"},"type":"array","maxItems":35,"minItems":1,"title":"Media Ids"},"mode":{"type":"string","enum":["draft","direct"],"title":"Mode"},"caption":{"type":"string","maxLength":4000,"title":"Caption","default":""},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"require_review":{"type":"boolean","title":"Require Review","description":"Require creator approval before Instagram publication. TikTok Direct always requires approval.","default":false},"settings":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Settings"},"source_draft_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Source Draft Id","description":"Optional workspace draft that inspired this delivery."}},"additionalProperties":false,"type":"object","required":["account_id","media_ids","mode"],"title":"NewPost"},"Note":{"properties":{"start":{"type":"string","format":"date","title":"Start","description":"First date covered, inclusive."},"end":{"type":"string","format":"date","title":"End","description":"Last date covered, inclusive."},"account_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Account Id"},"observation":{"type":"string","maxLength":8000,"minLength":1,"title":"Observation","description":"What the evidence showed, and any caveats."},"next_test":{"type":"string","maxLength":4000,"title":"Next Test","description":"What to try and how to judge the result.","default":""},"report_as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Report As Of","description":"Observation cutoff for the referenced report. Defaults to the cited period cutoff, otherwise creation time."},"report_at_age":{"anyOf":[{"type":"string","enum":["24h","48h","72h","7d"]},{"type":"null"}],"title":"Report At Age"},"report_rank_by":{"type":"string","enum":["views","likes","comments","shares","saves","likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"],"title":"Report Rank By","default":"views"},"evidence":{"items":{"$ref":"#/components/schemas/note_evidence__Reference"},"type":"array","maxItems":12,"title":"Evidence","description":"Ordered references to measured observations, identified by account_id and archive sequence. Omit on edits to keep existing evidence."},"daily_evidence":{"anyOf":[{"$ref":"#/components/schemas/DailyEvidenceRef"},{"type":"null"}],"description":"Post Bridge source-calendar comparison to capture. Use the exact evidence_ref from daily movers. Omit on edits to keep it; null removes it."},"period_evidence":{"anyOf":[{"$ref":"#/components/schemas/PeriodEvidenceRef"},{"type":"null"}],"description":"One period_evidence_refs value from this profile review. Its account, dates and cutoff must match the note. Omit on edits to keep; null clears."},"watch_evidence":{"anyOf":[{"$ref":"#/components/schemas/WatchReference"},{"type":"null"}],"description":"Cite a measured viewer-retention report with this note's account, publication dates and cutoff. Omit on edit to keep; null removes it."}},"additionalProperties":false,"type":"object","required":["start","end","observation"],"title":"Note"},"NotebookEntry":{"properties":{"id":{"type":"string","title":"Id"},"workspace_url":{"type":"string","title":"Workspace Url"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"author":{"type":"string","title":"Author"},"author_type":{"type":"string","title":"Author Type"},"last_editor":{"type":"string","title":"Last Editor"},"last_editor_type":{"type":"string","title":"Last Editor Type"},"report_as_of":{"type":"string","format":"date-time","title":"Report As Of"},"evidence":{"items":{"$ref":"#/components/schemas/Evidence"},"type":"array","title":"Evidence"},"daily_evidence":{"anyOf":[{"$ref":"#/components/schemas/FrozenDay"},{"type":"null"}]},"period_evidence":{"anyOf":[{"$ref":"#/components/schemas/FrozenPeriod"},{"type":"null"}]},"watch_evidence":{"anyOf":[{"$ref":"#/components/schemas/FrozenWatch"},{"type":"null"}]},"observation_excerpt":{"type":"string","title":"Observation Excerpt"},"next_test_excerpt":{"type":"string","title":"Next Test Excerpt"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_url","account_id","start","end","author","author_type","last_editor","last_editor_type","report_as_of","evidence","daily_evidence","period_evidence","watch_evidence","observation_excerpt","next_test_excerpt","updated_at"],"title":"NotebookEntry"},"NotebookSearch":{"properties":{"q":{"type":"string","maxLength":240,"title":"Q","default":""},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End"},"only_with_next_test":{"type":"boolean","title":"Only With Next Test","default":false},"before":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Before"},"limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Limit","default":50}},"additionalProperties":false,"type":"object","title":"NotebookSearch"},"Notes":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NotebookEntry"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"Notes"},"Observation":{"properties":{"external_post_id":{"type":"string","maxLength":160,"minLength":1,"pattern":"^[^\\s/?#]+$","title":"External Post Id","description":"Canonical TikTok video ID or Instagram media ID from the platform."},"published_at":{"type":"string","format":"date-time","title":"Published At"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"title":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Permalink"},"source":{"type":"string","maxLength":160,"minLength":1,"title":"Source","description":"How these figures were obtained, for example a creator analytics export."},"metrics":{"$ref":"#/components/schemas/Metrics"}},"additionalProperties":false,"type":"object","required":["external_post_id","published_at","observed_at","source","metrics"],"title":"Observation"},"ObservationBatch":{"properties":{"account_id":{"type":"string","title":"Account Id"},"observations":{"items":{"$ref":"#/components/schemas/Observation"},"type":"array","maxItems":100,"minItems":1,"title":"Observations"}},"additionalProperties":false,"type":"object","required":["account_id","observations"],"title":"ObservationBatch"},"ObservationPreview":{"properties":{"account_id":{"type":"string","title":"Account Id"},"total":{"type":"integer","title":"Total"},"missing":{"type":"integer","title":"Missing"},"identical":{"type":"integer","title":"Identical"},"conflicts":{"type":"integer","title":"Conflicts"},"items":{"items":{"$ref":"#/components/schemas/PreviewItem"},"type":"array","title":"Items"}},"type":"object","required":["account_id","total","missing","identical","conflicts","items"],"title":"ObservationPreview"},"ObservedDrop":{"properties":{"from_second":{"type":"number","title":"From Second"},"to_second":{"type":"number","title":"To Second"},"gap_seconds":{"type":"number","title":"Gap Seconds"},"from_fraction":{"type":"number","title":"From Fraction"},"to_fraction":{"type":"number","title":"To Fraction"},"drop_pp":{"type":"number","title":"Drop Pp","description":"Absolute decrease in percentage points between consecutive source samples. Earliest interval wins a tie."}},"type":"object","required":["from_second","to_second","gap_seconds","from_fraction","to_fraction","drop_pp"],"title":"ObservedDrop"},"Option":{"properties":{"profile":{"$ref":"#/components/schemas/Profile"},"selection":{"oneOf":[{"$ref":"#/components/schemas/PostBridge"},{"$ref":"#/components/schemas/Pipeline"}],"title":"Selection","discriminator":{"propertyName":"source","mapping":{"pipeline":"#/components/schemas/Pipeline","post_bridge":"#/components/schemas/PostBridge"}}},"evidence_post_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Post Id"},"evidence_permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Permalink"},"evidence_posts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evidence Posts"}},"additionalProperties":false,"type":"object","required":["profile","selection"],"title":"Option"},"PasswordConfirmation":{"properties":{"current_password":{"type":"string","maxLength":1024,"format":"password","title":"Current Password","writeOnly":true}},"type":"object","required":["current_password"],"title":"PasswordConfirmation"},"Peer":{"properties":{"external_post_id":{"type":"string","title":"External Post Id"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"age_eligible":{"type":"boolean","title":"Age Eligible"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Title on the matched reading, or the title on the latest timed reading by cutoff when no reading matched."},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"reading":{"anyOf":[{"$ref":"#/components/schemas/Leader"},{"type":"null"}],"description":"The exact age-selected peer observation with raw counters, rates and source; null when unmatched."},"relative_to_target":{"additionalProperties":{"anyOf":[{"type":"string","enum":["above","equal","below"]},{"type":"null"}]},"propertyNames":{"enum":["views","likes","comments","shares","saves","likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"]},"type":"object","title":"Relative To Target","description":"Each peer value compared to the selected post’s value at this age. Null if either value is unavailable."},"benchmark_url":{"type":"string","title":"Benchmark Url"},"sequence":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sequence"},"observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Observed At"},"observation_age_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Observation Age Hours"}},"type":"object","required":["external_post_id","published_at","age_eligible","title","permalink","reading","relative_to_target","benchmark_url","sequence","observed_at","observation_age_hours"],"title":"Peer"},"PerformanceReport":{"properties":{"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"post_count":{"type":"integer","title":"Post Count"},"coverage":{"additionalProperties":{"$ref":"#/components/schemas/performance__Coverage"},"propertyNames":{"enum":["views","likes","comments","shares","saves"]},"type":"object","title":"Coverage"},"weighted_rates":{"additionalProperties":{"$ref":"#/components/schemas/WeightedRate"},"propertyNames":{"enum":["likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"]},"type":"object","title":"Weighted Rates"},"weighted_shares_per_1000_views":{"$ref":"#/components/schemas/WeightedShares"},"rank_by":{"type":"string","enum":["views","likes","comments","shares","saves","likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"],"title":"Rank By"},"leaders":{"items":{"$ref":"#/components/schemas/Leader"},"type":"array","title":"Leaders"},"comparison":{"anyOf":[{"$ref":"#/components/schemas/Comparison"},{"type":"null"}]}},"type":"object","required":["start","end","as_of","account_id","post_count","coverage","weighted_rates","weighted_shares_per_1000_views","rank_by","leaders","comparison"],"title":"PerformanceReport"},"Period":{"properties":{"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"}},"type":"object","required":["start","end"],"title":"Period"},"PeriodEvidenceRef":{"properties":{"account_id":{"type":"string","maxLength":100,"minLength":1,"title":"Account Id"},"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"metric":{"type":"string","enum":["views","likes","comments","shares","saves"],"title":"Metric"},"method":{"type":"string","enum":["timed","source_days"],"title":"Method"},"digest":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[a-f0-9]{64}$","title":"Digest"}},"additionalProperties":false,"type":"object","required":["account_id","start","end","as_of","metric","method","digest"],"title":"PeriodEvidenceRef"},"PeriodRefs":{"properties":{"timed":{"anyOf":[{"$ref":"#/components/schemas/PeriodEvidenceRef"},{"type":"null"}]},"source_days":{"anyOf":[{"$ref":"#/components/schemas/PeriodEvidenceRef"},{"type":"null"}]}},"type":"object","title":"PeriodRefs"},"Pipeline":{"properties":{"source":{"type":"string","const":"pipeline","title":"Source"},"account_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,100}$","title":"Account Id"},"handle":{"type":"string","maxLength":24,"minLength":1,"pattern":"^[a-z0-9._]*[a-z0-9_]$","title":"Handle"}},"additionalProperties":false,"type":"object","required":["source","account_id","handle"],"title":"Pipeline"},"PipelineIdentity":{"properties":{"handle":{"type":"string","maxLength":24,"minLength":1,"pattern":"^[a-z0-9._]*[a-z0-9_]$","title":"Handle"},"external_post_id":{"type":"string","pattern":"^[0-9]{1,160}$","title":"External Post Id"},"permalink":{"type":"string","maxLength":256,"title":"Permalink"}},"additionalProperties":false,"type":"object","required":["handle","external_post_id","permalink"],"title":"PipelineIdentity"},"PlannedTest":{"properties":{"note_id":{"type":"string","title":"Note Id"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"author":{"type":"string","title":"Author"},"last_editor":{"type":"string","title":"Last Editor"},"next_test_excerpt":{"type":"string","title":"Next Test Excerpt"}},"type":"object","required":["note_id","account_id","author","last_editor","next_test_excerpt"],"title":"PlannedTest"},"PostBenchmark":{"properties":{"workspace_url":{"type":"string","title":"Workspace Url"},"account_name":{"type":"string","title":"Account Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"account_id":{"type":"string","title":"Account Id"},"external_post_id":{"type":"string","title":"External Post Id"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"preceding_posts":{"type":"integer","title":"Preceding Posts"},"target_eligible":{"type":"boolean","title":"Target Eligible"},"target":{"anyOf":[{"$ref":"#/components/schemas/Leader"},{"type":"null"}]},"comparison":{"$ref":"#/components/schemas/Comparison"},"metrics":{"additionalProperties":{"$ref":"#/components/schemas/MetricComparison"},"propertyNames":{"enum":["views","likes","comments","shares","saves","likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"]},"type":"object","title":"Metrics"},"peers":{"items":{"$ref":"#/components/schemas/Peer"},"type":"array","title":"Peers"}},"type":"object","required":["workspace_url","account_name","title","account_id","external_post_id","published_at","as_of","preceding_posts","target_eligible","target","comparison","metrics","peers"],"title":"PostBenchmark"},"PostBridge":{"properties":{"source":{"type":"string","const":"post_bridge","title":"Source"},"account_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,100}$","title":"Account Id"},"handle":{"type":"string","maxLength":24,"minLength":1,"pattern":"^[a-z0-9._]*[a-z0-9_]$","title":"Handle"},"source_account_id":{"type":"string","pattern":"^[1-9][0-9]{0,18}$","title":"Source Account Id"}},"additionalProperties":false,"type":"object","required":["source","account_id","handle","source_account_id"],"title":"PostBridge"},"PostLabels":{"properties":{"account_id":{"type":"string","title":"Account Id"},"external_post_id":{"type":"string","title":"External Post Id"},"labels":{"$ref":"#/components/schemas/Labels"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["account_id","external_post_id","labels","version"],"title":"PostLabels"},"PostOutcome":{"properties":{"external_post_id":{"type":"string","title":"External Post Id"},"association_source":{"type":"string","enum":["platform_receipt","explicit"],"title":"Association Source"},"status":{"type":"string","title":"Status"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published At"},"capture_window":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Capture Window"},"sample":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sample"},"watch_result":{"anyOf":[{"$ref":"#/components/schemas/WatchOutcome"},{"type":"null"}]}},"type":"object","required":["external_post_id","association_source","status","title","permalink","published_at","capture_window","sample","watch_result"],"title":"PostOutcome"},"PostReceipt":{"properties":{"dispatch_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Dispatch Started At","description":"UTC instant when the worker first claimed this delivery, if recorded."},"next_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Attempt At","description":"Earliest eligibility for the pending worker step. Can be in the past. Null during a marked provider operation or outside queued/sent."},"consecutive_retries":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Consecutive Retries","description":"Consecutive retry deferrals for the pending step. Resets after successful steps. Null outside queued/sent."},"dispatch_phase":{"anyOf":[{"type":"string","enum":["scheduled","ready","processing","retry_wait","awaiting_provider","waiting","awaiting_reauthorization"]},{"type":"null"}],"title":"Dispatch Phase","description":"Current worker scheduling fact for queued/sent rows. Processing requires a persisted in-flight provider-operation marker; ready means eligible, including preflight checks. Waiting means a future eligibility time without a recorded reason."},"requested_by":{"anyOf":[{"$ref":"#/components/schemas/Requester"},{"type":"null"}]},"requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Requested At"},"account_name":{"type":"string","title":"Account Name","description":"Current name reported by the connected platform."},"account_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Label","description":"Current private workspace label for this stable destination."},"account_name_ambiguous":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Account Name Ambiguous","description":"Workspace-wide name collision. Omitted for single-account delivery keys."},"id":{"type":"string","title":"Id"},"account_id":{"type":"string","title":"Account Id"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"mode":{"type":"string","enum":["draft","direct"],"title":"Mode"},"kind":{"type":"string","enum":["video","photos"],"title":"Kind"},"caption":{"type":"string","title":"Caption"},"state":{"type":"string","enum":["queued","awaiting_approval","sent","landed_as_draft","published","failed","cancelled"],"title":"State"},"scheduled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"failure_outcome":{"anyOf":[{"type":"string","enum":["not_sent","provider_rejected","unconfirmed"]},{"type":"null"}],"title":"Failure Outcome"},"version":{"type":"integer","title":"Version"},"source_draft_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Draft Id"},"crop_notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crop Notice","description":"Instagram’s framing rule for a photo carousel."},"published_media_ids":{"items":{"type":"string"},"type":"array","title":"Published Media Ids"},"tiktok_media_first_seen":{"additionalProperties":{"type":"string","format":"date-time"},"type":"object","title":"Tiktok Media First Seen","description":"When each exact TikTok media ID was first recorded locally. Older receipts can lack timestamps."},"can_check_tiktok_publication":{"type":"boolean","title":"Can Check Tiktok Publication","description":"The receipt has a TikTok inbox ticket eligible for an explicit status lookup. Requires a current publishing connection and creator, full, or matching delivery access."},"can_manage":{"type":"boolean","title":"Can Manage","description":"The delivery is still eligible for cancellation or rescheduling by a creator or full-access key. Once the worker first claims it, later retries and status checks keep this false. Use the latest version when requesting a change."},"settings":{"additionalProperties":true,"type":"object","title":"Settings"},"media_ids":{"items":{"type":"string"},"type":"array","title":"Media Ids"},"review_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Url"},"status_url":{"type":"string","title":"Status Url","description":"Private browser page for this delivery, in every state."},"require_review":{"type":"boolean","title":"Require Review","description":"This delivery requires creator approval, including after a schedule change."}},"type":"object","required":["dispatch_started_at","next_attempt_at","consecutive_retries","dispatch_phase","requested_by","requested_at","account_name","account_label","id","account_id","platform","mode","kind","caption","state","scheduled_at","error","failure_outcome","version","source_draft_id","published_media_ids","tiktok_media_first_seen","can_check_tiktok_publication","can_manage","settings","media_ids","review_url","status_url","require_review"],"title":"PostReceipt"},"PostVersion":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version","description":"The version of the post you last read."}},"additionalProperties":false,"type":"object","required":["version"],"title":"PostVersion"},"PreviewItem":{"properties":{"index":{"type":"integer","title":"Index","description":"Zero-based position in the supplied batch."},"external_post_id":{"type":"string","title":"External Post Id"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"status":{"type":"string","enum":["missing","identical","conflict"],"title":"Status"},"reason":{"anyOf":[{"type":"string","enum":["observation_mismatch","publication_mismatch"]},{"type":"null"}],"title":"Reason"}},"type":"object","required":["index","external_post_id","observed_at","status"],"title":"PreviewItem"},"PreviousComparison":{"properties":{"previous_window":{"$ref":"#/components/schemas/ActivityWindow"},"same_posts":{"additionalProperties":{"$ref":"#/components/schemas/MatchedMovement"},"propertyNames":{"enum":["views","likes","comments","shares","saves"]},"type":"object","title":"Same Posts"}},"type":"object","required":["previous_window","same_posts"],"title":"PreviousComparison"},"Profile":{"properties":{"workspace_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Label"},"name_ambiguous":{"type":"boolean","title":"Name Ambiguous","default":false},"id":{"type":"string","title":"Id"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"name":{"type":"string","title":"Name"},"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle"},"source":{"anyOf":[{"type":"string","const":"post_bridge"},{"type":"null"}],"title":"Source"},"source_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Account Id"},"kind":{"type":"string","enum":["archive","connected"],"title":"Kind"},"authorization_status":{"anyOf":[{"type":"string","enum":["revoked","reauthorization_required","previous_app"]},{"type":"null"}],"title":"Authorization Status","description":"previous_app identifies retained history from a retired TikTok client. A new app uses its own publishing identity."}},"type":"object","required":["id","platform","name","handle","source","source_account_id","kind"],"title":"Profile"},"ProfileFreshness":{"properties":{"latest_publication_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Publication At","description":"Newest canonical publication in this profile's measured post library."},"latest_engagement_observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Engagement Observed At","description":"Latest stored engagement observation, across all posts and sources."},"latest_watch_captured_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Watch Captured At","description":"Latest actual Studio capture, including captures with missing video curves."},"latest_post_bridge_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Latest Post Bridge Date","description":"Latest stored source date, even if unpaired. Source timezone is unspecified."},"collector_checks":{"items":{"$ref":"#/components/schemas/history_checks__Summary"},"type":"array","title":"Collector Checks","description":"Creator-hosted engagement collector receipts. A check timestamp is local receipt time and does not date a measurement or Studio watch capture."},"native_engagement":{"$ref":"#/components/schemas/NativeEngagement"},"watch_import_available":{"type":"boolean","title":"Watch Import Available","description":"This profile can accept actual private Studio captures. Availability of newer readings upstream is unknown."},"post_bridge_import_available":{"type":"boolean","title":"Post Bridge Import Available","description":"This profile is bound to a Post Bridge source identity and can accept its daily records."}},"type":"object","required":["latest_publication_at","latest_engagement_observed_at","latest_watch_captured_at","latest_post_bridge_date","collector_checks","native_engagement","watch_import_available","post_bridge_import_available"],"title":"ProfileFreshness"},"ProfileRoundup":{"properties":{"workspace_url":{"type":"string","title":"Workspace Url"},"days":{"type":"integer","title":"Days"},"metric":{"type":"string","enum":["views","likes","comments","shares","saves"],"title":"Metric"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"current":{"$ref":"#/components/schemas/Period"},"previous":{"$ref":"#/components/schemas/Period"},"methods":{"$ref":"#/components/schemas/RoundupMethods"},"items":{"items":{"$ref":"#/components/schemas/RoundupItem"},"type":"array","title":"Items"},"next_after":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next After"}},"type":"object","required":["workspace_url","days","metric","as_of","current","previous","items","next_after"],"title":"ProfileRoundup"},"PublicationCheck":{"properties":{"post":{"$ref":"#/components/schemas/PostReceipt"},"provider_status":{"type":"string","enum":["PROCESSING_UPLOAD","PROCESSING_DOWNLOAD","SEND_TO_USER_INBOX","PUBLISH_COMPLETE"],"title":"Provider Status"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"}},"type":"object","required":["post","provider_status","checked_at"],"title":"PublicationCheck"},"PublishedPost":{"properties":{"external_post_id":{"type":"string","title":"External Post Id"},"history_url":{"type":"string","title":"History Url"},"benchmark_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Benchmark Url"},"measurement":{"anyOf":[{"$ref":"#/components/schemas/TimedMeasurement"},{"type":"null"}],"description":"Latest eligible timestamped observation on this delivery account at read_at."},"last_source_day":{"anyOf":[{"$ref":"#/components/schemas/SourceDay"},{"type":"null"}],"description":"Latest current Post Bridge source record, independent of the timed observation cutoff."}},"type":"object","required":["external_post_id","history_url","benchmark_url","measurement","last_source_day"],"title":"PublishedPost"},"QueueItem":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"calendar_at":{"type":"string","format":"date-time","title":"Calendar At"},"caption_excerpt":{"type":"string","title":"Caption Excerpt"},"error_excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Excerpt"},"failure_outcome":{"anyOf":[{"type":"string","enum":["not_sent","provider_rejected","unconfirmed"]},{"type":"null"}],"title":"Failure Outcome","description":"For failed deliveries, null means no outcome was recorded. Awaiting approval has no failure outcome."},"url":{"type":"string","title":"Url"}},"type":"object","required":["id","account_id","account_name","calendar_at","caption_excerpt","error_excerpt","failure_outcome","url"],"title":"QueueItem"},"QueueState":{"properties":{"count":{"type":"integer","title":"Count"},"items":{"items":{"$ref":"#/components/schemas/QueueItem"},"type":"array","title":"Items"}},"type":"object","required":["count","items"],"title":"QueueState"},"RateBaseline":{"properties":{"numerator":{"type":"integer","title":"Numerator"},"views":{"type":"integer","title":"Views"},"posts":{"type":"integer","title":"Posts"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"}},"type":"object","required":["numerator","views","posts","value"],"title":"RateBaseline"},"Reading":{"properties":{"reference":{"$ref":"#/components/schemas/note_evidence__Reference"},"source":{"type":"string","title":"Source"},"source_kind":{"type":"string","enum":["import","provider"],"title":"Source Kind"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"observation_age_hours":{"type":"number","title":"Observation Age Hours"},"metrics":{"$ref":"#/components/schemas/Metrics"}},"type":"object","required":["reference","source","source_kind","observed_at","observation_age_hours","metrics"],"title":"Reading"},"Recovery":{"properties":{"email":{"type":"string","maxLength":254,"minLength":1,"title":"Email"},"recovery_code":{"type":"string","maxLength":128,"format":"password","title":"Recovery Code","writeOnly":true},"new_password":{"type":"string","maxLength":1024,"minLength":12,"format":"password","title":"New Password","writeOnly":true}},"type":"object","required":["email","recovery_code","new_password"],"title":"Recovery"},"Release":{"properties":{"account_id":{"type":"string","title":"Account Id"},"released_files":{"type":"integer","title":"Released Files"},"released_bytes":{"type":"integer","title":"Released Bytes"},"already_released_files":{"type":"integer","title":"Already Released Files"},"already_released_bytes":{"type":"integer","title":"Already Released Bytes"}},"type":"object","required":["account_id","released_files","released_bytes","already_released_files","already_released_bytes"],"title":"Release"},"Removal":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"handle":{"type":"string","title":"Handle"},"has_brief":{"type":"boolean","title":"Has Brief"},"brief_version":{"type":"integer","title":"Brief Version"},"posts":{"type":"integer","title":"Posts"},"readings":{"type":"integer","title":"Readings"},"daily_readings":{"type":"integer","title":"Daily Readings"},"watch_readings":{"type":"integer","title":"Watch Readings"},"labels":{"type":"integer","title":"Labels"},"notes":{"type":"integer","title":"Notes"},"workspace_citations":{"type":"integer","title":"Workspace Citations"},"linked_drafts":{"type":"integer","title":"Linked Drafts"},"linked_deliveries":{"type":"integer","title":"Linked Deliveries"},"assigned_ideas":{"type":"integer","title":"Assigned Ideas"},"idea_source_readings":{"type":"integer","title":"Idea Source Readings"},"idea_source_watch":{"type":"integer","title":"Idea Source Watch"},"idea_source_daily":{"type":"integer","title":"Idea Source Daily"},"revision":{"type":"string","title":"Revision"}},"type":"object","required":["profile_id","handle","has_brief","brief_version","posts","readings","daily_readings","watch_readings","labels","notes","workspace_citations","linked_drafts","linked_deliveries","assigned_ideas","idea_source_readings","idea_source_watch","idea_source_daily","revision"],"title":"Removal"},"Removed":{"properties":{"status":{"type":"string","const":"removed","title":"Status","default":"removed"}},"type":"object","title":"Removed"},"Report":{"properties":{"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"rank_second":{"type":"integer","title":"Rank Second"},"at_age":{"anyOf":[{"type":"string","enum":["24h","48h","72h","7d"]},{"type":"null"}],"title":"At Age"},"window":{"anyOf":[{"$ref":"#/components/schemas/watch_retention__Window"},{"type":"null"}]},"workspace_url":{"type":"string","title":"Workspace Url"},"current":{"$ref":"#/components/schemas/watch_retention__Cohort"},"previous":{"$ref":"#/components/schemas/watch_retention__Cohort"},"watch_evidence_ref":{"anyOf":[{"$ref":"#/components/schemas/WatchReference"},{"type":"null"}]}},"type":"object","required":["account_id","account_name","as_of","rank_second","at_age","window","workspace_url","current","previous","watch_evidence_ref"],"title":"Report"},"Requester":{"properties":{"type":{"type":"string","enum":["creator","agent"],"title":"Type"},"name":{"type":"string","title":"Name"}},"type":"object","required":["type","name"],"title":"Requester"},"Reschedule":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version","description":"The version of the post you last read."},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At","description":"A future time with UTC offset, or null for the next available delivery."}},"additionalProperties":false,"type":"object","required":["version","scheduled_at"],"title":"Reschedule"},"RetentionPoint":{"properties":{"second":{"type":"number","minimum":0.0,"title":"Second"},"remaining_fraction":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Remaining Fraction"}},"additionalProperties":false,"type":"object","required":["second","remaining_fraction"],"title":"RetentionPoint"},"ReviewedPost":{"properties":{"account_id":{"type":"string","title":"Account Id"},"external_post_id":{"type":"string","title":"External Post Id"},"title_excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Excerpt"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"rank_value":{"anyOf":[{"type":"integer"},{"type":"number"}],"title":"Rank Value"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"observation_age_hours":{"type":"number","title":"Observation Age Hours"},"source":{"type":"string","title":"Source"},"source_kind":{"type":"string","enum":["import","provider"],"title":"Source Kind"}},"type":"object","required":["account_id","external_post_id","title_excerpt","permalink","rank_value","published_at","observed_at","observation_age_hours","source","source_kind"],"title":"ReviewedPost"},"Revision":{"properties":{"start":{"type":"string","format":"date","title":"Start","description":"First date covered, inclusive."},"end":{"type":"string","format":"date","title":"End","description":"Last date covered, inclusive."},"account_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Account Id"},"observation":{"type":"string","maxLength":8000,"minLength":1,"title":"Observation","description":"What the evidence showed, and any caveats."},"next_test":{"type":"string","maxLength":4000,"title":"Next Test","description":"What to try and how to judge the result.","default":""},"report_as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Report As Of","description":"Observation cutoff for the referenced report. Defaults to the cited period cutoff, otherwise creation time."},"report_at_age":{"anyOf":[{"type":"string","enum":["24h","48h","72h","7d"]},{"type":"null"}],"title":"Report At Age"},"report_rank_by":{"type":"string","enum":["views","likes","comments","shares","saves","likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"],"title":"Report Rank By","default":"views"},"evidence":{"items":{"$ref":"#/components/schemas/note_evidence__Reference"},"type":"array","maxItems":12,"title":"Evidence","description":"Ordered references to measured observations, identified by account_id and archive sequence. Omit on edits to keep existing evidence."},"daily_evidence":{"anyOf":[{"$ref":"#/components/schemas/DailyEvidenceRef"},{"type":"null"}],"description":"Post Bridge source-calendar comparison to capture. Use the exact evidence_ref from daily movers. Omit on edits to keep it; null removes it."},"period_evidence":{"anyOf":[{"$ref":"#/components/schemas/PeriodEvidenceRef"},{"type":"null"}],"description":"One period_evidence_refs value from this profile review. Its account, dates and cutoff must match the note. Omit on edits to keep; null clears."},"watch_evidence":{"anyOf":[{"$ref":"#/components/schemas/WatchReference"},{"type":"null"}],"description":"Cite a measured viewer-retention report with this note's account, publication dates and cutoff. Omit on edit to keep; null removes it."},"version":{"type":"integer","minimum":1.0,"title":"Version"}},"additionalProperties":false,"type":"object","required":["start","end","observation","version"],"title":"Revision"},"RoundupItem":{"properties":{"freshness":{"$ref":"#/components/schemas/ProfileFreshness","description":"Current all-date local coverage, independent of review dates and timed cutoff."},"period_evidence_refs":{"$ref":"#/components/schemas/PeriodRefs"},"profile":{"$ref":"#/components/schemas/Profile"},"timed":{"$ref":"#/components/schemas/TimedSummary"},"source_days":{"anyOf":[{"$ref":"#/components/schemas/SourceDays"},{"type":"null"}]},"review_url":{"type":"string","title":"Review Url"},"review_api_url":{"type":"string","title":"Review Api Url"},"source_days_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Days Url"}},"type":"object","required":["freshness","period_evidence_refs","profile","timed","source_days","review_url","review_api_url","source_days_url"],"title":"RoundupItem"},"RoundupMethods":{"properties":{"timed":{"type":"string","title":"Timed","default":"First and last comparable timestamped readings per post within each inclusive UTC window. Observed dates and posts cover all readings, paired posts and changes cover the selected counter. Same-post comparison uses one common source across both periods. Historical backfills can change results."},"source_days":{"type":"string","title":"Source Days","default":"Live Post Bridge source dates, timezone unspecified. Each post contributes a change only when its counter is present on the source date and the previous calendar date. The timed cutoff applies only to timestamped readings. Adjacent post-day pairs count readings on both dates for any counter; post_day_pairs counts pairs with the selected counter on both dates. Movers rank up to three nonzero per-post sums by absolute change, then external ID ascending. First and last paired dates are the ending source dates of included pairs and can span gaps."},"current_by_publication":{"type":"string","title":"Current By Publication","default":"Each stream groups its current measurement pairs by the post's stored UTC publication date relative to the inclusive review dates. Per-post net change determines its sign. Source calendar dates have no known timezone and can precede the UTC publication date."}},"type":"object","title":"RoundupMethods"},"SamePosts":{"properties":{"paired_posts":{"type":"integer","title":"Paired Posts"},"current_net_change":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Net Change"},"previous_net_change":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Previous Net Change"},"difference":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Difference"}},"type":"object","required":["paired_posts","current_net_change","previous_net_change","difference"],"title":"SamePosts"},"SampleIdentity":{"properties":{"external_post_id":{"type":"string","title":"External Post Id"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"},"hold_fraction":{"type":"number","title":"Hold Fraction"}},"type":"object","required":["external_post_id","published_at","captured_at","hold_fraction"],"title":"SampleIdentity"},"Schedule":{"properties":{"account_id":{"type":"string","title":"Account Id"},"version":{"type":"integer","title":"Version","default":0},"interval_hours":{"anyOf":[{"type":"integer","enum":[6,24]},{"type":"null"}],"title":"Interval Hours"},"max_pages":{"type":"integer","maximum":4.0,"minimum":1.0,"title":"Max Pages","default":1},"state":{"type":"string","enum":["off","scheduled","collecting","retrying","paused","awaiting_reauthorization"],"title":"State","default":"off"},"next_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Run At"},"last_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Attempt At"},"last_success_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Success At"},"last_synced_posts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Synced Posts"},"last_unavailable_posts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Unavailable Posts"},"last_pages_collected":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Pages Collected","description":"Pages committed in the last completed run, if recorded."},"last_more_available":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Last More Available","description":"Whether the platform indicated another page at the end of that run. True means the configured page limit stopped collection. Null means no recorded outcome."},"pages_collected_this_run":{"type":"integer","title":"Pages Collected This Run","default":0},"consecutive_retries":{"type":"integer","title":"Consecutive Retries","default":0},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["account_id"],"title":"Schedule"},"ScheduleSettings":{"properties":{"interval_hours":{"anyOf":[{"type":"integer","enum":[6,24]},{"type":"null"}],"title":"Interval Hours","description":"6 or 24 hours. Pass null to turn off automatic collection."},"max_pages":{"type":"integer","maximum":4.0,"minimum":1.0,"title":"Max Pages","default":1},"version":{"type":"integer","minimum":0.0,"title":"Version"}},"additionalProperties":false,"type":"object","required":["interval_hours","version"],"title":"ScheduleSettings"},"Search":{"properties":{"account_id":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Account Id"},"state":{"anyOf":[{"type":"string","enum":["queued","awaiting_approval","sent","landed_as_draft","published","failed","cancelled"]},{"type":"null"}],"title":"State"},"q":{"type":"string","maxLength":240,"title":"Q","default":""},"limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Limit","default":25},"cursor":{"anyOf":[{"type":"string","maxLength":220,"minLength":1},{"type":"null"}],"title":"Cursor"}},"additionalProperties":false,"type":"object","title":"Search"},"SearchPage":{"properties":{"as_of":{"type":"string","format":"date-time","title":"As Of"},"items":{"items":{"$ref":"#/components/schemas/Leader"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["as_of","items","next_cursor"],"title":"SearchPage"},"Selection":{"properties":{"media_ids":{"items":{"type":"string","maxLength":128,"minLength":1},"type":"array","maxItems":100,"minItems":1,"title":"Media Ids"}},"additionalProperties":false,"type":"object","required":["media_ids"],"title":"Selection"},"ShareGroup":{"properties":{"posts":{"type":"integer","title":"Posts","default":0},"posts_with_shares":{"type":"integer","title":"Posts With Shares","default":0},"shares":{"type":"integer","title":"Shares","default":0},"views":{"type":"integer","title":"Views","default":0},"shares_per_1000_views":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Shares Per 1000 Views","readOnly":true}},"type":"object","required":["shares_per_1000_views"],"title":"ShareGroup"},"SharesBaseline":{"properties":{"posts":{"type":"integer","title":"Posts"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"}},"type":"object","required":["posts","value"],"title":"SharesBaseline"},"SharesByHold":{"properties":{"paired_posts":{"type":"integer","title":"Paired Posts"},"median_hold_fraction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Hold Fraction"},"above":{"$ref":"#/components/schemas/ShareGroup"},"at_median":{"$ref":"#/components/schemas/ShareGroup"},"below":{"$ref":"#/components/schemas/ShareGroup"}},"type":"object","required":["paired_posts","median_hold_fraction"],"title":"SharesByHold"},"SourceCalendar":{"properties":{"current_by_publication":{"$ref":"#/components/schemas/ByPublication"},"supports_metric":{"type":"boolean","title":"Supports Metric"},"current":{"$ref":"#/components/schemas/SourcePeriod"},"previous":{"$ref":"#/components/schemas/SourcePeriod"},"source":{"type":"string","const":"post_bridge","title":"Source","default":"post_bridge"},"metric":{"type":"string","enum":["views","likes","comments","shares","saves"],"title":"Metric"},"timezone":{"type":"null","title":"Timezone"},"method":{"type":"string","title":"Method"},"current_dates":{"$ref":"#/components/schemas/Period"},"previous_dates":{"$ref":"#/components/schemas/Period"},"detail_dates":{"anyOf":[{"$ref":"#/components/schemas/Period"},{"type":"null"}]},"workspace_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Url"}},"type":"object","required":["supports_metric","current","previous","metric","method","current_dates","previous_dates","detail_dates","workspace_url"],"title":"SourceCalendar"},"SourceDay":{"properties":{"date":{"type":"string","format":"date","title":"Date","description":"Latest stored source calendar date. Time and timezone are unknown."},"source":{"type":"string","const":"post_bridge","title":"Source","default":"post_bridge"},"metrics":{"$ref":"#/components/schemas/DailyMetrics"},"series_url":{"type":"string","title":"Series Url"}},"type":"object","required":["date","metrics","series_url"],"title":"SourceDay"},"SourceDays":{"properties":{"current_by_publication":{"$ref":"#/components/schemas/ByPublication"},"supports_metric":{"type":"boolean","title":"Supports Metric"},"current":{"$ref":"#/components/schemas/SourcePeriod"},"previous":{"$ref":"#/components/schemas/SourcePeriod"}},"type":"object","required":["supports_metric","current","previous"],"title":"SourceDays"},"SourceMover":{"properties":{"external_post_id":{"type":"string","title":"External Post Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"net_change":{"type":"integer","title":"Net Change"},"paired_days":{"type":"integer","title":"Paired Days"},"first_paired_date":{"type":"string","format":"date","title":"First Paired Date"},"last_paired_date":{"type":"string","format":"date","title":"Last Paired Date"}},"type":"object","required":["external_post_id","net_change","paired_days","first_paired_date","last_paired_date"],"title":"SourceMover"},"SourcePeriod":{"properties":{"day_count":{"type":"integer","title":"Day Count"},"observed_days":{"type":"integer","title":"Observed Days","default":0},"distinct_observed_posts":{"type":"integer","title":"Distinct Observed Posts","default":0},"observed_post_days":{"type":"integer","title":"Observed Post Days","default":0},"adjacent_post_day_pairs":{"type":"integer","title":"Adjacent Post Day Pairs","default":0},"days_with_pairs":{"type":"integer","title":"Days With Pairs","default":0},"distinct_paired_posts":{"type":"integer","title":"Distinct Paired Posts","default":0},"post_day_pairs":{"type":"integer","title":"Post Day Pairs","default":0},"net_change":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Change"},"movers":{"items":{"$ref":"#/components/schemas/SourceMover"},"type":"array","title":"Movers"}},"type":"object","required":["day_count"],"title":"SourcePeriod"},"SourceRoundup":{"properties":{"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"days":{"type":"integer","title":"Days"},"metric":{"type":"string","enum":["views","likes","comments","shares","saves"],"title":"Metric"},"workspace_url":{"type":"string","title":"Workspace Url"}},"type":"object","required":["start","end","days","metric","workspace_url"],"title":"SourceRoundup"},"Sources":{"properties":{"setup_url":{"type":"string","title":"Setup Url"},"items":{"items":{"$ref":"#/components/schemas/Option"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["setup_url","items"],"title":"Sources"},"State":{"properties":{"account_id":{"type":"string","title":"Account Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["account_id","label","version"],"title":"State"},"Studio":{"properties":{"source":{"type":"string","enum":["pipeline_tiktok_studio","tiktok_studio_export"],"title":"Source"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"},"capture_age_hours":{"type":"number","title":"Capture Age Hours"},"hold_fraction":{"type":"number","title":"Hold Fraction"},"views":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Views"},"interval":{"anyOf":[{"$ref":"#/components/schemas/Interval"},{"type":"null"}]}},"type":"object","required":["source","captured_at","capture_age_hours","hold_fraction","views"],"title":"Studio"},"Suggestion":{"properties":{"value":{"type":"string","title":"Value"},"post_count":{"type":"integer","title":"Post Count"}},"type":"object","required":["value","post_count"],"title":"Suggestion"},"Suggestions":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Suggestion"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"Suggestions"},"SyncPage":{"properties":{"cursor":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"exclusiveMinimum":0.0},{"type":"string","maxLength":4096,"minLength":1},{"type":"null"}],"title":"Cursor"}},"additionalProperties":false,"type":"object","title":"SyncPage"},"SyncResult":{"properties":{"account_id":{"type":"string","title":"Account Id"},"synced_posts":{"type":"integer","title":"Synced Posts"},"unavailable_posts":{"type":"integer","title":"Unavailable Posts"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"next_cursor":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"exclusiveMinimum":0.0},{"type":"string","maxLength":4096,"minLength":1},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["account_id","synced_posts","unavailable_posts","observed_at","next_cursor"],"title":"SyncResult"},"TimedMeasurement":{"properties":{"sequence":{"type":"integer","title":"Sequence"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"source":{"type":"string","title":"Source"},"source_kind":{"type":"string","enum":["import","provider"],"title":"Source Kind"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"metrics":{"$ref":"#/components/schemas/Metrics"}},"type":"object","required":["sequence","published_at","observed_at","source","source_kind","title","permalink","metrics"],"title":"TimedMeasurement"},"TimedPeriod":{"properties":{"observed_days":{"type":"integer","title":"Observed Days"},"observed_posts":{"type":"integer","title":"Observed Posts"},"paired_posts":{"type":"integer","title":"Paired Posts"},"net_change":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Change"},"first_observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Observed At"},"last_observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Observed At"},"min_span_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Span Hours"},"max_span_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Span Hours"}},"type":"object","required":["observed_days","observed_posts","paired_posts","net_change","first_observed_at","last_observed_at","min_span_hours","max_span_hours"],"title":"TimedPeriod"},"TimedSummary":{"properties":{"current_by_publication":{"$ref":"#/components/schemas/ByPublication"},"current":{"$ref":"#/components/schemas/TimedPeriod"},"previous":{"$ref":"#/components/schemas/TimedPeriod"},"same_posts":{"$ref":"#/components/schemas/SamePosts"}},"type":"object","required":["current_by_publication","current","previous","same_posts"],"title":"TimedSummary"},"UploadFingerprint":{"properties":{"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Sha256"},"mime":{"type":"string","enum":["image/jpeg","video/mp4"],"title":"Mime"},"bytes":{"type":"integer","maximum":268435456.0,"exclusiveMinimum":0.0,"title":"Bytes"}},"additionalProperties":false,"type":"object","required":["sha256","mime","bytes"],"title":"UploadFingerprint"},"UploadLookup":{"properties":{"idempotency_key":{"type":"string","maxLength":200,"minLength":1,"title":"Idempotency Key"},"expected":{"anyOf":[{"$ref":"#/components/schemas/UploadFingerprint"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["idempotency_key"],"title":"UploadLookup"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WatchGoal":{"properties":{"account_id":{"type":"string","maxLength":100,"minLength":1,"title":"Account Id"},"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"rank_second":{"type":"integer","enum":[1,3,5],"title":"Rank Second"},"at_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"At Age"},"digest":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[a-f0-9]{64}$","title":"Digest"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"account_name":{"type":"string","title":"Account Name"},"window":{"$ref":"#/components/schemas/watch_retention__Window"},"published_posts":{"type":"integer","title":"Published Posts"},"captured_posts":{"type":"integer","title":"Captured Posts"},"mature_posts":{"type":"integer","title":"Mature Posts"},"eligible_posts":{"type":"integer","title":"Eligible Posts"},"matched_posts":{"type":"integer","title":"Matched Posts"},"video_posts":{"type":"integer","title":"Video Posts"},"measured_posts":{"type":"integer","title":"Measured Posts"},"median_fraction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Fraction"}},"additionalProperties":false,"type":"object","required":["account_id","start","end","as_of","rank_second","at_age","digest","started_at","account_name","window","published_posts","captured_posts","mature_posts","eligible_posts","matched_posts","video_posts","measured_posts","median_fraction"],"title":"WatchGoal"},"WatchIdentity":{"properties":{"delivery_id":{"type":"string","title":"Delivery Id"},"external_post_id":{"type":"string","title":"External Post Id"},"account_id":{"type":"string","title":"Account Id"},"at_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"At Age"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"association_source":{"type":"string","enum":["platform_receipt","creator_association"],"title":"Association Source"},"kind":{"type":"string","const":"watch","title":"Kind"},"rank_second":{"type":"integer","enum":[1,3,5],"title":"Rank Second"},"measured_at":{"type":"string","format":"date-time","title":"Measured At"}},"type":"object","required":["delivery_id","external_post_id","account_id","at_age","as_of","association_source","kind","rank_second","measured_at"],"title":"WatchIdentity"},"WatchOutcome":{"properties":{"status":{"type":"string","enum":["awaiting_publication","pending_age","awaiting_capture","missing_age_sample","not_video","missing_checkpoint","no_comparable_baseline","measured"],"title":"Status"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"opens_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opens At"},"target_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Target At"},"closes_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closes At"},"captured_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Captured At"},"capture_age_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Capture Age Hours"},"source":{"anyOf":[{"type":"string","enum":["pipeline_tiktok_studio","tiktok_studio_export"]},{"type":"null"}],"title":"Source"},"media_kind":{"anyOf":[{"type":"string","enum":["video","photo","unknown"]},{"type":"null"}],"title":"Media Kind"},"hold_fraction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Hold Fraction"},"difference_pp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Difference Pp"}},"type":"object","required":["status"],"title":"WatchOutcome"},"WatchReference":{"properties":{"account_id":{"type":"string","maxLength":100,"minLength":1,"title":"Account Id"},"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"rank_second":{"type":"integer","enum":[1,3,5],"title":"Rank Second"},"at_age":{"anyOf":[{"type":"string","enum":["24h","48h","72h","7d"]},{"type":"null"}],"title":"At Age"},"digest":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[a-f0-9]{64}$","title":"Digest"}},"additionalProperties":false,"type":"object","required":["account_id","start","end","as_of","rank_second","at_age","digest"],"title":"WatchReference"},"WatchSelection":{"properties":{"delivery_id":{"type":"string","maxLength":100,"minLength":1,"title":"Delivery Id"},"external_post_id":{"type":"string","maxLength":160,"minLength":1,"pattern":"^[^\\s/?#]+$","title":"External Post Id"},"at_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"At Age"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"kind":{"type":"string","const":"watch","title":"Kind"},"expected_captured_at":{"type":"string","format":"date-time","title":"Expected Captured At"},"expected_reference_digest":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Expected Reference Digest"}},"additionalProperties":false,"type":"object","required":["delivery_id","external_post_id","at_age","as_of","kind","expected_captured_at","expected_reference_digest"],"title":"WatchSelection"},"WeightedRate":{"properties":{"numerator":{"type":"integer","title":"Numerator","default":0},"views":{"type":"integer","title":"Views","default":0},"posts":{"type":"integer","title":"Posts","default":0},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value","readOnly":true}},"type":"object","required":["value"],"title":"WeightedRate"},"WeightedShares":{"properties":{"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"shares":{"type":"integer","title":"Shares"},"views":{"type":"integer","title":"Views"},"posts":{"type":"integer","title":"Posts"}},"type":"object","required":["value","shares","views","posts"],"title":"WeightedShares"},"WindowPage":{"properties":{"mode":{"type":"string","enum":["engagement","watch"],"title":"Mode","description":"Omitted on the default engagement response.","default":"engagement"},"checkpoint_second":{"anyOf":[{"type":"integer","enum":[1,3,5]},{"type":"null"}],"title":"Checkpoint Second"},"watch_coverage":{"anyOf":[{"$ref":"#/components/schemas/watch_windows__Coverage"},{"type":"null"}]},"as_of":{"type":"string","format":"date-time","title":"As Of"},"at_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"At Age"},"through":{"type":"string","format":"date-time","title":"Through"},"tolerance_hours":{"type":"integer","title":"Tolerance Hours"},"items":{"items":{"$ref":"#/components/schemas/measurement_windows__Window"},"type":"array","title":"Items"},"next_offset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Offset"}},"type":"object","required":["as_of","at_age","through","tolerance_hours","items","next_offset"],"title":"WindowPage"},"account_labels__Edit":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Label"},"version":{"type":"integer","minimum":0.0,"title":"Version"}},"additionalProperties":false,"type":"object","required":["label","version"],"title":"Edit"},"creator_review__Cohort":{"properties":{"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"post_count":{"type":"integer","title":"Post Count"},"coverage":{"additionalProperties":{"$ref":"#/components/schemas/performance__Coverage"},"propertyNames":{"enum":["views","likes","comments","shares","saves"]},"type":"object","title":"Coverage"},"weighted_rates":{"additionalProperties":{"$ref":"#/components/schemas/WeightedRate"},"propertyNames":{"enum":["likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"]},"type":"object","title":"Weighted Rates"},"weighted_shares_per_1000_views":{"$ref":"#/components/schemas/WeightedShares"},"comparison":{"anyOf":[{"$ref":"#/components/schemas/Comparison"},{"type":"null"}]},"leaders":{"items":{"$ref":"#/components/schemas/ReviewedPost"},"type":"array","title":"Leaders"}},"type":"object","required":["start","end","post_count","coverage","weighted_rates","weighted_shares_per_1000_views","comparison","leaders"],"title":"Cohort"},"experiment_decisions__Reference":{"properties":{"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"rank_by":{"anyOf":[{"type":"string","enum":["views","likes","comments","shares","saves","likes_per_1000_views","comments_per_1000_views","shares_per_1000_views","saves_per_1000_views"]},{"type":"null"}],"title":"Rank By"},"note_version":{"type":"integer","title":"Note Version"},"source":{"type":"string","enum":["test_start","current_note"],"title":"Source"}},"type":"object","required":["start","end","as_of","account_id","rank_by","note_version","source"],"title":"Reference"},"history_checks__Receipt":{"properties":{"source":{"type":"string","enum":["post_bridge","pipeline"],"title":"Source"},"identity":{"anyOf":[{"$ref":"#/components/schemas/BridgeIdentity"},{"$ref":"#/components/schemas/PipelineIdentity"}],"title":"Identity"},"status":{"type":"string","enum":["succeeded","failed"],"title":"Status"},"stage":{"anyOf":[{"type":"string","enum":["source_timed","source_daily","daily_identity","preview_timed","write_timed","write_daily","source_watch","preview_watch","write_watch"]},{"type":"null"}],"title":"Stage"},"timed_added":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":0.0},{"type":"null"}],"title":"Timed Added"},"daily_added":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":0.0},{"type":"null"}],"title":"Daily Added"},"daily_updated":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":0.0},{"type":"null"}],"title":"Daily Updated"},"watch_added":{"anyOf":[{"type":"integer","maximum":9007199254740991.0,"minimum":0.0},{"type":"null"}],"title":"Watch Added","description":"Acknowledged new Studio captures from an explicitly included Pipeline watch check."},"reported_by":{"$ref":"#/components/schemas/Requester","description":"Authenticated creator or named agent at the original submission."},"account_id":{"type":"string","title":"Account Id"},"run_id":{"type":"string","format":"uuid","title":"Run Id"},"recorded_at":{"type":"string","format":"date-time","title":"Recorded At","description":"Time this workspace first recorded this collector report."}},"additionalProperties":false,"type":"object","required":["source","identity","status","reported_by","account_id","run_id","recorded_at"],"title":"Receipt"},"history_checks__Summary":{"properties":{"account_id":{"type":"string","title":"Account Id"},"source":{"type":"string","enum":["post_bridge","pipeline"],"title":"Source"},"last_attempt":{"anyOf":[{"$ref":"#/components/schemas/history_checks__Receipt"},{"type":"null"}]},"last_success":{"anyOf":[{"$ref":"#/components/schemas/history_checks__Receipt"},{"type":"null"}]}},"type":"object","required":["account_id","source","last_attempt","last_success"],"title":"Summary"},"idea_daily__Available":{"properties":{"account_id":{"type":"string","maxLength":100,"minLength":1,"title":"Account Id"},"external_post_id":{"type":"string","maxLength":160,"minLength":1,"pattern":"^[^\\s/?#]+$","title":"External Post Id"},"source_date":{"type":"string","format":"date","title":"Source Date"},"metric":{"type":"string","enum":["views","likes","comments","shares"],"title":"Metric"},"before":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Before"},"after":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"After"},"status":{"type":"string","const":"available","title":"Status","default":"available"},"previous_date":{"type":"string","format":"date","title":"Previous Date"},"change":{"type":"integer","title":"Change"},"account_name":{"type":"string","title":"Account Name"},"source":{"type":"string","const":"post_bridge","title":"Source","default":"post_bridge"}},"additionalProperties":false,"type":"object","required":["account_id","external_post_id","source_date","metric","before","after","previous_date","change","account_name"],"title":"Available"},"idea_daily__Reference":{"properties":{"account_id":{"type":"string","maxLength":100,"minLength":1,"title":"Account Id"},"external_post_id":{"type":"string","maxLength":160,"minLength":1,"pattern":"^[^\\s/?#]+$","title":"External Post Id"},"source_date":{"type":"string","format":"date","title":"Source Date"},"metric":{"type":"string","enum":["views","likes","comments","shares"],"title":"Metric"},"before":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Before"},"after":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"After"}},"additionalProperties":false,"type":"object","required":["account_id","external_post_id","source_date","metric","before","after"],"title":"Reference"},"idea_deliveries__Page":{"properties":{"idea_id":{"type":"string","format":"uuid","title":"Idea Id"},"read_at":{"type":"string","format":"date-time","title":"Read At","description":"UTC cutoff for timestamped observations. Delivery state and source dates are read from this page's current database snapshot."},"items":{"items":{"$ref":"#/components/schemas/IdeaDelivery"},"type":"array","title":"Items"},"next_before":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Before"}},"type":"object","required":["idea_id","read_at","items","next_before"],"title":"Page"},"idea_readings__Available":{"properties":{"status":{"type":"string","const":"available","title":"Status","default":"available"},"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"external_post_id":{"type":"string","title":"External Post Id"},"sequence":{"type":"integer","title":"Sequence"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"source_kind":{"type":"string","enum":["import","provider"],"title":"Source Kind"},"source":{"type":"string","title":"Source"},"metrics":{"additionalProperties":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},"propertyNames":{"enum":["views","likes","comments","shares","saves"]},"type":"object","title":"Metrics"}},"type":"object","required":["account_id","account_name","platform","external_post_id","sequence","observed_at","source_kind","source","metrics"],"title":"Available"},"idea_watch__Available":{"properties":{"status":{"type":"string","const":"available","title":"Status","default":"available"},"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"platform":{"type":"string","const":"tiktok","title":"Platform","default":"tiktok"},"external_post_id":{"type":"string","title":"External Post Id"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"},"second":{"type":"integer","enum":[1,3,5],"title":"Second"},"hold_fraction":{"type":"number","title":"Hold Fraction"},"views":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Views"},"source":{"type":"string","enum":["pipeline_tiktok_studio","tiktok_studio_export"],"title":"Source"},"interval":{"anyOf":[{"$ref":"#/components/schemas/Interval"},{"type":"null"}]}},"type":"object","required":["account_id","account_name","external_post_id","captured_at","second","hold_fraction","views","source"],"title":"Available"},"idea_watch__Reference":{"properties":{"account_id":{"type":"string","maxLength":100,"minLength":1,"title":"Account Id"},"external_post_id":{"type":"string","maxLength":160,"minLength":1,"pattern":"^[^\\s/?#]+$","title":"External Post Id"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"},"second":{"type":"integer","enum":[1,3,5],"title":"Second"},"from_second":{"anyOf":[{"type":"integer","enum":[0,1,3]},{"type":"null"}],"title":"From Second","description":"Optional exact starting checkpoint for the selected adjacent interval."}},"additionalProperties":false,"type":"object","required":["account_id","external_post_id","captured_at","second"],"title":"Reference"},"idea_work__WorkingDraft":{"properties":{"id":{"type":"string","title":"Id"},"idea_id":{"type":"string","format":"uuid","title":"Idea Id"},"idea_version":{"type":"integer","title":"Idea Version"},"brief":{"type":"string","title":"Brief"},"compose_url":{"type":"string","title":"Compose Url"},"intended_profile":{"anyOf":[{"$ref":"#/components/schemas/IntendedProfile"},{"type":"null"}]},"destination_unknown":{"type":"boolean","title":"Destination Unknown"}},"type":"object","required":["id","idea_id","idea_version","brief","compose_url","intended_profile","destination_unknown"],"title":"WorkingDraft"},"ideas__Capture":{"properties":{"text":{"type":"string","maxLength":4000,"minLength":1,"title":"Text"},"source_daily":{"anyOf":[{"$ref":"#/components/schemas/idea_daily__Reference"},{"type":"null"}],"description":"Exact adjacent Post Bridge source-date counters for the individual post that inspired this idea."},"source_watch":{"anyOf":[{"$ref":"#/components/schemas/idea_watch__Reference"},{"type":"null"}],"description":"Exact Studio video checkpoint or adjacent interval that inspired the idea. Use the reported capture timestamp, ending second and optional from_second."},"source_reading":{"anyOf":[{"$ref":"#/components/schemas/note_evidence__Reference"},{"type":"null"}],"description":"Exact engagement reading that inspired the idea, independent of the intended destination."},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"},"capture_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Capture Id","description":"Optional stable UUID for a retry-safe capture."}},"additionalProperties":false,"type":"object","required":["text"],"title":"Capture"},"ideas__Edit":{"properties":{"version":{"type":"integer","minimum":1.0,"title":"Version"},"text":{"anyOf":[{"type":"string","maxLength":4000,"minLength":1},{"type":"null"}],"title":"Text"},"state":{"anyOf":[{"type":"string","enum":["inbox","shortlisted","used","archived"]},{"type":"null"}],"title":"State"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id"}},"additionalProperties":false,"type":"object","required":["version"],"title":"Edit"},"ideas__Page":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Idea"},"type":"array","title":"Items"},"next_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Before"}},"type":"object","required":["items","next_before"],"title":"Page"},"measurement_windows__Window":{"properties":{"watch":{"anyOf":[{"$ref":"#/components/schemas/Need"},{"type":"null"}]},"account_id":{"type":"string","title":"Account Id"},"account_name":{"type":"string","title":"Account Name"},"platform":{"type":"string","enum":["tiktok","instagram"],"title":"Platform"},"external_post_id":{"type":"string","title":"External Post Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"opens_at":{"type":"string","format":"date-time","title":"Opens At"},"target_at":{"type":"string","format":"date-time","title":"Target At"},"closes_at":{"type":"string","format":"date-time","title":"Closes At"},"state":{"type":"string","enum":["open","upcoming"],"title":"State"}},"type":"object","required":["account_id","account_name","platform","external_post_id","title","permalink","published_at","opens_at","target_at","closes_at","state"],"title":"Window"},"media_release__Item":{"properties":{"media_id":{"type":"string","title":"Media Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"mime":{"type":"string","title":"Mime"},"bytes":{"type":"integer","title":"Bytes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"receipt_count":{"type":"integer","title":"Receipt Count"},"latest_post_id":{"type":"string","title":"Latest Post Id"},"latest_status_url":{"type":"string","title":"Latest Status Url"}},"type":"object","required":["media_id","name","mime","bytes","created_at","receipt_count","latest_post_id","latest_status_url"],"title":"Item"},"media_release__Page":{"properties":{"account_id":{"type":"string","title":"Account Id"},"total_files":{"type":"integer","title":"Total Files"},"total_bytes":{"type":"integer","title":"Total Bytes"},"items":{"items":{"$ref":"#/components/schemas/media_release__Item"},"type":"array","title":"Items"},"next_before":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Before"}},"type":"object","required":["account_id","total_files","total_bytes","items","next_before"],"title":"Page"},"note_evidence__Reference":{"properties":{"account_id":{"type":"string","maxLength":100,"minLength":1,"title":"Account Id"},"sequence":{"type":"integer","maximum":9.223372036854776e+18,"minimum":1.0,"title":"Sequence"}},"additionalProperties":false,"type":"object","required":["account_id","sequence"],"title":"Reference"},"note_work__WorkingDraft":{"properties":{"id":{"type":"string","title":"Id"},"note_id":{"type":"string","format":"uuid","title":"Note Id"},"note_version":{"type":"integer","title":"Note Version"},"brief":{"type":"string","title":"Brief"},"compose_url":{"type":"string","title":"Compose Url"},"intended_profile":{"anyOf":[{"$ref":"#/components/schemas/IntendedProfile"},{"type":"null"}]},"destination_unknown":{"type":"boolean","title":"Destination Unknown"}},"type":"object","required":["id","note_id","note_version","brief","compose_url","intended_profile","destination_unknown"],"title":"WorkingDraft"},"performance__Coverage":{"properties":{"posts":{"type":"integer","title":"Posts","default":0},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","title":"Coverage"},"performance__HistoryPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/HistoryItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"HistoryPage"},"performance__Receipt":{"properties":{"account_id":{"type":"string","title":"Account Id"},"accepted":{"type":"integer","title":"Accepted","description":"All successfully validated rows, including exact replays."},"inserted":{"type":"integer","title":"Inserted"},"unchanged":{"type":"integer","title":"Unchanged"}},"type":"object","required":["account_id","accepted","inserted","unchanged"],"title":"Receipt"},"post_age_growth__Coverage":{"properties":{"published_posts":{"type":"integer","title":"Published Posts","description":"Known canonical publications within the date range through as_of."},"mature_posts":{"type":"integer","title":"Mature Posts","description":"Publications old enough to reach the later target age by as_of."},"early_posts":{"type":"integer","title":"Early Posts","description":"Mature posts with any in-window reading for the earlier target."},"late_posts":{"type":"integer","title":"Late Posts","description":"Mature posts with any in-window reading for the later target."},"both_posts":{"type":"integer","title":"Both Posts","description":"Mature posts with independently selected readings at both ages."},"distinct_posts":{"type":"integer","title":"Distinct Posts","description":"Both readings available and the late timestamp is strictly later.","default":0},"same_source_posts":{"type":"integer","title":"Same Source Posts","description":"Distinct pairs sharing source kind and exact provenance label.","default":0},"metric_posts":{"type":"integer","title":"Metric Posts","description":"Same-source pairs containing the requested counter twice. Denominator for summary and ranking.","default":0}},"type":"object","required":["published_posts","mature_posts","early_posts","late_posts","both_posts"],"title":"Coverage"},"post_age_growth__Item":{"properties":{"rank":{"type":"integer","title":"Rank"},"external_post_id":{"type":"string","title":"External Post Id"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"early":{"$ref":"#/components/schemas/Reading"},"late":{"$ref":"#/components/schemas/Reading"},"change":{"type":"integer","title":"Change"},"history_url":{"type":"string","title":"History Url"}},"type":"object","required":["rank","external_post_id","published_at","title","permalink","early","late","change","history_url"],"title":"Item"},"post_age_growth__Page":{"properties":{"account_id":{"type":"string","title":"Account Id"},"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"from_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"From Age"},"to_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"To Age"},"tolerance_hours":{"type":"integer","title":"Tolerance Hours"},"metric":{"type":"string","enum":["views","likes","comments","shares","saves"],"title":"Metric"},"order":{"type":"string","enum":["desc","asc"],"title":"Order"},"coverage":{"$ref":"#/components/schemas/post_age_growth__Coverage"},"summary":{"$ref":"#/components/schemas/post_age_growth__Summary"},"workspace_url":{"type":"string","title":"Workspace Url"},"items":{"items":{"$ref":"#/components/schemas/post_age_growth__Item"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"digest":{"type":"string","title":"Digest"},"next_offset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Offset"}},"type":"object","required":["account_id","start","end","as_of","from_age","to_age","tolerance_hours","metric","order","coverage","summary","workspace_url","items","limit","offset","digest","next_offset"],"title":"Page"},"post_age_growth__Summary":{"properties":{"net_change":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Net Change"},"median_change":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median Change"},"gained_posts":{"type":"integer","title":"Gained Posts"},"flat_posts":{"type":"integer","title":"Flat Posts"},"lost_posts":{"type":"integer","title":"Lost Posts"}},"type":"object","required":["net_change","median_change","gained_posts","flat_posts","lost_posts"],"title":"Summary"},"post_search__Page":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PostReceipt"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"Page"},"watch_examples__Coverage":{"properties":{"published_posts":{"type":"integer","title":"Published Posts"},"captured_posts":{"type":"integer","title":"Captured Posts"},"mature_posts":{"type":"integer","title":"Mature Posts"},"eligible_posts":{"type":"integer","title":"Eligible Posts"},"matched_posts":{"type":"integer","title":"Matched Posts"},"checkpoint_posts":{"type":"integer","title":"Checkpoint Posts"},"paired_checkpoint_posts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paired Checkpoint Posts","description":"In drop order, videos with both requested seconds in the same selected Studio capture."},"with_engagement":{"type":"integer","title":"With Engagement","default":0},"with_engagement_views":{"type":"integer","title":"With Engagement Views","default":0},"with_engagement_shares":{"type":"integer","title":"With Engagement Shares","default":0},"with_engagement_views_and_shares":{"type":"integer","title":"With Engagement Views And Shares","default":0},"with_share_rate":{"type":"integer","title":"With Share Rate","default":0}},"type":"object","required":["published_posts","captured_posts","mature_posts","eligible_posts","matched_posts","checkpoint_posts"],"title":"Coverage"},"watch_examples__Example":{"properties":{"rank":{"type":"integer","title":"Rank"},"external_post_id":{"type":"string","title":"External Post Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"studio":{"$ref":"#/components/schemas/Studio"},"engagement":{"anyOf":[{"$ref":"#/components/schemas/Engagement"},{"type":"null"}]},"history_url":{"type":"string","title":"History Url"},"benchmark_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Benchmark Url"}},"type":"object","required":["rank","external_post_id","title","permalink","published_at","studio","engagement","history_url","benchmark_url"],"title":"Example"},"watch_examples__Page":{"properties":{"account_id":{"type":"string","title":"Account Id"},"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"at_age":{"type":"string","enum":["24h","48h","72h","7d"],"title":"At Age"},"window":{"$ref":"#/components/schemas/watch_retention__Window"},"rank_second":{"type":"integer","enum":[1,3,5],"title":"Rank Second"},"order":{"type":"string","enum":["strongest","weakest","largest_drop","smallest_drop"],"title":"Order"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"digest":{"type":"string","title":"Digest"},"coverage":{"$ref":"#/components/schemas/watch_examples__Coverage"},"shares_by_hold":{"anyOf":[{"$ref":"#/components/schemas/SharesByHold"},{"type":"null"}],"description":"For strongest/weakest order, compares the entire period around the median hold among videos with reported shares and positive views in the same age window. Ties form their own group."},"workspace_url":{"type":"string","title":"Workspace Url"},"items":{"items":{"$ref":"#/components/schemas/watch_examples__Example"},"type":"array","title":"Items"},"next_offset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Offset"}},"type":"object","required":["account_id","start","end","as_of","at_age","window","rank_second","order","limit","offset","digest","coverage","workspace_url","items","next_offset"],"title":"Page"},"watch_retention__Capture":{"properties":{"external_post_id":{"type":"string","maxLength":160,"minLength":1,"pattern":"^[^\\s/?#]+$","title":"External Post Id"},"captured_at":{"type":"string","format":"date-time","title":"Captured At","description":"Actual offset-bearing capture timestamp, never the source calendar date or import time."},"source":{"type":"string","enum":["pipeline_tiktok_studio","tiktok_studio_export"],"title":"Source","description":"Creator-supplied provenance for this private import."},"media_kind":{"type":"string","enum":["video","photo","unknown"],"title":"Media Kind"},"views":{"anyOf":[{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0},{"type":"null"}],"title":"Views"},"average_watch_seconds":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Average Watch Seconds"},"completion_fraction":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Completion Fraction"},"retention":{"anyOf":[{"items":{"$ref":"#/components/schemas/RetentionPoint"},"type":"array","maxItems":20000},{"type":"null"}],"title":"Retention","description":"Original video-only points, increasing by elapsed seconds. Fractions range from zero to one. Null means unavailable."}},"additionalProperties":false,"type":"object","required":["external_post_id","captured_at","source","media_kind"],"title":"Capture"},"watch_retention__Cohort":{"properties":{"start":{"type":"string","format":"date","title":"Start"},"end":{"type":"string","format":"date","title":"End"},"published_posts":{"type":"integer","title":"Published Posts","description":"All posts in this owned post library with a canonical UTC publication date in this period."},"captured_posts":{"type":"integer","title":"Captured Posts","description":"Posts with any valid Studio capture by the cutoff, independent of matching."},"mature_posts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mature Posts","description":"Library posts that reached the selected age by the cutoff. Null in latest mode."},"eligible_posts":{"type":"integer","title":"Eligible Posts","description":"Captured posts old enough for the requested age. In latest mode, all captured posts are eligible."},"matched_posts":{"type":"integer","title":"Matched Posts","description":"Eligible posts with a selected capture, including photos and unknown formats."},"video_posts":{"type":"integer","title":"Video Posts"},"photo_posts":{"type":"integer","title":"Photo Posts"},"unknown_posts":{"type":"integer","title":"Unknown Posts"},"curve_posts":{"type":"integer","title":"Curve Posts"},"min_capture_age_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Capture Age Hours"},"max_capture_age_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Capture Age Hours"},"hold":{"items":{"$ref":"#/components/schemas/Hold"},"type":"array","title":"Hold"},"drops":{"items":{"$ref":"#/components/schemas/Drop"},"type":"array","title":"Drops"},"average_watch_seconds":{"$ref":"#/components/schemas/watch_retention__Summary"},"completion_fraction":{"$ref":"#/components/schemas/watch_retention__Summary"},"top_posts":{"items":{"$ref":"#/components/schemas/watch_retention__Example"},"type":"array","title":"Top Posts"},"shares_by_hold":{"anyOf":[{"$ref":"#/components/schemas/SharesByHold"},{"type":"null"}],"description":"Age-matched Studio checkpoint and engagement shares/positive views across all paired videos. The period's paired median defines the above, at-median and below groups."}},"type":"object","required":["start","end","published_posts","captured_posts","mature_posts","eligible_posts","matched_posts","video_posts","photo_posts","unknown_posts","curve_posts","min_capture_age_hours","max_capture_age_hours","hold","drops","average_watch_seconds","completion_fraction","top_posts"],"title":"Cohort"},"watch_retention__Example":{"properties":{"external_post_id":{"type":"string","title":"External Post Id"},"published_at":{"type":"string","format":"date-time","title":"Published At"},"captured_at":{"type":"string","format":"date-time","title":"Captured At"},"hold_fraction":{"type":"number","title":"Hold Fraction"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"history_url":{"type":"string","title":"History Url"}},"type":"object","required":["external_post_id","published_at","captured_at","hold_fraction","title","permalink","history_url"],"title":"Example"},"watch_retention__HistoryPage":{"properties":{"account_id":{"type":"string","title":"Account Id"},"external_post_id":{"type":"string","title":"External Post Id"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"canonical_published_at":{"type":"string","format":"date-time","title":"Canonical Published At"},"latest_capture_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Capture At"},"latest_capture_lag_hours":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latest Capture Lag Hours","description":"Hours from the most recent capture on or before as_of to that cutoff, across all pages."},"items":{"items":{"$ref":"#/components/schemas/CaptureDetail"},"type":"array","title":"Items"},"next_before":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Before"}},"type":"object","required":["account_id","external_post_id","as_of","canonical_published_at","latest_capture_at","latest_capture_lag_hours","items","next_before"],"title":"HistoryPage"},"watch_retention__Summary":{"properties":{"posts":{"type":"integer","title":"Posts"},"median":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Median"}},"type":"object","required":["posts","median"],"title":"Summary"},"watch_retention__Window":{"properties":{"target_hours":{"type":"integer","title":"Target Hours"},"tolerance_hours":{"type":"integer","title":"Tolerance Hours","default":12},"min_age_hours":{"type":"integer","title":"Min Age Hours"},"max_age_hours":{"type":"integer","title":"Max Age Hours"}},"type":"object","required":["target_hours","min_age_hours","max_age_hours"],"title":"Window"},"watch_windows__Coverage":{"properties":{"candidate_posts":{"type":"integer","title":"Candidate Posts","default":0},"excluded_photos":{"type":"integer","title":"Excluded Photos","default":0},"covered_posts":{"type":"integer","title":"Covered Posts","default":0},"uncovered_videos":{"type":"integer","title":"Uncovered Videos","default":0},"uncovered_unknown":{"type":"integer","title":"Uncovered Unknown","default":0}},"type":"object","title":"Coverage"}},"securitySchemes":{"HTTPBearer":{"type":"http","description":"Workspace agent key issued in /app","scheme":"bearer"}}}}