{"openapi":"3.1.0","info":{"title":"Template Backend","description":"Backend template with InfiniteGoose core + documents/folders management","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/debug-cors":{"get":{"summary":"Debug Cors","operationId":"debug_cors_debug_cors_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/debug-auth":{"get":{"summary":"Debug Auth","description":"Debug endpoint to check auth configuration - REMOVE IN PRODUCTION","operationId":"debug_auth_debug_auth_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth":{"post":{"tags":["Auth"],"summary":"Create User","description":"Endpoint to create a new user with input validation and sanitization","operationId":"create_user_auth_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/users":{"post":{"tags":["Auth"],"summary":"Create User And Signup","operationId":"create_user_and_signup_auth_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/token":{"post":{"tags":["Auth"],"summary":"Login For Access Token","operationId":"login_for_access_token_auth_token_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_for_access_token_auth_token_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/central/entry":{"post":{"tags":["Auth"],"summary":"Central Entry","description":"Click-time entry from the platform shell (verifier sub-apps only).\n\nAuth is the central cookie via get_current_user — a first-time user is\nfully provisioned by the dependency before this body runs. The request\ncarries the PARENT's package names as an untrusted hint; on a mismatch\nwith local grants the sync re-verifies against the sync API, grants any\nmissing packages additively and revokes refunded central grants\n(see sync_central_packages).","operationId":"central_entry_auth_central_entry_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CentralEntryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CentralEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/auth/logout":{"post":{"tags":["Auth"],"summary":"Logout","description":"Clear the Superkool central cookie. Issuer mode only — legacy apps'\nHS256 tokens are client-managed and have nothing to log out server-side.","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}}}}},"/auth/password-recover/{email}":{"post":{"tags":["Auth"],"summary":"Recover Password","description":"Password Recovery","operationId":"recover_password_auth_password_recover__email__post","parameters":[{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}},{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/reset-password":{"post":{"tags":["Auth"],"summary":"Reset Password","description":"Reset password - handles both password change (with old password) and forgot password flows\nAlso completes signup process if user hasn't completed signup yet","operationId":"reset_password_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPassword"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/signup":{"post":{"tags":["Auth"],"summary":"Signup Request","description":"Signup","operationId":"signup_request_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Signup"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/me":{"get":{"tags":["User"],"summary":"Get Current User","operationId":"get_current_user_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/users/{user_id}":{"patch":{"tags":["User"],"summary":"Update User","operationId":"update_user_users__user_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_update_user_users__user_id__patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/profile-picture":{"get":{"tags":["User"],"summary":"Get User Profile Picture","operationId":"get_user_profile_picture_users__user_id__profile_picture_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/onboardings":{"post":{"tags":["User"],"summary":"Update User Onboarding","description":"Dual-mode onboarding webhook (v3.5.0).\n\n- ``Askly-Signature`` present -> verify the HMAC and parse answers by\n  ``field.ref`` (signed Askly traffic).\n- header absent -> today's positional parser, unauthenticated (legacy\n  Typeform traffic for not-yet-cut-over apps).\n\nThe positional fallback is scheduled for removal in the lib release after\nthe last fleet app cuts over to Askly (see CHANGELOG / webhook-contract §5).","operationId":"update_user_onboarding_users_onboardings_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingAck"}}}}}}},"/accounts":{"post":{"tags":["Account"],"summary":"Create Account","operationId":"create_account_accounts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/accounts/me":{"get":{"tags":["Account"],"summary":"Get Current User Accounts","operationId":"get_current_user_accounts_accounts_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountListResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/accounts/user/{user_id}":{"get":{"tags":["Account"],"summary":"Get User Accounts","operationId":"get_user_accounts_accounts_user__user_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/accounts/{account_id}":{"get":{"tags":["Account"],"summary":"Get Account By Id","description":"Get account details by account ID - for use with workspace account_id","operationId":"get_account_by_id_accounts__account_id__get","security":[{"OAuth2PasswordBearer":[]}],"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/Account"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Account"],"summary":"Update Account","operationId":"update_account_accounts__account_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/me":{"get":{"tags":["Workspaces"],"summary":"Read Current User Workspaces","operationId":"read_current_user_workspaces_workspaces_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceListResponse"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/workspaces/user/{user_id}":{"get":{"tags":["Workspaces"],"summary":"Read User Workspaces","operationId":"read_user_workspaces_workspaces_user__user_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces":{"post":{"tags":["Workspaces"],"summary":"Create Workspace","operationId":"create_workspace_workspaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/workspaces/{workspace_id}":{"patch":{"tags":["Workspaces"],"summary":"Update Workspace","operationId":"update_workspace_workspaces__workspace_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Workspaces"],"summary":"Delete a Workspace","operationId":"delete_workspace_workspaces__workspace_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/invite":{"post":{"tags":["Workspaces"],"summary":"Invite User","operationId":"invite_user_workspaces__workspace_id__invite_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInviteUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/users/{user_id}":{"delete":{"tags":["Workspaces"],"summary":"Delete User","operationId":"delete_user_workspaces__workspace_id__users__user_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/open":{"post":{"tags":["Workspaces"],"summary":"Mark a workspace as opened by the current user","operationId":"mark_workspace_opened_workspaces__workspace_id__open_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/users":{"get":{"tags":["Workspaces"],"summary":"Get Workspace Users","operationId":"get_workspace_users_workspaces__workspace_id__users_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUsersList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/stripe/checkout-sessions":{"post":{"tags":["Payments"],"summary":"Create Checkout Session","operationId":"create_checkout_session_payments_stripe_checkout_sessions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/payments/stripe/billing-portal-sessions/{customer_id}":{"post":{"tags":["Payments"],"summary":"Create Billing Portal Session","operationId":"create_billing_portal_session_payments_stripe_billing_portal_sessions__customer_id__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"responses":{"303":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/stripe/subscriptions/{subscription_id}":{"get":{"tags":["Payments"],"summary":"Retrieve Subscription","operationId":"retrieve_subscription_payments_stripe_subscriptions__subscription_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/stripe/subscriptions/{subscription_id}/invoices":{"get":{"tags":["Payments"],"summary":"List Subscription Invoices","operationId":"list_subscription_invoices_payments_stripe_subscriptions__subscription_id__invoices_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max invoices to return, newest first.","default":100,"title":"Limit"},"description":"Max invoices to return, newest first."},{"name":"starting_after","in":"query","required":false,"schema":{"type":"string","description":"Invoice ID cursor for pagination.","title":"Starting After"},"description":"Invoice ID cursor for pagination."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/stripe/webhook":{"post":{"tags":["Payments"],"summary":"Stripe Webhook","operationId":"stripe_webhook_payments_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/payments/stripe/payment-success":{"get":{"tags":["Payments"],"summary":"Payment Success Redirect","description":"Handle successful payment and redirect to dashboard after verifying packages are available","operationId":"payment_success_redirect_payments_stripe_payment_success_get","parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"303":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billings/packages":{"get":{"tags":["Billings"],"summary":"Get Packages","operationId":"get_packages_billings_packages_get","parameters":[{"name":"sales_channel","in":"query","required":false,"schema":{"type":"string","description":"Filter packages by type","default":"STRIPE","title":"Sales Channel"},"description":"Filter packages by type"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackagesListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billings/accounts/{account_id}/packages":{"get":{"tags":["Billings"],"summary":"Get User Account Packages","operationId":"get_user_account_packages_billings_accounts__account_id__packages_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PackageResponse"},{"type":"object","additionalProperties":{"type":"boolean"}}],"title":"Response Get User Account Packages Billings Accounts  Account Id  Packages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billings/accounts/{account_id}/credits":{"get":{"tags":["Billings"],"summary":"Get Account Credits","operationId":"get_account_credits_billings_accounts__account_id__credits_get","security":[{"OAuth2PasswordBearer":[]}],"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/BalanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billings/accounts/{account_id}/credit-transactions":{"get":{"tags":["Billings"],"summary":"Get Account Credit Transactions","operationId":"get_account_credit_transactions_billings_accounts__account_id__credit_transactions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum rows to return, newest first. Defaults to 100, capped at 1000.","default":100,"title":"Limit"},"description":"Maximum rows to return, newest first. Defaults to 100, capped at 1000."},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only return rows with created_on >= this timestamp (ISO-8601).","title":"Since"},"description":"Only return rows with created_on >= this timestamp (ISO-8601)."},{"name":"transaction_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by transaction_type code. Repeat the parameter for multiple values (e.g. ?transaction_types=CONSUMPTION&transaction_types=REFUND); comma-separated values are treated as a single string. The vocabulary is open — host-specific codes are accepted.","title":"Transaction Types"},"description":"Filter by transaction_type code. Repeat the parameter for multiple values (e.g. ?transaction_types=CONSUMPTION&transaction_types=REFUND); comma-separated values are treated as a single string. The vocabulary is open — host-specific codes are accepted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditTransactionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/emails/test-email/":{"post":{"tags":["Emails"],"summary":"Test Email","description":"Test emails.","operationId":"test_email_emails_test_email__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"email_to","in":"query","required":true,"schema":{"type":"string","format":"email","title":"Email To"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/emails/ses-webhook/{secret}":{"post":{"tags":["Emails"],"summary":"Ses Events Webhook","description":"SES event webhook. AWS SNS POSTs SES delivery/bounce/complaint/etc.\nevents here as signed JSON envelopes; all verification, parsing, and\npersistence live in EmailManager.process_ses_webhook.\n\nThe {secret} path segment acts as a simple shared-secret gate so the\nendpoint is not discoverable by scanners.","operationId":"ses_events_webhook_emails_ses_webhook__secret__post","parameters":[{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/upload":{"post":{"tags":["Documents"],"summary":"Upload Document","description":"Upload a document with metadata.\n    \n    The request should be a multipart/form-data containing:\n    - file: The actual file to upload\n    - doc_payload: A JSON string containing document metadata\n    \n    Example doc_payload:    ```json\n    {\n        \"workspace_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n        \"folder_id\": \"098f6bcd-4621-3373-8ade-4e832627b4f6\",\n        \"description\": \"My important document\"\n    }    ```\n    \n    Required fields in doc_payload:\n    - workspace_id: The ID of the workspace where the document will be stored\n    \n    Optional fields:\n    - folder_id: The ID of the folder within the workspace\n    - description: A description of the document","operationId":"upload_document_documents_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_document_documents_upload_post"}}},"required":true},"responses":{"201":{"description":"Document created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"},"example":{"id":"123e4567-e89b-12d3-a456-426614174000","name":"example.pdf","workspace_id":"workspace-123","folder_id":"folder-456","description":"My important document","file_size":1024,"mime_type":"application/pdf","upload_status":"completed","created_on":"2024-03-19T10:00:00Z"}}}},"400":{"description":"Invalid request","content":{"application/json":{"example":{"detail":"Invalid document metadata format"}}}},"401":{"description":"Unauthorized"},"500":{"description":"Internal server error","content":{"application/json":{"example":{"detail":"Failed to upload file"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/documents/workspace/{workspace_id}":{"get":{"tags":["Documents"],"summary":"List Workspace Documents","description":"List all documents in a workspace with optional folder filter, file type filter, search query and pagination","operationId":"list_workspace_documents_documents_workspace__workspace_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},{"name":"file_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[a-zA-Z0-9/._-]*$"},{"type":"null"}],"description":"Filter by file extension (e.g. 'pdf', 'docx') - max 20 characters","title":"File Type"},"description":"Filter by file extension (e.g. 'pdf', 'docx') - max 20 characters"},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by document name","title":"Query"},"description":"Search by document name"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"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/DocumentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}":{"get":{"tags":["Documents"],"summary":"Get Document","description":"Get document details by ID","operationId":"get_document_documents__document_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Documents"],"summary":"Update Document","description":"Update document metadata","operationId":"update_document_documents__document_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Documents"],"summary":"Delete Document","description":"Delete document (soft delete and optionally remove from S3)","operationId":"delete_document_documents__document_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/move":{"post":{"tags":["Documents"],"summary":"Move Document","description":"Move document to a different folder","operationId":"move_document_documents__document_id__move_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"new_folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/copy":{"post":{"tags":["Documents"],"summary":"Copy Document","description":"Create a copy of the document, optionally in a different folder","operationId":"copy_document_documents__document_id__copy_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"target_folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/search":{"get":{"tags":["Documents"],"summary":"Search Documents","description":"Search documents by name or description","operationId":"search_documents_documents_search_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"name":"folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"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/DocumentSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{document_id}/download":{"get":{"tags":["Documents"],"summary":"Download Document","description":"Download a document","operationId":"download_document_documents__document_id__download_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/public/upload":{"post":{"tags":["Documents"],"summary":"Public Upload","description":"Upload a file to external public storage via workflow API.\n    \n    This endpoint uploads files to an external public storage system\n    and returns a public URL that can be used to access the file.\n    \n    The request should be multipart/form-data containing:\n    - file: The actual file to upload\n    \n    Configuration values (from database config):\n    - UPLOAD_WORKFLOW_KEY: The workflow ID for uploads\n    - UPLOAD_WORKSPACE_ID: The workspace ID for uploads\n    - WORKFLOW_API_BASE_URL: Base URL of the external API\n    - WORKFLOW_API_KEY: API key for authentication","operationId":"public_upload_documents_public_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_public_upload_documents_public_upload_post"}}},"required":true},"responses":{"201":{"description":"File uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicUploadResponse"},"example":{"document_id":"123e4567-e89b-12d3-a456-426614174000","name":"image.jpg","file_size":102400,"mime_type":"image/jpeg","public_file_url":"https://example.com/files/abc123.jpg","upload_status":"completed"}}}},"400":{"description":"Invalid request or missing configuration"},"401":{"description":"Unauthorized"},"500":{"description":"Failed to upload file to external API"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/folders/workspace/{workspace_id}":{"get":{"tags":["Folders"],"summary":"Read Workspace Folders","description":"Get all folders for a specific workspace with optional folder type filter","operationId":"read_workspace_folders_folders_workspace__workspace_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FolderType"},{"type":"null"}],"description":"Type of folder to filter by","enum":["workbook","document"],"default":"workbook","title":"Folder Type"},"description":"Type of folder to filter by"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folders":{"post":{"tags":["Folders"],"summary":"Create Folder","description":"Create a new folder","operationId":"create_folder_folders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Folder"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/folders/{folder_id}":{"patch":{"tags":["Folders"],"summary":"Update Folder","description":"Update an existing folder","operationId":"update_folder_folders__folder_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the folder to update","title":"Folder Id"},"description":"ID of the folder to update"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Folder"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Folders"],"summary":"Delete Folder","description":"Delete a folder (soft delete)","operationId":"delete_folder_folders__folder_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folders/workspace/{workspace_id}/tree":{"get":{"tags":["Folders"],"summary":"Read Workspace Folder Tree","description":"Get hierarchical folder structure for a workspace with optional folder type filter","operationId":"read_workspace_folder_tree_folders_workspace__workspace_id__tree_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FolderType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderTreeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects":{"post":{"tags":["Projects"],"summary":"Create Project","description":"Create a new project (post)","operationId":"create_project_projects_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Projects"],"summary":"Get Projects","description":"Get paginated list of projects for a persona with optional filters","operationId":"get_projects_projects_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"persona_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"stage","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProjectStage"},{"type":"null"}],"description":"Filter by stage","title":"Stage"},"description":"Filter by stage"},{"name":"scheduled_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by scheduled timestamp (ISO format)","title":"Scheduled At"},"description":"Filter by scheduled timestamp (ISO format)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of items per page","default":35,"title":"Limit"},"description":"Number of items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip","default":0,"title":"Offset"},"description":"Number of items to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}":{"patch":{"tags":["Projects"],"summary":"Update Project","description":"Update an existing project","operationId":"update_project_projects__project_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the project to update","title":"Project Id"},"description":"ID of the project to update"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Projects"],"summary":"Delete Project","description":"Delete a project (soft delete)","operationId":"delete_project_projects__project_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the project to delete","title":"Project Id"},"description":"ID of the project to delete"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Projects"],"summary":"Get Project","description":"Get a single project by ID","operationId":"get_project_projects__project_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the project","title":"Project Id"},"description":"ID of the project"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/media/upload-url":{"post":{"tags":["Projects"],"summary":"Create Media Upload Url","description":"Presigned link for uploading the post's image/video straight to storage","operationId":"create_media_upload_url_projects__project_id__media_upload_url_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the project","title":"Project Id"},"description":"ID of the project"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUploadUrlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaUploadUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/media":{"post":{"tags":["Projects"],"summary":"Attach Media","description":"Confirm an uploaded file and attach it to the post (replaces existing media)","operationId":"attach_media_projects__project_id__media_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the project","title":"Project Id"},"description":"ID of the project"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaAttachRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Projects"],"summary":"Remove Media","description":"Remove the post's media","operationId":"remove_media_projects__project_id__media_delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the project","title":"Project Id"},"description":"ID of the project"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/posted/count":{"get":{"tags":["Projects"],"summary":"Get Posted Projects Count","description":"Get count of posted projects for a persona","operationId":"get_posted_projects_count_projects_posted_count_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"persona_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostedProjectsCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/posted":{"get":{"tags":["Projects"],"summary":"Get Posted Projects","description":"Get paginated list of posted projects for a persona","operationId":"get_posted_projects_projects_posted_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"persona_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of items per page","default":30,"title":"Limit"},"description":"Number of items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip","default":0,"title":"Offset"},"description":"Number of items to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shows":{"post":{"tags":["Shows"],"summary":"Create Show","description":"Create a new show","operationId":"create_show_shows_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Show"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Shows"],"summary":"Get Shows","description":"Get paginated list of shows for a workspace","operationId":"get_shows_shows_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the workspace","title":"Workspace Id"},"description":"ID of the workspace"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of items per page","default":30,"title":"Limit"},"description":"Number of items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip","default":0,"title":"Offset"},"description":"Number of items to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shows/{workspace_id}":{"patch":{"tags":["Shows"],"summary":"Update Show","description":"Update an existing show","operationId":"update_show_shows__workspace_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","description":"Workspace id for show to update","title":"Workspace Id"},"description":"Workspace id for show to update"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Show"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Shows"],"summary":"Get Show","description":"Get a single show by workspace ID","operationId":"get_show_shows__workspace_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the workspace","title":"Workspace Id"},"description":"ID of the workspace"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Show"},{"type":"null"}],"title":"Response Get Show Shows  Workspace Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shows/{slug}/personas":{"post":{"tags":["Shows"],"summary":"Create Show Persona","description":"Create a new show persona","operationId":"create_show_persona_shows__slug__personas_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","description":"Show slug","title":"Slug"},"description":"Show slug"},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the workspace","title":"Workspace Id"},"description":"ID of the workspace"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowPersonaCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowPersona"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Shows"],"summary":"Get Show Personas","description":"Get list of personas for a show","operationId":"get_show_personas_shows__slug__personas_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","description":"Show slug","title":"Slug"},"description":"Show slug"},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the workspace","title":"Workspace Id"},"description":"ID of the workspace"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowPersonaListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shows/{slug}/personas/{persona_id}":{"get":{"tags":["Shows"],"summary":"Get Show Persona","description":"Get a single show persona by ID","operationId":"get_show_persona_shows__slug__personas__persona_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","description":"Show slug","title":"Slug"},"description":"Show slug"},{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the workspace","title":"Workspace Id"},"description":"ID of the workspace"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowPersona"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Shows"],"summary":"Update Show Persona","description":"Update an existing show persona","operationId":"update_show_persona_shows__slug__personas__persona_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","description":"Show slug","title":"Slug"},"description":"Show slug"},{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the workspace","title":"Workspace Id"},"description":"ID of the workspace"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowPersonaUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShowPersona"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Shows"],"summary":"Delete Show Persona","description":"Delete a show persona","operationId":"delete_show_persona_shows__slug__personas__persona_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","description":"Show slug","title":"Slug"},"description":"Show slug"},{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the workspace","title":"Workspace Id"},"description":"ID of the workspace"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/podcast-handle":{"get":{"tags":["Podcast Handles"],"summary":"Get Podcast Handle","description":"Get the podcast handle for the current account","operationId":"get_podcast_handle_podcast_handle_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PodcastHandle"},{"type":"null"}],"title":"Response Get Podcast Handle Podcast Handle Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"put":{"tags":["Podcast Handles"],"summary":"Create Or Update Podcast Handle","description":"Create or update podcast handle for the current account.\nEach account can only have one handle.","operationId":"create_or_update_podcast_handle_podcast_handle_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastHandleCreateUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PodcastHandle"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/podcast-handle/handles/{handle}/availability":{"get":{"tags":["Podcast Handles"],"summary":"Check Handle Availability","description":"Public endpoint to check if a podcast handle is available.\nDoes not require authentication.","operationId":"check_handle_availability_podcast_handle_handles__handle__availability_get","parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","description":"Handle to check availability for","title":"Handle"},"description":"Handle to check availability for"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandleAvailability"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats":{"get":{"tags":["Stats"],"summary":"Track And Redirect","description":"Track audio URL hits and redirect.\nUse this URL in place of the actual audio URL to track plays.","operationId":"track_and_redirect_stats_get","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Audio URL to track and redirect to","title":"Url"},"description":"Audio URL to track and redirect to"}],"responses":{"308":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stats/list":{"get":{"tags":["Stats"],"summary":"Get Stats","description":"Get paginated list of stats entries","operationId":"get_stats_stats_list_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Number of items per page","default":100,"title":"Limit"},"description":"Number of items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip","default":0,"title":"Offset"},"description":"Number of items to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credits/balance":{"post":{"tags":["Credits"],"summary":"Get User Credit Balance","description":"Get user's credit balance information for a specific account","operationId":"get_user_credit_balance_credits_balance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBalanceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBalanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/credits/transactions":{"post":{"tags":["Credits"],"summary":"Get User Credit Transactions","description":"Get user's credit transaction history for a specific account","operationId":"get_user_credit_transactions_credits_transactions_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Number of transactions to retrieve","default":100,"title":"Limit"},"description":"Number of transactions to retrieve"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditTransactionsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/src__credits__schemas__CreditTransactionResponse"},"title":"Response Get User Credit Transactions Credits Transactions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/notify/{user_id}":{"post":{"tags":["notifications"],"summary":"Send Notification","description":"Send a notification to a specific user","operationId":"send_notification_notifications_notify__user_id__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"message","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Message"}},{"name":"type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NotificationType","default":"info"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/notify-all":{"post":{"tags":["notifications"],"summary":"Broadcast Notification","operationId":"broadcast_notification_notifications_notify_all_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"message","in":"query","required":true,"schema":{"type":"string","title":"Message"}},{"name":"type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/NotificationType","default":"info"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/welcome/execute":{"post":{"tags":["Workflows"],"summary":"Execute Welcome Workflow","description":"Execute the Welcome workflow with first name and last name parameters.\n    \n    This endpoint:\n    1. Validates the input parameters\n    2. Creates an execution log entry\n    3. Calls the external workflow automation platform\n    4. Returns the execution details with status\n    5. Starts background status monitoring\n    \n    The workflow will process the provided first and last name through\n    the configured Welcome workflow on the external platform.","operationId":"execute_welcome_workflow_workflows_welcome_execute_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WelcomeWorkflowRequest"}}},"required":true},"responses":{"201":{"description":"Workflow execution started successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionLogResponse"},"example":{"id":"123e4567-e89b-12d3-a456-426614174000","workspace_id":"workspace-123","workflow_id":"da75ae19-53d1-4b03-be3e-50f179d3d225","workflow_name":"Welcome Workflow","external_reference_id":"1234567890","status":"STARTED","payload":{"first_name":"John","last_name":"Doe"},"response_data":{"status":"success","message":"Workflow execution started","workflow_id":"da75ae19-53d1-4b03-be3e-50f179d3d225","external_reference_id":"1234567890"},"started_at":"2024-03-19T10:00:00Z","created_on":"2024-03-19T10:00:00Z","created_by":"user-123"}}}},"400":{"description":"Invalid request parameters"},"401":{"description":"Unauthorized"},"500":{"description":"Workflow execution failed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/workflows/executions":{"get":{"tags":["Workflows"],"summary":"Get Execution Logs","description":"Get a paginated list of workflow execution logs for the current user's project.\n    \n    Supports filtering by:\n    - Status (STARTED, COMPLETED, FAILED)\n    - Pagination with page and limit parameters\n    \n    Results are ordered by creation date (newest first).","operationId":"get_execution_logs_workflows_executions_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the project","title":"Project Id"},"description":"ID of the project"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by execution status","title":"Status"},"description":"Filter by execution status"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":50,"title":"Limit"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionLogListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/executions/{execution_id}":{"get":{"tags":["Workflows"],"summary":"Get Execution By Id","description":"Get detailed information about a specific workflow execution.\n    \n    Returns complete execution details including:\n    - Execution status and timestamps\n    - Original payload and response data\n    - Error details (if applicable)\n    - Workflow metadata","operationId":"get_execution_by_id_workflows_executions__execution_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","description":"Unique execution identifier","title":"Execution Id"},"description":"Unique execution identifier"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/executions/{execution_id}/refresh-status":{"post":{"tags":["Workflows"],"summary":"Refresh Execution Status","description":"Manually refresh the status of a workflow execution from the external platform.\n    \n    This endpoint:\n    1. Queries the external workflow platform for the latest status\n    2. Updates the local execution log with the current status\n    3. Returns the updated execution details\n    \n    Useful for getting real-time status updates or troubleshooting execution issues.","operationId":"refresh_execution_status_workflows_executions__execution_id__refresh_status_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","description":"Unique execution identifier","title":"Execution Id"},"description":"Unique execution identifier"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workflows/config/{key_code}":{"get":{"tags":["Workflows"],"summary":"Get Config","description":"Get a configuration value by key code","operationId":"get_config_workflows_config__key_code__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"key_code","in":"path","required":true,"schema":{"type":"string","description":"Configuration key code","title":"Key Code"},"description":"Configuration key code"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Workflows"],"summary":"Set Config","description":"Set or update a configuration value","operationId":"set_config_workflows_config__key_code__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"key_code","in":"path","required":true,"schema":{"type":"string","description":"Configuration key code","title":"Key Code"},"description":"Configuration key code"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tiktok/oauth/initiate":{"get":{"tags":["TikTok"],"summary":"Initiate Oauth","operationId":"initiate_oauth_tiktok_oauth_initiate_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID to link TikTok account","title":"Workspace Id"},"description":"Workspace ID to link TikTok account"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthInitiateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tiktok/oauth/callback":{"get":{"tags":["TikTok"],"summary":"Oauth Callback","operationId":"oauth_callback_tiktok_oauth_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","description":"Authorization code from TikTok","title":"Code"},"description":"Authorization code from TikTok"},{"name":"state","in":"query","required":true,"schema":{"type":"string","description":"State parameter containing user and workspace IDs","title":"State"},"description":"State parameter containing user and workspace IDs"},{"name":"scopes","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Granted scopes from TikTok","title":"Scopes"},"description":"Granted scopes from TikTok"},{"name":"redirect_uri","in":"query","required":false,"schema":{"type":"string","description":"OAuth redirect URI (must match the one used in initiate)","default":"https://api.feedpilot.org/tiktok/oauth/callback","title":"Redirect Uri"},"description":"OAuth redirect URI (must match the one used in initiate)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tiktok/auth/status":{"get":{"tags":["TikTok"],"summary":"Get Auth Status","description":"Get TikTok authentication status for a workspace\n\nReturns the current TikTok authentication status and user info if connected.","operationId":"get_auth_status_tiktok_auth_status_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TikTokAuthResponse"},{"type":"null"}],"title":"Response Get Auth Status Tiktok Auth Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tiktok/auth/disconnect":{"delete":{"tags":["TikTok"],"summary":"Disconnect Auth","description":"Disconnect TikTok authentication\n\nRemoves the TikTok authentication for the specified workspace.","operationId":"disconnect_auth_tiktok_auth_disconnect_delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tiktok/creator/info":{"get":{"tags":["TikTok"],"summary":"Get Creator Info","operationId":"get_creator_info_tiktok_creator_info_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tiktok/video/init":{"post":{"tags":["TikTok"],"summary":"Init Video Upload","operationId":"init_video_upload_tiktok_video_init_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoInitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoInitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tiktok/video/status":{"post":{"tags":["TikTok"],"summary":"Check Publish Status","operationId":"check_publish_status_tiktok_video_status_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"},{"name":"publish_id","in":"query","required":true,"schema":{"type":"string","description":"Publish ID to check status for","title":"Publish Id"},"description":"Publish ID to check status for"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tiktok/rss_feed_url":{"get":{"tags":["TikTok"],"summary":"Get Rss Feed Url","description":"Get RSS feed URL for a podcast\n\nReturns the RSS feed URL constructed from:\n- Podcast handle (from account_id)\n- Show slug (from workspace_id)\n- S3 endpoint URL (from settings)\n\nFormat: {S3_ENDPOINT_URL}/{handle}/podcasts/{slug}/feed.xml","operationId":"get_rss_feed_url_tiktok_rss_feed_url_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","description":"Account ID to fetch podcast handle","title":"Account Id"},"description":"Account ID to fetch podcast handle"},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID to fetch show slug","title":"Workspace Id"},"description":"Workspace ID to fetch show slug"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RSSFeedURLResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/personas":{"post":{"tags":["Personas"],"summary":"Create Persona","description":"Create or update persona (upsert) - one persona per workspace","operationId":"create_persona_personas_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Persona"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Personas"],"summary":"Get Personas","description":"Get paginated list of personas for a workspace","operationId":"get_personas_personas_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the workspace","title":"Workspace Id"},"description":"ID of the workspace"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/personas/{workspace_id}":{"patch":{"tags":["Personas"],"summary":"Update Persona","description":"Update an existing persona","operationId":"update_persona_personas__workspace_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Persona"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Personas"],"summary":"Get Persona","description":"Get persona for a workspace (includes progress/completion status)","operationId":"get_persona_personas__workspace_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Persona"},{"type":"null"}],"title":"Response Get Persona Personas  Workspace Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/personas/workspace/{workspace_id}/generate-example-posts":{"post":{"tags":["Personas"],"summary":"Generate Example Posts","operationId":"generate_example_posts_personas_workspace__workspace_id__generate_example_posts_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","description":"Persona ID","title":"Workspace Id"},"description":"Persona ID"}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/schedulers/start":{"post":{"tags":["Schedulers"],"summary":"Start Scheduler","description":"Legacy endpoint: Start scheduler for a specific workspace.\nThis will immediately generate an idea for the given workspace's persona.","operationId":"start_scheduler_schedulers_start_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/schedulers/check-and-queue":{"post":{"tags":["Schedulers"],"summary":"Check And Queue Workflows","description":"**[TESTING ONLY]** Manually trigger check and queue workflows.\n\nIn production, this runs automatically via the periodic scheduler.\nThis endpoint is kept for testing and manual triggering when needed.\n\nCheck all workflows (idea, script, video generation) and queue them if needed:\n- Ideas: Queue personas with cadences (DAILY/3_PER_WEEK) if they need more projects\n- Scripts: Queue projects with ideas but no scripts\n- Videos: Queue projects with scripts but no videos (scheduled for tomorrow)\n\nArgs:\n    system_wide: If True, checks all workflows system-wide. If False, only checks user's workflows.","operationId":"check_and_queue_workflows_schedulers_check_and_queue_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"system_wide","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"System Wide"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/schedulers/start-processing-loop":{"post":{"tags":["Schedulers"],"summary":"Start Processing Loop","description":"**[TESTING/MANUAL RESTART ONLY]** Start the background processing loop.\n\nThe processing loop is automatically started on application startup.\nThis endpoint is useful for manual restarts if needed during testing or debugging.","operationId":"start_processing_loop_schedulers_start_processing_loop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/schedulers/stop-processing-loop":{"post":{"tags":["Schedulers"],"summary":"Stop Processing Loop","description":"Stop the background processing loop.","operationId":"stop_processing_loop_schedulers_stop_processing_loop_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/schedulers/queue-status":{"get":{"tags":["Schedulers"],"summary":"Get Queue Status","description":"Get the current status of the Redis queue and processing loop.","operationId":"get_queue_status_schedulers_queue_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/threads/connect":{"post":{"tags":["Threads"],"summary":"Connect Threads Account","operationId":"connect_threads_account_threads_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsConnectionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/threads/callback":{"get":{"tags":["Threads"],"summary":"Threads Callback","operationId":"threads_callback_threads_callback_get","parameters":[{"name":"connected","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Authorization code from Late API","title":"Connected"},"description":"Authorization code from Late API"},{"name":"profileId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"State parameter from callback","title":"Profileid"},"description":"State parameter from callback"},{"name":"username","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Profile ID from callback","title":"Username"},"description":"Profile ID from callback"},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Error message if connection failed","title":"Error"},"description":"Error message if connection failed"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threads/posts":{"post":{"tags":["Threads"],"summary":"Create Threads Post","description":"Create a post on Threads via Late API","operationId":"create_threads_post_threads_posts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsPostRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/threads/disconnect":{"delete":{"tags":["Threads"],"summary":"Disconnect Threads Account","description":"Disconnect Threads account by deleting it from Late API and clearing persona data","operationId":"disconnect_threads_account_threads_disconnect_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsDisconnectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/threads/meta/connect":{"post":{"tags":["Threads"],"summary":"Connect Meta Threads Account","description":"Connect Threads account via Meta API","operationId":"connect_meta_threads_account_threads_meta_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsConnectionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/threads/meta/callback":{"get":{"tags":["Threads"],"summary":"Meta Threads Callback","description":"Handle Meta Threads OAuth callback","operationId":"meta_threads_callback_threads_meta_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Authorization code from Meta API","title":"Code"},"description":"Authorization code from Meta API"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"State parameter from callback","title":"State"},"description":"State parameter from callback"},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Error message if connection failed","title":"Error"},"description":"Error message if connection failed"},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Error description if connection failed","title":"Error Description"},"description":"Error description if connection failed"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threads/meta/posts":{"post":{"tags":["Threads"],"summary":"Create Meta Threads Post","description":"Create a post on Threads via Meta API","operationId":"create_meta_threads_post_threads_meta_posts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsPostRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsPostResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/threads/meta/me/threads":{"get":{"tags":["Threads"],"summary":"Get My Threads","description":"Get authenticated user's threads","operationId":"get_my_threads_threads_meta_me_threads_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields to return","title":"Fields"},"description":"Comma-separated list of fields to return"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Number of threads to retrieve","title":"Limit"},"description":"Number of threads to retrieve"},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date for filtering threads (YYYY-MM-DD format)","title":"Since"},"description":"Start date for filtering threads (YYYY-MM-DD format)"},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date for filtering threads (YYYY-MM-DD format)","title":"Until"},"description":"End date for filtering threads (YYYY-MM-DD format)"},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for previous page of results","title":"Before"},"description":"Cursor for previous page of results"},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for next page of results","title":"After"},"description":"Cursor for next page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threads/meta/profile_posts":{"get":{"tags":["Threads"],"summary":"Get Profile Posts","description":"Get public profile's threads/posts","operationId":"get_profile_posts_threads_meta_profile_posts_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"},{"name":"username","in":"query","required":true,"schema":{"type":"string","description":"Threads username","title":"Username"},"description":"Threads username"},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields to return","title":"Fields"},"description":"Comma-separated list of fields to return"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Number of posts to retrieve","title":"Limit"},"description":"Number of posts to retrieve"},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date for filtering posts (YYYY-MM-DD format)","title":"Since"},"description":"Start date for filtering posts (YYYY-MM-DD format)"},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date for filtering posts (YYYY-MM-DD format)","title":"Until"},"description":"End date for filtering posts (YYYY-MM-DD format)"},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for previous page of results","title":"Before"},"description":"Cursor for previous page of results"},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for next page of results","title":"After"},"description":"Cursor for next page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePostsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threads/meta/{thread_id}/replies":{"get":{"tags":["Threads"],"summary":"Get Replies","description":"Get replies to a thread (works for both authenticated user and public threads)","operationId":"get_replies_threads_meta__thread_id__replies_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields to return","title":"Fields"},"description":"Comma-separated list of fields to return"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Number of replies to retrieve","title":"Limit"},"description":"Number of replies to retrieve"},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date for filtering replies (YYYY-MM-DD format)","title":"Since"},"description":"Start date for filtering replies (YYYY-MM-DD format)"},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date for filtering replies (YYYY-MM-DD format)","title":"Until"},"description":"End date for filtering replies (YYYY-MM-DD format)"},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for previous page of results","title":"Before"},"description":"Cursor for previous page of results"},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Cursor for next page of results","title":"After"},"description":"Cursor for next page of results"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepliesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threads/meta/replies":{"post":{"tags":["Threads"],"summary":"Create Reply","description":"Create a reply to a Threads post (container creation + publish)","operationId":"create_reply_threads_meta_replies_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReplyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReplyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/threads/meta/profile_lookup":{"get":{"tags":["Threads"],"summary":"Get Profile Lookup","description":"Look up a public Threads profile by username","operationId":"get_profile_lookup_threads_meta_profile_lookup_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"},{"name":"username","in":"query","required":true,"schema":{"type":"string","description":"Threads username","title":"Username"},"description":"Threads username"},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields to return","title":"Fields"},"description":"Comma-separated list of fields to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threads/meta/me":{"get":{"tags":["Threads"],"summary":"Get My Profile","description":"Get authenticated user's profile information","operationId":"get_my_profile_threads_meta_me_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields to return","title":"Fields"},"description":"Comma-separated list of fields to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threads/meta/{threads_media_id}/insights":{"get":{"tags":["Threads"],"summary":"Get Media Insights","description":"Get insights for a specific Threads media/post","operationId":"get_media_insights_threads_meta__threads_media_id__insights_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"threads_media_id","in":"path","required":true,"schema":{"type":"string","title":"Threads Media Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"},{"name":"metric","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated list of metrics (likes, replies, reposts, quotes, shares, views)","title":"Metric"},"description":"Comma-separated list of metrics (likes, replies, reposts, quotes, shares, views)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MediaInsightsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/threads/meta/insights":{"get":{"tags":["Threads"],"summary":"Get User Insights","description":"Get insights for a Threads user/account","operationId":"get_user_insights_threads_meta_insights_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"},{"name":"metric","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated list of metrics (views, likes, replies, reposts, quotes, clicks, followers_count, follower_demographics)","title":"Metric"},"description":"Comma-separated list of metrics (views, likes, replies, reposts, quotes, clicks, followers_count, follower_demographics)"},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Unix timestamp for start of range (earliest: 1712991600)","title":"Since"},"description":"Unix timestamp for start of range (earliest: 1712991600)"},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Unix timestamp for end of range (earliest: 1712991600)","title":"Until"},"description":"Unix timestamp for end of range (earliest: 1712991600)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInsightsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access/create-user":{"post":{"tags":["Access"],"summary":"Create User","description":"Create a user with package assignment.\nOnly accessible to users with super_admin role.","operationId":"create_user_access_create_user_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/access/send-emails":{"post":{"tags":["Access"],"summary":"Send Bulk Emails","description":"Bulk send signup emails with access tokens.\nOnly accessible to users with super_admin role.","operationId":"send_bulk_emails_access_send_emails_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/access/process-refund":{"post":{"tags":["Access"],"summary":"Process Refund","description":"Process refunds for one or more users by email.\nDeactivates user, workspaces, zeros credits, deactivates packages and personas.\nOnly accessible to users with super_admin role.","operationId":"process_refund_access_process_refund_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserActionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/access/activate-user":{"post":{"tags":["Access"],"summary":"Activate User","description":"Activate one or more users by email.\nRe-activates user, account, workspaces, personas, and packages.\nOnly accessible to users with super_admin role.","operationId":"activate_user_access_activate_user_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserActionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/access/deactivate-package":{"post":{"tags":["Access"],"summary":"Deactivate Package","description":"Deactivate one package for a user (multi-package accounts only). Super_admin only.","operationId":"deactivate_package_access_deactivate_package_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeactivatePackageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeactivatePackageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/lookup/user-projects":{"post":{"tags":["Lookup"],"summary":"Get User Projects","description":"Get all projects for a user (by email) created after a given date, with their status/stage.\nOnly accessible to users with super_admin role.","operationId":"get_user_projects_lookup_user_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProjectsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProjectsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/lookup/delete-user-projects":{"post":{"tags":["Lookup"],"summary":"Delete User Projects","description":"Soft-delete all projects for a user on and after the given date, then reset the\npersona to DRAFT so auto-generation stops and the user is redirected to onboarding.\nPass workspace_id (from /check-workspace) if user has multiple workspaces.\nOnly accessible to users with super_admin role.","operationId":"delete_user_projects_lookup_delete_user_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteUserProjectsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteUserProjectsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/lookup/user-persona":{"post":{"tags":["Lookup"],"summary":"Get User Persona","description":"Get persona details for a user by email.\nUse the returned persona_id in /delete-user-projects when the user has multiple personas.\nOnly accessible to users with super_admin role.","operationId":"get_user_persona_lookup_user_persona_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPersonaRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPersonaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/lookup/check-workspace":{"post":{"tags":["Lookup"],"summary":"Get User Workspaces","description":"Get all workspaces for a user by email, including persona stage per workspace.\nUse the returned workspace_id in /delete-user-projects when the user has multiple workspaces.\nOnly accessible to users with super_admin role.","operationId":"get_user_workspaces_lookup_check_workspace_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserWorkspacesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserWorkspacesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/lookup/user-stats":{"post":{"tags":["Lookup"],"summary":"Get User Stats","description":"Get stats for a user by email: sales channel, subscriber status, basic user fields, and active packages.\nOnly accessible to users with super_admin role.","operationId":"get_user_stats_lookup_user_stats_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserStatsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/lookup/reset-project-status":{"post":{"tags":["Lookup"],"summary":"Reset Project Status","description":"Reset status and exe_status for a specific project by ID.\nOnly accessible to users with super_admin role.","operationId":"reset_project_status_lookup_reset_project_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetProjectStatusRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/engagement/profiles":{"post":{"tags":["Engagement"],"summary":"Add Monitored Profile","description":"Add a Threads profile to monitor.","operationId":"add_monitored_profile_engagement_profiles_post","security":[{"OAuth2PasswordBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddProfileRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitoredProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Engagement"],"summary":"Get Monitored Profiles","description":"List monitored profiles with filtering and pagination.","operationId":"get_monitored_profiles_engagement_profiles_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"persona_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"},{"name":"is_monitoring_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by monitoring status","title":"Is Monitoring Active"},"description":"Filter by monitoring status"},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":3,"minimum":1},{"type":"null"}],"description":"Filter by priority","title":"Priority"},"description":"Filter by priority"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search in username or display name","title":"Search"},"description":"Search in username or display name"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitoredProfileListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagement/profiles/{profile_id}":{"get":{"tags":["Engagement"],"summary":"Get Monitored Profile","description":"Get a single monitored profile by ID.","operationId":"get_monitored_profile_engagement_profiles__profile_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the monitored profile","title":"Profile Id"},"description":"ID of the monitored profile"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitoredProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Engagement"],"summary":"Update Monitored Profile","description":"Update a monitored profile's settings.","operationId":"update_monitored_profile_engagement_profiles__profile_id__patch","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the monitored profile","title":"Profile Id"},"description":"ID of the monitored profile"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitoredProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Engagement"],"summary":"Remove Monitored Profile","description":"Remove a profile from monitoring (soft delete).","operationId":"remove_monitored_profile_engagement_profiles__profile_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the monitored profile to remove","title":"Profile Id"},"description":"ID of the monitored profile to remove"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagement/profiles/{profile_id}/refresh":{"post":{"tags":["Engagement"],"summary":"Refresh Profile Info","description":"Refresh profile metadata from Threads API.","operationId":"refresh_profile_info_engagement_profiles__profile_id__refresh_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the monitored profile","title":"Profile Id"},"description":"ID of the monitored profile"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitoredProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagement/posts":{"get":{"tags":["Engagement"],"summary":"Get Detected Posts","description":"List detected posts with status filtering.","operationId":"get_detected_posts_engagement_posts_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"persona_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DetectedPostStatus"},{"type":"null"}],"description":"Filter by status","title":"Status"},"description":"Filter by status"},{"name":"should_reply","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Filter by AI decision","title":"Should Reply"},"description":"Filter by AI decision"},{"name":"monitored_profile_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by profile","title":"Monitored Profile Id"},"description":"Filter by profile"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectedPostListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagement/replies/pending":{"get":{"tags":["Engagement"],"summary":"Get Pending Replies","description":"Get replies awaiting approval (manual mode).","operationId":"get_pending_replies_engagement_replies_pending_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"persona_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PendingReplyListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagement/replies/{reply_id}/approve":{"post":{"tags":["Engagement"],"summary":"Approve Reply","description":"Approve a reply for posting (optionally with edits).","operationId":"approve_reply_engagement_replies__reply_id__approve_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"reply_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the reply to approve","title":"Reply Id"},"description":"ID of the reply to approve"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApproveReplyRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedReplyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagement/replies/{reply_id}/reject":{"post":{"tags":["Engagement"],"summary":"Reject Reply","description":"Reject a reply with optional reason.","operationId":"reject_reply_engagement_replies__reply_id__reject_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"reply_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the reply to reject","title":"Reply Id"},"description":"ID of the reply to reject"}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RejectReplyRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedReplyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagement/replies/{reply_id}/regenerate":{"post":{"tags":["Engagement"],"summary":"Regenerate Reply","description":"Request AI to generate a new reply for the same post.","operationId":"regenerate_reply_engagement_replies__reply_id__regenerate_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"reply_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the reply to regenerate","title":"Reply Id"},"description":"ID of the reply to regenerate"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedReplyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagement/replies/history":{"get":{"tags":["Engagement"],"summary":"Get Reply History","description":"Get reply history for a persona.","operationId":"get_reply_history_engagement_replies_history_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"persona_id","in":"query","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":20,"title":"Limit"},"description":"Items per page"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Items to skip","default":0,"title":"Offset"},"description":"Items to skip"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedReplyListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagement/settings/{persona_id}":{"get":{"tags":["Engagement"],"summary":"Get Engagement Settings","description":"Get engagement settings for a persona.","operationId":"get_engagement_settings_engagement_settings__persona_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Engagement"],"summary":"Update Engagement Settings","description":"Update engagement settings for a persona.","operationId":"update_engagement_settings_engagement_settings__persona_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagement/analytics/{persona_id}":{"get":{"tags":["Engagement"],"summary":"Get Engagement Analytics","description":"Get engagement statistics for a persona.","operationId":"get_engagement_analytics_engagement_analytics__persona_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","description":"ID of the persona","title":"Persona Id"},"description":"ID of the persona"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Start date for analytics","title":"Start Date"},"description":"Start date for analytics"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"End date for analytics","title":"End Date"},"description":"End date for analytics"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/pause-state":{"get":{"tags":["Auto Pause"],"summary":"Get Workspace Pause State","description":"Read the auto-pause state for a workspace.\nDrives the 'workspace paused' banner on the FE — banner reads is_paused directly,\nnever derives state from date math.","operationId":"get_workspace_pause_state_workspaces__workspace_id__pause_state_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspacePauseStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/resume":{"post":{"tags":["Auto Pause"],"summary":"Resume Workspace","description":"'Resume autopilot' — clears the pause flag, locks horizon at 7 days\n(permanent), and restarts the silence clock from today.","operationId":"resume_workspace_workspaces__workspace_id__resume_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Account":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"owner_user_id":{"type":"string","title":"Owner User Id"},"sales_channel":{"type":"string","title":"Sales Channel"},"sales_channel_cust_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Channel Cust Id"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"onboarding_call_booked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onboarding Call Booked"}},"type":"object","required":["id","name","owner_user_id","sales_channel","is_active","created_on"],"title":"Account"},"AccountBalanceRequest":{"properties":{"account_id":{"type":"string","title":"Account Id","description":"Account identifier"}},"type":"object","required":["account_id"],"title":"AccountBalanceRequest","description":"Request schema for account balance information","example":{"account_id":"acc_123456"}},"AccountBalanceResponse":{"properties":{"account_id":{"type":"string","title":"Account Id","description":"Account identifier"},"current_balance":{"type":"integer","title":"Current Balance","description":"Current credit balance"},"monthly_quota":{"type":"integer","title":"Monthly Quota","description":"Monthly credit quota"},"last_reset":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reset","description":"Last quota reset timestamp"},"next_reset":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Reset","description":"Next quota reset timestamp"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On","description":"Last updated timestamp"}},"type":"object","required":["account_id","current_balance","monthly_quota"],"title":"AccountBalanceResponse","description":"Response schema for account balance information","example":{"account_id":"acc_123456","current_balance":150,"last_reset":"2024-01-01T00:00:00Z","monthly_quota":500,"next_reset":"2024-02-01T00:00:00Z","updated_on":"2024-01-15T10:30:00Z"}},"AccountCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"AccountCreateRequest"},"AccountListResponse":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/Account"},"type":"array","title":"Accounts"}},"type":"object","required":["accounts"],"title":"AccountListResponse"},"AccountUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"onboarding_call_booked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Onboarding Call Booked"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"AccountUpdateRequest"},"ActivePackageInfo":{"properties":{"package_id":{"type":"string","title":"Package Id","description":"Package ID"},"name":{"type":"string","title":"Name","description":"Package name"},"package_type":{"type":"string","title":"Package Type","description":"Package type: SUBSCRIPTION | LTD | UPSELL"},"is_trial":{"type":"boolean","title":"Is Trial","description":"True if the package is currently on a trial"},"package_expiry_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Package Expiry Date","description":"When the package expires"},"trial_period_expires_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Period Expires On","description":"When the trial period expires"},"created_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created On","description":"When the package was purchased/assigned"}},"type":"object","required":["package_id","name","package_type","is_trial"],"title":"ActivePackageInfo","description":"Info for a single active package"},"AddProfileRequest":{"properties":{"persona_id":{"type":"string","title":"Persona Id","description":"ID of the persona"},"username":{"type":"string","title":"Username","description":"@username to monitor"}},"type":"object","required":["persona_id","username"],"title":"AddProfileRequest","description":"Request to add a Threads profile to monitor"},"ApproveReplyRequest":{"properties":{"edited_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited Content","description":"Optionally edit the reply content"}},"type":"object","title":"ApproveReplyRequest","description":"Request to approve a reply for posting"},"BalanceResponse":{"properties":{"current_balance":{"type":"integer","title":"Current Balance"},"monthly_quota":{"type":"integer","title":"Monthly Quota"},"last_reset":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reset"},"next_reset":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Reset"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["current_balance","monthly_quota","is_active"],"title":"BalanceResponse"},"Body_login_for_access_token_auth_token_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"password"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_login_for_access_token_auth_token_post"},"Body_public_upload_documents_public_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File","description":"The file to upload to public storage"}},"type":"object","required":["file"],"title":"Body_public_upload_documents_public_upload_post"},"Body_update_user_users__user_id__patch":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"preferred_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Language"},"profile_picture":{"type":"string","format":"binary","title":"Profile Picture"}},"type":"object","title":"Body_update_user_users__user_id__patch"},"Body_upload_document_documents_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File","description":"The file to upload. Supported formats: PDF, DOCX, XLSX, CSV, TXT"},"doc_payload":{"type":"string","title":"Doc Payload","description":"Document metadata as JSON string. Example:\n        {\n            \"workspace_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n            \"folder_id\": \"098f6bcd-4621-3373-8ade-4e832627b4f6\",\n            \"description\": \"My important document\"\n        }\n        "}},"type":"object","required":["file","doc_payload"],"title":"Body_upload_document_documents_upload_post"},"CentralEntryRequest":{"properties":{"packages":{"items":{"type":"string"},"type":"array","title":"Packages","default":[]}},"type":"object","title":"CentralEntryRequest","description":"Click-time entry from the platform shell: the packages the PARENT\nbelieves this user owns for this app. A HINT only — never trusted."},"CentralEntryResponse":{"properties":{"resynced":{"type":"boolean","title":"Resynced"},"granted":{"items":{"type":"string"},"type":"array","title":"Granted"},"revoked":{"items":{"type":"string"},"type":"array","title":"Revoked","default":[]}},"type":"object","required":["resynced","granted"],"title":"CentralEntryResponse"},"CheckoutSessionReq":{"properties":{"price_id":{"type":"string","title":"Price Id"}},"type":"object","required":["price_id"],"title":"CheckoutSessionReq"},"ConfigRequest":{"properties":{"key_value":{"type":"string","title":"Key Value","description":"Configuration value"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the configuration"}},"type":"object","required":["key_value"],"title":"ConfigRequest"},"ConfigResponse":{"properties":{"id":{"type":"string","title":"Id"},"key_code":{"type":"string","title":"Key Code"},"key_value":{"type":"string","title":"Key Value"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"}},"type":"object","required":["id","key_code","key_value","description","is_active"],"title":"ConfigResponse"},"CreateReplyRequest":{"properties":{"reply_to_id":{"type":"string","title":"Reply To Id","description":"Thread ID to reply to"},"text":{"type":"string","title":"Text","description":"Reply text content"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Image URL for the reply"},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url","description":"Video URL for the reply"},"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"}},"type":"object","required":["reply_to_id","text","workspace_id"],"title":"CreateReplyRequest","description":"Request model for creating a reply"},"CreateReplyResponse":{"properties":{"reply_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Id","description":"Reply ID"},"creation_id":{"type":"string","title":"Creation Id","description":"Creation ID"},"threads_user_id":{"type":"string","title":"Threads User Id","description":"Threads user ID"},"media_type":{"type":"string","title":"Media Type","description":"Media type of the reply"}},"type":"object","required":["creation_id","threads_user_id","media_type"],"title":"CreateReplyResponse","description":"Response model for creating a reply"},"CreateUserRequest":{"properties":{"email_address":{"type":"string","format":"email","title":"Email Address","description":"Email address of the user to create"},"package_name":{"type":"string","title":"Package Name","description":"Name of the package to assign to the user"}},"type":"object","required":["email_address","package_name"],"title":"CreateUserRequest","description":"Request model for creating a user via admin access"},"CreateUserResponse":{"properties":{"email":{"type":"string","title":"Email","description":"Email address of the created user"},"user_id":{"type":"string","title":"User Id","description":"User ID"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id","description":"Account ID if created"},"status":{"type":"string","title":"Status","description":"Creation status"},"message":{"type":"string","title":"Message","description":"Status message"},"package_name":{"type":"string","title":"Package Name","description":"Package name that was assigned"}},"type":"object","required":["email","user_id","status","message","package_name"],"title":"CreateUserResponse","description":"Response model for user creation"},"CreatorInfoData":{"properties":{"creator_avatar_url":{"type":"string","title":"Creator Avatar Url"},"creator_username":{"type":"string","title":"Creator Username"},"creator_nickname":{"type":"string","title":"Creator Nickname"},"privacy_level_options":{"items":{"type":"string"},"type":"array","title":"Privacy Level Options"},"comment_disabled":{"type":"boolean","title":"Comment Disabled"},"duet_disabled":{"type":"boolean","title":"Duet Disabled"},"stitch_disabled":{"type":"boolean","title":"Stitch Disabled"},"max_video_post_duration_sec":{"type":"integer","title":"Max Video Post Duration Sec"}},"type":"object","required":["creator_avatar_url","creator_username","creator_nickname","privacy_level_options","comment_disabled","duet_disabled","stitch_disabled","max_video_post_duration_sec"],"title":"CreatorInfoData","description":"TikTok creator info data"},"CreatorInfoResponse":{"properties":{"data":{"$ref":"#/components/schemas/CreatorInfoData"},"error":{"$ref":"#/components/schemas/TikTokErrorInfo"}},"type":"object","required":["data","error"],"title":"CreatorInfoResponse","description":"Response for TikTok creator info query"},"CreditTransactionListResponse":{"properties":{"transactions":{"items":{"$ref":"#/components/schemas/infinitgoose_app_template_backend__billing__schemas__CreditTransactionResponse"},"type":"array","title":"Transactions"}},"type":"object","required":["transactions"],"title":"CreditTransactionListResponse"},"CreditTransactionsRequest":{"properties":{"account_id":{"type":"string","title":"Account Id","description":"Account identifier"}},"type":"object","required":["account_id"],"title":"CreditTransactionsRequest","description":"Request schema for credit transaction history","example":{"account_id":"acc_123456"}},"DailyBreakdown":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"posts_detected":{"type":"integer","title":"Posts Detected"},"posts_replied":{"type":"integer","title":"Posts Replied"},"posts_skipped":{"type":"integer","title":"Posts Skipped"}},"type":"object","required":["date","posts_detected","posts_replied","posts_skipped"],"title":"DailyBreakdown","description":"Daily breakdown for analytics"},"DeactivatePackageRequest":{"properties":{"email_address":{"type":"string","format":"email","title":"Email Address","description":"Email Address"},"package_name":{"type":"string","enum":["FeedPilot FE","FeedPilot Unlimited"],"title":"Package Name","description":"Name of the package to deactivate"}},"type":"object","required":["email_address","package_name"],"title":"DeactivatePackageRequest","description":"Request model for deactivating a single package for a user"},"DeactivatePackageResponse":{"properties":{"email":{"type":"string","title":"Email","description":"Email address of the user"},"package_name":{"type":"string","title":"Package Name","description":"Name of the package targeted"},"status":{"type":"string","title":"Status","description":"Status (success/error)"},"message":{"type":"string","title":"Message","description":"Status message"},"new_credits":{"type":"integer","title":"New Credits","description":"Credit balance after recalculation"}},"type":"object","required":["email","package_name","status","message","new_credits"],"title":"DeactivatePackageResponse","description":"Response model for deactivating a single package"},"DeleteUserProjectsRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"Email address of the user"},"from_date":{"type":"string","title":"From Date","description":"Delete projects on and after this date. Format: YYYY-MM-DD"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id","description":"Required if user has multiple workspaces. Use workspace_id from /check-workspace to scope deletion."}},"type":"object","required":["email","from_date"],"title":"DeleteUserProjectsRequest","description":"Request model for deleting user projects from a given date onwards"},"DeleteUserProjectsResponse":{"properties":{"email":{"type":"string","title":"Email","description":"Email address"},"deleted_count":{"type":"integer","title":"Deleted Count","description":"Number of projects deleted"}},"type":"object","required":["email","deleted_count"],"title":"DeleteUserProjectsResponse","description":"Response model for deleting user projects"},"DetectedPostListResponse":{"properties":{"posts":{"items":{"$ref":"#/components/schemas/DetectedPostResponse"},"type":"array","title":"Posts"},"pagination":{"$ref":"#/components/schemas/src__engagement__schemas__PaginationInfo"}},"type":"object","required":["posts","pagination"],"title":"DetectedPostListResponse","description":"Paginated list of detected posts"},"DetectedPostResponse":{"properties":{"id":{"type":"string","title":"Id"},"monitored_profile_id":{"type":"string","title":"Monitored Profile Id"},"persona_id":{"type":"string","title":"Persona Id"},"threads_post_id":{"type":"string","title":"Threads Post Id"},"post_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Content"},"post_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Type"},"media_urls":{"items":{"type":"string"},"type":"array","title":"Media Urls","default":[]},"posted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Posted At"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"like_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Like Count"},"reply_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply Count"},"repost_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Repost Count"},"status":{"type":"string","title":"Status"},"should_reply":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Should Reply"},"ai_reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Reasoning"},"relevance_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Relevance Score"},"detected_at":{"type":"string","format":"date-time","title":"Detected At"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"},"monitored_profile":{"anyOf":[{"$ref":"#/components/schemas/MonitoredProfileSummary"},{"type":"null"}]},"reply":{"anyOf":[{"$ref":"#/components/schemas/GeneratedReplyResponse"},{"type":"null"}]}},"type":"object","required":["id","monitored_profile_id","persona_id","threads_post_id","status","detected_at","is_active","created_on"],"title":"DetectedPostResponse","description":"Response for a detected post"},"DetectedPostStatus":{"type":"string","enum":["DETECTED","EVALUATING","SKIP","PENDING_REPLY","APPROVED","REJECTED","REPLY_QUEUED","REPLY_SENT","REPLY_FAILED"],"title":"DetectedPostStatus"},"Document":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"workspace_id":{"type":"string","title":"Workspace Id"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"file_size":{"type":"integer","title":"File Size"},"mime_type":{"type":"string","title":"Mime Type"},"s3_key":{"type":"string","title":"S3 Key"},"upload_status":{"$ref":"#/components/schemas/UploadStatus"},"created_by":{"type":"string","title":"Created By"},"last_modified_by":{"type":"string","title":"Last Modified By"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"},"is_active":{"type":"boolean","title":"Is Active"},"podcast_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Podcast Url"}},"type":"object","required":["id","name","workspace_id","file_size","mime_type","s3_key","upload_status","created_by","last_modified_by","created_on","is_active"],"title":"Document"},"DocumentListResponse":{"properties":{"documents":{"items":{"$ref":"#/components/schemas/Document"},"type":"array","title":"Documents"},"total_count":{"type":"integer","title":"Total Count","description":"Total number of documents"},"page_count":{"type":"integer","title":"Page Count","description":"Total number of pages"},"current_page":{"type":"integer","title":"Current Page","description":"Current page number"},"has_next":{"type":"boolean","title":"Has Next","description":"Whether there are more pages"}},"type":"object","required":["documents","total_count","page_count","current_page","has_next"],"title":"DocumentListResponse"},"DocumentSearchResponse":{"properties":{"documents":{"items":{"$ref":"#/components/schemas/Document"},"type":"array","title":"Documents"},"total_count":{"type":"integer","title":"Total Count"},"search_metadata":{"additionalProperties":true,"type":"object","title":"Search Metadata"}},"type":"object","required":["documents","total_count"],"title":"DocumentSearchResponse"},"DocumentUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"DocumentUpdateRequest"},"EmailResult":{"properties":{"email":{"type":"string","title":"Email","description":"Email address"},"status":{"type":"string","title":"Status","description":"Sending status (success/error)"},"access_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token","description":"Generated access token"},"signup_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signup Url","description":"Signup URL with token"},"expires_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires Hours","description":"Token expiration hours"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if failed"}},"type":"object","required":["email","status"],"title":"EmailResult","description":"Result model for individual email sending"},"EngagementSettingsResponse":{"properties":{"id":{"type":"string","title":"Id"},"persona_id":{"type":"string","title":"Persona Id"},"is_engagement_enabled":{"type":"boolean","title":"Is Engagement Enabled"},"approval_mode":{"type":"string","title":"Approval Mode"},"polling_interval_minutes":{"type":"integer","title":"Polling Interval Minutes"},"min_reply_delay_minutes":{"type":"integer","title":"Min Reply Delay Minutes"},"max_reply_delay_minutes":{"type":"integer","title":"Max Reply Delay Minutes"},"max_replies_per_hour":{"type":"integer","title":"Max Replies Per Hour"},"max_replies_per_day":{"type":"integer","title":"Max Replies Per Day"},"max_replies_per_profile_per_day":{"type":"integer","title":"Max Replies Per Profile Per Day"},"min_relevance_score":{"type":"number","title":"Min Relevance Score"},"skip_posts_with_links":{"type":"boolean","title":"Skip Posts With Links"},"skip_posts_with_media_only":{"type":"boolean","title":"Skip Posts With Media Only"},"min_post_length":{"type":"integer","title":"Min Post Length"},"engagement_topics_include":{"items":{"type":"string"},"type":"array","title":"Engagement Topics Include","default":[]},"engagement_topics_exclude":{"items":{"type":"string"},"type":"array","title":"Engagement Topics Exclude","default":[]},"max_retry_attempts":{"type":"integer","title":"Max Retry Attempts"},"retry_delay_minutes":{"type":"integer","title":"Retry Delay Minutes"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"}},"type":"object","required":["id","persona_id","is_engagement_enabled","approval_mode","polling_interval_minutes","min_reply_delay_minutes","max_reply_delay_minutes","max_replies_per_hour","max_replies_per_day","max_replies_per_profile_per_day","min_relevance_score","skip_posts_with_links","skip_posts_with_media_only","min_post_length","max_retry_attempts","retry_delay_minutes","is_active","created_on"],"title":"EngagementSettingsResponse","description":"Response for engagement settings"},"EngagementStatsResponse":{"properties":{"period_start":{"type":"string","format":"date","title":"Period Start"},"period_end":{"type":"string","format":"date","title":"Period End"},"profiles_monitored":{"type":"integer","title":"Profiles Monitored"},"posts_detected":{"type":"integer","title":"Posts Detected"},"posts_replied":{"type":"integer","title":"Posts Replied"},"posts_skipped":{"type":"integer","title":"Posts Skipped"},"approval_rate":{"type":"number","title":"Approval Rate"},"average_relevance_score":{"type":"number","title":"Average Relevance Score"},"replies_by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"Replies By Status","default":{}},"top_engaged_profiles":{"items":{"$ref":"#/components/schemas/TopEngagedProfile"},"type":"array","title":"Top Engaged Profiles","default":[]},"daily_breakdown":{"items":{"$ref":"#/components/schemas/DailyBreakdown"},"type":"array","title":"Daily Breakdown","default":[]}},"type":"object","required":["period_start","period_end","profiles_monitored","posts_detected","posts_replied","posts_skipped","approval_rate","average_relevance_score"],"title":"EngagementStatsResponse","description":"Response for engagement statistics"},"ExecutionLogListResponse":{"properties":{"executions":{"items":{"$ref":"#/components/schemas/ExecutionLogResponse"},"type":"array","title":"Executions"},"total_count":{"type":"integer","title":"Total Count"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["executions","total_count","page","limit","has_more"],"title":"ExecutionLogListResponse"},"ExecutionLogResponse":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"workflow_id":{"type":"string","title":"Workflow Id"},"workflow_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Name"},"external_reference_id":{"type":"string","title":"External Reference Id"},"status":{"type":"string","title":"Status"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"},"response_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Data"},"inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inputs"},"outputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputs"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"error_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Details"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"},"created_by":{"type":"string","title":"Created By"}},"type":"object","required":["id","project_id","workflow_id","workflow_name","external_reference_id","status","payload","response_data","inputs","outputs","started_at","completed_at","error_details","created_on","updated_on","created_by"],"title":"ExecutionLogResponse"},"ExecutionStatus":{"type":"string","enum":["IDLE","PROCESSING","POSTED","ERROR"],"title":"ExecutionStatus"},"Folder":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"workspace_id":{"type":"string","title":"Workspace Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parent_folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Folder Id"},"folder_type":{"$ref":"#/components/schemas/FolderType"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"}},"type":"object","required":["id","name","workspace_id","folder_type","is_active","created_on"],"title":"Folder"},"FolderCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"workspace_id":{"type":"string","title":"Workspace Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parent_folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Folder Id"},"folder_type":{"anyOf":[{"$ref":"#/components/schemas/FolderType"},{"type":"null"}],"default":"workbook"}},"type":"object","required":["name","workspace_id"],"title":"FolderCreateRequest"},"FolderListResponse":{"properties":{"folders":{"items":{"$ref":"#/components/schemas/Folder"},"type":"array","title":"Folders"}},"type":"object","required":["folders"],"title":"FolderListResponse"},"FolderTree":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"workspace_id":{"type":"string","title":"Workspace Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parent_folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Folder Id"},"folder_type":{"$ref":"#/components/schemas/FolderType"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"},"child_folders":{"anyOf":[{"items":{"$ref":"#/components/schemas/FolderTree"},"type":"array"},{"type":"null"}],"title":"Child Folders"}},"type":"object","required":["id","name","workspace_id","folder_type","is_active","created_on"],"title":"FolderTree"},"FolderTreeResponse":{"properties":{"folder_tree":{"items":{"$ref":"#/components/schemas/FolderTree"},"type":"array","title":"Folder Tree"}},"type":"object","required":["folder_tree"],"title":"FolderTreeResponse"},"FolderType":{"type":"string","enum":["workbook","document"],"title":"FolderType"},"FolderUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"parent_folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Folder Id"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"FolderUpdateRequest"},"GeneratedReplyListResponse":{"properties":{"replies":{"items":{"$ref":"#/components/schemas/GeneratedReplyResponse"},"type":"array","title":"Replies"},"pagination":{"$ref":"#/components/schemas/src__engagement__schemas__PaginationInfo"}},"type":"object","required":["replies","pagination"],"title":"GeneratedReplyListResponse","description":"Paginated list of generated replies"},"GeneratedReplyResponse":{"properties":{"id":{"type":"string","title":"Id"},"detected_post_id":{"type":"string","title":"Detected Post Id"},"persona_id":{"type":"string","title":"Persona Id"},"original_content":{"type":"string","title":"Original Content"},"edited_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited Content"},"final_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Content"},"model_used":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Used"},"status":{"type":"string","title":"Status"},"scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled For"},"delay_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delay Minutes"},"threads_reply_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Threads Reply Id"},"posted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Posted At"},"retry_count":{"type":"integer","title":"Retry Count","default":0},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"next_retry_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Retry At"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"type":"object","required":["id","detected_post_id","persona_id","original_content","status","is_active","created_on"],"title":"GeneratedReplyResponse","description":"Response for a generated reply"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandleAvailability":{"properties":{"handle":{"type":"string","title":"Handle"},"available":{"type":"boolean","title":"Available"},"message":{"type":"string","title":"Message"}},"type":"object","required":["handle","available","message"],"title":"HandleAvailability","description":"Response schema for handle availability check"},"InvoiceListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/InvoiceResponse"},"type":"array","title":"Data"},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","required":["data"],"title":"InvoiceListResponse","description":"Paginated list of subscription invoices, newest first."},"InvoiceResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"amount_due":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Due"},"amount_paid":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Paid"},"amount_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Remaining"},"created":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created"},"period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period End"},"hosted_invoice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosted Invoice Url"},"invoice_pdf":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invoice Pdf"}},"type":"object","title":"InvoiceResponse","description":"A single Stripe invoice trimmed to the fields the client needs."},"MediaAttachRequest":{"properties":{"key":{"type":"string","title":"Key","description":"Key returned by the upload-url call, once the PUT succeeded"}},"type":"object","required":["key"],"title":"MediaAttachRequest"},"MediaInsightsResponse":{"properties":{"data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Data","description":"List of insight metrics"}},"type":"object","required":["data"],"title":"MediaInsightsResponse","description":"Response model for media insights"},"MediaUploadUrlRequest":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"content_type":{"type":"string","title":"Content Type","description":"Must be sent unchanged as the PUT's Content-Type"},"size_bytes":{"type":"integer","exclusiveMinimum":0.0,"title":"Size Bytes","description":"Exact file size; the upload link only accepts this size"}},"type":"object","required":["filename","content_type","size_bytes"],"title":"MediaUploadUrlRequest"},"MediaUploadUrlResponse":{"properties":{"key":{"type":"string","title":"Key"},"upload_url":{"type":"string","title":"Upload Url"},"method":{"type":"string","title":"Method","default":"PUT"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["key","upload_url","headers","expires_at"],"title":"MediaUploadUrlResponse"},"Message":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"Message"},"MonitoredProfileListResponse":{"properties":{"profiles":{"items":{"$ref":"#/components/schemas/MonitoredProfileResponse"},"type":"array","title":"Profiles"},"pagination":{"$ref":"#/components/schemas/src__engagement__schemas__PaginationInfo"}},"type":"object","required":["profiles","pagination"],"title":"MonitoredProfileListResponse","description":"Paginated list of monitored profiles"},"MonitoredProfileResponse":{"properties":{"id":{"type":"string","title":"Id"},"persona_id":{"type":"string","title":"Persona Id"},"threads_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Threads User Id"},"username":{"type":"string","title":"Username"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"profile_picture_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture Url"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"follower_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Follower Count"},"is_monitoring_active":{"type":"boolean","title":"Is Monitoring Active"},"last_polled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Polled At"},"priority":{"type":"integer","title":"Priority"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"}},"type":"object","required":["id","persona_id","username","is_monitoring_active","priority","is_active","created_on"],"title":"MonitoredProfileResponse","description":"Response for a monitored profile"},"MonitoredProfileSummary":{"properties":{"id":{"type":"string","title":"Id"},"username":{"type":"string","title":"Username"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"profile_picture_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture Url"}},"type":"object","required":["id","username"],"title":"MonitoredProfileSummary","description":"Summary info for a monitored profile (for embedding in other responses)"},"NotificationType":{"type":"string","enum":["info","warning","error","success"],"title":"NotificationType"},"OAuthInitiateResponse":{"properties":{"authorization_url":{"type":"string","title":"Authorization Url"},"state":{"type":"string","title":"State"}},"type":"object","required":["authorization_url","state"],"title":"OAuthInitiateResponse","description":"Response for OAuth initiation"},"OnboardingAck":{"properties":{"status":{"type":"string","title":"Status","default":"ok"},"typeform_onboarded":{"type":"boolean","title":"Typeform Onboarded","default":true}},"type":"object","title":"OnboardingAck","description":"Minimal onboarding-webhook response (v3.5.0). Replaces the former echo of\nthe Users ORM object so no PII is returned to the webhook caller."},"PackageResponse":{"properties":{"package_id":{"type":"string","title":"Package Id"},"name":{"type":"string","title":"Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"no_of_credits":{"type":"integer","title":"No Of Credits"},"description":{"type":"string","title":"Description"},"subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Id"},"is_active":{"type":"boolean","title":"Is Active"},"is_trial":{"type":"boolean","title":"Is Trial"},"package_expiry_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Package Expiry Date"},"is_current":{"type":"boolean","title":"Is Current"},"is_discount_active":{"type":"boolean","title":"Is Discount Active"},"package_duration":{"type":"string","title":"Package Duration"},"price_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Amount"},"discount_price_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount Price Amount"},"discount_price_duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Price Duration"},"discount_price_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discount Price Interval","default":"MONTHLY"},"discount_expires_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Discount Expires On"},"trial_period_expires_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Period Expires On"},"trial_period_duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trial Period Duration"},"features":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Features"},"sales_channel_price_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Channel Price Id"},"created_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created On"}},"type":"object","required":["package_id","name","no_of_credits","description","is_active","is_trial","is_current","is_discount_active","package_duration"],"title":"PackageResponse"},"PackagesListResponse":{"properties":{"packages":{"items":{"$ref":"#/components/schemas/PackagesResponse"},"type":"array","title":"Packages"}},"type":"object","required":["packages"],"title":"PackagesListResponse"},"PackagesResponse":{"properties":{"name":{"type":"string","title":"Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"description":{"type":"string","title":"Description"},"no_of_credits":{"type":"integer","title":"No Of Credits"},"package_duration":{"type":"string","title":"Package Duration"},"sale_channel_sub_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sale Channel Sub Id"},"sales_channel_price_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sales Channel Price Id"},"price_amount":{"type":"number","title":"Price Amount"},"price_currency":{"type":"string","title":"Price Currency"},"is_active":{"type":"boolean","title":"Is Active"},"trial_period_duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trial Period Duration"},"discount_price_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Discount Price Amount"},"discount_price_duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Price Duration"},"discount_price_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discount Price Interval","default":"MONTHLY"},"discount_price_percentage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Discount Price Percentage"},"plan_visible_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plan Visible Order"},"features":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Features"}},"type":"object","required":["name","description","no_of_credits","package_duration","price_amount","price_currency","is_active"],"title":"PackagesResponse"},"PendingReplyListResponse":{"properties":{"replies":{"items":{"$ref":"#/components/schemas/PendingReplyResponse"},"type":"array","title":"Replies"},"pagination":{"$ref":"#/components/schemas/src__engagement__schemas__PaginationInfo"}},"type":"object","required":["replies","pagination"],"title":"PendingReplyListResponse","description":"Paginated list of pending replies"},"PendingReplyResponse":{"properties":{"id":{"type":"string","title":"Id"},"original_content":{"type":"string","title":"Original Content"},"edited_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edited Content"},"status":{"type":"string","title":"Status"},"relevance_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Relevance Score"},"ai_reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Reasoning"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"detected_post":{"$ref":"#/components/schemas/DetectedPostResponse"}},"type":"object","required":["id","original_content","status","created_on","detected_post"],"title":"PendingReplyResponse","description":"Response for pending replies (includes post info)"},"Persona":{"properties":{"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform","description":"Platform type (threads, twitter)","default":"threads"},"platform_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Handle","description":"Platform username handle (@username)"},"platform_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform User Id","description":"Platform user ID"},"persona_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Title","description":"Title of the persona"},"persona_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Description","description":"Description of the persona"},"niche":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Niche","description":"Niche or category"},"audience_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audience Type","description":"Type of target audience"},"author_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Bio","description":"Author biography"},"target_accounts":{"anyOf":[{"items":{"$ref":"#/components/schemas/TargetAccount"},"type":"array"},{"type":"null"}],"title":"Target Accounts","description":"Accounts to engage/monitor","default":[]},"content_tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Tone","description":"Tone of content"},"formality_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formality Level","description":"Formality level"},"humor_level":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Humor Level","description":"Humor level (0-5)","default":2},"emoji_usage_level":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Emoji Usage Level","description":"Emoji usage level (0-5)","default":2},"link_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Policy","description":"Link usage policy"},"hashtags_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hashtags Style","description":"Hashtag style"},"topics_primary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics Primary","description":"Primary topics to cover","default":[]},"topics_avoid":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics Avoid","description":"Topics to avoid","default":[]},"example_posts":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Example Posts","description":"Example posts for reference"},"sample_posts":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Sample Posts","description":"AI-generated sample posts"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Content language (ISO code)","default":"en"},"getlate_authorizations":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Getlate Authorizations","description":"Social authorization data"},"meta_authorizations":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Authorizations","description":"Meta Threads authorization data"},"posts_per_day":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Posts Per Day","description":"Number of posts per day","default":1},"posting_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posting Timezone","description":"Posting timezone (IANA format)"},"posting_time_windows":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Posting Time Windows","description":"Posting windows (MORNING, AFTERNOON, EVENING)","default":[]},"posting_days":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Posting Days","description":"Posting days (MON, TUE, ...)"},"auto_posting":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Posting","description":"Enable automatic posting","default":true},"auto_reply_comments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Reply Comments","description":"Enable automatic comment replies","default":false},"auto_engage_with_target":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Engage With Target","description":"Enable automatic engagement","default":false},"reply_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Policy","description":"Reply policy","default":"selective"},"reply_tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Tone","description":"Reply tone"},"reply_max_per_post":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply Max Per Post","description":"Maximum replies per post","default":5},"reply_max_per_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply Max Per Day","description":"Maximum replies per day","default":30},"reply_min_sentiment":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply Min Sentiment","description":"Minimum sentiment threshold","default":-1},"reply_avoid_topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reply Avoid Topics","description":"Topics to avoid in replies","default":[]},"reply_preferred_triggers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reply Preferred Triggers","description":"Preferred reply triggers","default":[]},"processing_stage":{"$ref":"#/components/schemas/ProcessingStage"},"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"},"platform_connected":{"type":"boolean","title":"Platform Connected","description":"Step 1: Platform connection completed","default":false},"persona_info_completed":{"type":"boolean","title":"Persona Info Completed","description":"Step 2: Persona info completed","default":false},"timing_completed":{"type":"boolean","title":"Timing Completed","description":"Step 3: Timing configuration completed","default":false},"is_fully_configured":{"type":"boolean","title":"Is Fully Configured","description":"All steps completed","default":false},"current_step":{"type":"integer","title":"Current Step","description":"Current wizard step (1-3)","default":1}},"type":"object","required":["processing_stage","id","workspace_id","is_active","created_on"],"title":"Persona","description":"Response schema for persona with system fields and progress"},"PersonaCreateRequest":{"properties":{"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform","description":"Platform type (threads, twitter)","default":"threads"},"platform_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Handle","description":"Platform username handle (@username)"},"platform_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform User Id","description":"Platform user ID"},"persona_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Title","description":"Title of the persona"},"persona_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Description","description":"Description of the persona"},"niche":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Niche","description":"Niche or category"},"audience_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audience Type","description":"Type of target audience"},"author_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Bio","description":"Author biography"},"target_accounts":{"anyOf":[{"items":{"$ref":"#/components/schemas/TargetAccount"},"type":"array"},{"type":"null"}],"title":"Target Accounts","description":"Accounts to engage/monitor","default":[]},"content_tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Tone","description":"Tone of content"},"formality_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formality Level","description":"Formality level"},"humor_level":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Humor Level","description":"Humor level (0-5)","default":2},"emoji_usage_level":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Emoji Usage Level","description":"Emoji usage level (0-5)","default":2},"link_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Policy","description":"Link usage policy"},"hashtags_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hashtags Style","description":"Hashtag style"},"topics_primary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics Primary","description":"Primary topics to cover","default":[]},"topics_avoid":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics Avoid","description":"Topics to avoid","default":[]},"example_posts":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Example Posts","description":"Example posts for reference"},"sample_posts":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Sample Posts","description":"AI-generated sample posts"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Content language (ISO code)","default":"en"},"getlate_authorizations":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Getlate Authorizations","description":"Social authorization data"},"meta_authorizations":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Authorizations","description":"Meta Threads authorization data"},"posts_per_day":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Posts Per Day","description":"Number of posts per day","default":1},"posting_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posting Timezone","description":"Posting timezone (IANA format)"},"posting_time_windows":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Posting Time Windows","description":"Posting windows (MORNING, AFTERNOON, EVENING)","default":[]},"posting_days":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Posting Days","description":"Posting days (MON, TUE, ...)"},"auto_posting":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Posting","description":"Enable automatic posting","default":true},"auto_reply_comments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Reply Comments","description":"Enable automatic comment replies","default":false},"auto_engage_with_target":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Engage With Target","description":"Enable automatic engagement","default":false},"reply_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Policy","description":"Reply policy","default":"selective"},"reply_tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Tone","description":"Reply tone"},"reply_max_per_post":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply Max Per Post","description":"Maximum replies per post","default":5},"reply_max_per_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply Max Per Day","description":"Maximum replies per day","default":30},"reply_min_sentiment":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply Min Sentiment","description":"Minimum sentiment threshold","default":-1},"reply_avoid_topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reply Avoid Topics","description":"Topics to avoid in replies","default":[]},"reply_preferred_triggers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reply Preferred Triggers","description":"Preferred reply triggers","default":[]},"processing_stage":{"anyOf":[{"$ref":"#/components/schemas/ProcessingStage"},{"type":"null"}],"description":"Processing stage","default":""},"workspace_id":{"type":"string","title":"Workspace Id","description":"ID of the workspace"}},"type":"object","required":["workspace_id"],"title":"PersonaCreateRequest","description":"Request schema for creating a persona - requires workspace_id"},"PersonaListResponse":{"properties":{"personas":{"items":{"$ref":"#/components/schemas/Persona"},"type":"array","title":"Personas"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["personas"],"title":"PersonaListResponse","description":"Response schema for paginated list of personas"},"PersonaUpdateRequest":{"properties":{"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform","description":"Platform type (threads, twitter)","default":"threads"},"platform_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Handle","description":"Platform username handle (@username)"},"platform_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform User Id","description":"Platform user ID"},"persona_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Title","description":"Title of the persona"},"persona_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona Description","description":"Description of the persona"},"niche":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Niche","description":"Niche or category"},"audience_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audience Type","description":"Type of target audience"},"author_bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Bio","description":"Author biography"},"target_accounts":{"anyOf":[{"items":{"$ref":"#/components/schemas/TargetAccount"},"type":"array"},{"type":"null"}],"title":"Target Accounts","description":"Accounts to engage/monitor","default":[]},"content_tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Tone","description":"Tone of content"},"formality_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formality Level","description":"Formality level"},"humor_level":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Humor Level","description":"Humor level (0-5)","default":2},"emoji_usage_level":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Emoji Usage Level","description":"Emoji usage level (0-5)","default":2},"link_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Policy","description":"Link usage policy"},"hashtags_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hashtags Style","description":"Hashtag style"},"topics_primary":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics Primary","description":"Primary topics to cover","default":[]},"topics_avoid":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Topics Avoid","description":"Topics to avoid","default":[]},"example_posts":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Example Posts","description":"Example posts for reference"},"sample_posts":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Sample Posts","description":"AI-generated sample posts"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Content language (ISO code)","default":"en"},"getlate_authorizations":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Getlate Authorizations","description":"Social authorization data"},"meta_authorizations":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta Authorizations","description":"Meta Threads authorization data"},"posts_per_day":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Posts Per Day","description":"Number of posts per day","default":1},"posting_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posting Timezone","description":"Posting timezone (IANA format)"},"posting_time_windows":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Posting Time Windows","description":"Posting windows (MORNING, AFTERNOON, EVENING)","default":[]},"posting_days":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Posting Days","description":"Posting days (MON, TUE, ...)"},"auto_posting":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Posting","description":"Enable automatic posting","default":true},"auto_reply_comments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Reply Comments","description":"Enable automatic comment replies","default":false},"auto_engage_with_target":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Engage With Target","description":"Enable automatic engagement","default":false},"reply_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Policy","description":"Reply policy","default":"selective"},"reply_tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply Tone","description":"Reply tone"},"reply_max_per_post":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply Max Per Post","description":"Maximum replies per post","default":5},"reply_max_per_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply Max Per Day","description":"Maximum replies per day","default":30},"reply_min_sentiment":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reply Min Sentiment","description":"Minimum sentiment threshold","default":-1},"reply_avoid_topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reply Avoid Topics","description":"Topics to avoid in replies","default":[]},"reply_preferred_triggers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Reply Preferred Triggers","description":"Preferred reply triggers","default":[]},"processing_stage":{"anyOf":[{"$ref":"#/components/schemas/ProcessingStage"},{"type":"null"}],"description":"Processing stage","default":""}},"type":"object","title":"PersonaUpdateRequest","description":"Request schema for updating a persona - all fields optional"},"PodcastHandle":{"properties":{"id":{"type":"string","title":"Id"},"account_id":{"type":"string","title":"Account Id"},"podcast_handle":{"type":"string","title":"Podcast Handle"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"}},"type":"object","required":["id","account_id","podcast_handle","is_active","created_on"],"title":"PodcastHandle","description":"Response schema for podcast handle"},"PodcastHandleCreateUpdate":{"properties":{"podcast_handle":{"type":"string","maxLength":32,"minLength":1,"title":"Podcast Handle","description":"Podcast handle (3-32 characters, lowercase letters, numbers, and hyphens only)"}},"type":"object","required":["podcast_handle"],"title":"PodcastHandleCreateUpdate","description":"Request schema for creating or updating a podcast handle"},"PostInfo":{"properties":{"title":{"type":"string","title":"Title","description":"Video title with hashtags and mentions"},"privacy_level":{"type":"string","enum":["PUBLIC_TO_EVERYONE","MUTUAL_FOLLOW_FRIENDS","SELF_ONLY"],"title":"Privacy Level","description":"Privacy level for the video"},"disable_duet":{"type":"boolean","title":"Disable Duet","description":"Disable duet for this video","default":false},"disable_comment":{"type":"boolean","title":"Disable Comment","description":"Disable comments for this video","default":false},"disable_stitch":{"type":"boolean","title":"Disable Stitch","description":"Disable stitch for this video","default":false},"video_cover_timestamp_ms":{"type":"integer","title":"Video Cover Timestamp Ms","description":"Timestamp in milliseconds for video cover","default":1000}},"type":"object","required":["title","privacy_level"],"title":"PostInfo","description":"Post information for video upload"},"PostedProjectsCountResponse":{"properties":{"count":{"type":"integer","title":"Count","description":"Total number of posted projects"},"persona_id":{"type":"string","title":"Persona Id","description":"Persona ID"}},"type":"object","required":["count","persona_id"],"title":"PostedProjectsCountResponse"},"ProcessingStage":{"type":"string","enum":["DRAFT","PLATFORM_CONNECTED","PERSONA_INFO_COMPLETED","TIME_INFO_COMPLETED","SAMPLE_POSTS_SKIPPED","POST_CONTENT_SKIPPED","COMPLETED"],"title":"ProcessingStage","description":"Processing stages for persona setup wizard"},"ProfileLookupResponse":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Profile information"}},"type":"object","required":["data"],"title":"ProfileLookupResponse","description":"Response model for profile lookup"},"ProfilePostsResponse":{"properties":{"data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Data","description":"List of posts"},"paging":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Paging","description":"Pagination information"}},"type":"object","required":["data"],"title":"ProfilePostsResponse","description":"Response model for profile posts"},"ProfileResponse":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Profile information"}},"type":"object","required":["data"],"title":"ProfileResponse","description":"Response model for user profile"},"Project":{"properties":{"id":{"type":"string","title":"Id"},"persona_id":{"type":"string","title":"Persona Id"},"platform":{"type":"string","title":"Platform"},"platform_post_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Post Id"},"post_content":{"type":"string","title":"Post Content"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"posting_time_window":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posting Time Window"},"posting_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posting Timezone"},"stage":{"$ref":"#/components/schemas/ProjectStage"},"exe_status":{"$ref":"#/components/schemas/ExecutionStatus"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"error_details":{"anyOf":[{},{"type":"null"}],"title":"Error Details"},"media_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Type","description":"IMAGE or VIDEO when the post has uploaded media"},"media_content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Content Type"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"},"media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Url","description":"Short-lived preview link for the post's media","readOnly":true}},"type":"object","required":["id","persona_id","platform","post_content","stage","exe_status","is_active","created_on","media_url"],"title":"Project"},"ProjectCreateRequest":{"properties":{"persona_id":{"type":"string","title":"Persona Id","description":"ID of the persona"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform","description":"Platform type (default: threads)","default":"threads"},"post_content":{"type":"string","title":"Post Content","description":"Post content text"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At","description":"Scheduled timestamp for posting"},"posting_time_window":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posting Time Window","description":"Posting time window (MORNING, AFTERNOON, EVENING)"},"posting_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posting Timezone","description":"Posting timezone snapshot at schedule time"},"stage":{"anyOf":[{"$ref":"#/components/schemas/ProjectStage"},{"type":"null"}],"description":"Project stage","default":"DRAFT"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Optional generic status field"}},"type":"object","required":["persona_id","post_content"],"title":"ProjectCreateRequest"},"ProjectInfo":{"properties":{"project_id":{"type":"string","title":"Project Id","description":"Project ID"},"status":{"type":"string","title":"Status","description":"Project status"},"exe_status":{"type":"string","title":"Exe Status","description":"Project execution status"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage","description":"Project stage"},"scheduled_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled Date","description":"Scheduled date for the video"}},"type":"object","required":["project_id","status","exe_status"],"title":"ProjectInfo","description":"Info for a single project"},"ProjectListResponse":{"properties":{"projects":{"items":{"$ref":"#/components/schemas/Project"},"type":"array","title":"Projects"},"pagination":{"$ref":"#/components/schemas/src__projects__schemas__PaginationInfo"}},"type":"object","required":["projects","pagination"],"title":"ProjectListResponse"},"ProjectStage":{"type":"string","enum":["DRAFT","CONTENT_CREATED","CONTENT_APPROVED","SCHEDULED","POST_CONTENT_GENERATING","POST_CONTENT_GENERATED","THREAD_POSTING","THREAD_POSTING_FAILED","THREAD_POSTED","POSTED","FAILED","CANCELLED"],"title":"ProjectStage"},"ProjectUpdateRequest":{"properties":{"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform","description":"Platform type"},"platform_post_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Post Id","description":"Platform post ID after publish"},"post_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Content","description":"Post content text"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At","description":"Scheduled timestamp for posting"},"posting_time_window":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posting Time Window","description":"Posting time window (MORNING, AFTERNOON, EVENING)"},"posting_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posting Timezone","description":"Posting timezone snapshot at schedule time"},"stage":{"anyOf":[{"$ref":"#/components/schemas/ProjectStage"},{"type":"null"}],"description":"Project stage"},"exe_status":{"anyOf":[{"$ref":"#/components/schemas/ExecutionStatus"},{"type":"null"}],"description":"Execution status"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Optional generic status field"},"error_details":{"anyOf":[{},{"type":"null"}],"title":"Error Details","description":"Error details"}},"type":"object","title":"ProjectUpdateRequest"},"PublicUploadResponse":{"properties":{"document_id":{"type":"string","title":"Document Id"},"name":{"type":"string","title":"Name"},"file_size":{"type":"integer","title":"File Size"},"mime_type":{"type":"string","title":"Mime Type"},"public_file_url":{"type":"string","title":"Public File Url"},"upload_status":{"type":"string","title":"Upload Status"}},"type":"object","required":["document_id","name","file_size","mime_type","public_file_url","upload_status"],"title":"PublicUploadResponse","description":"Response from public file upload endpoint"},"PublishStatusResponse":{"properties":{"data":{"$ref":"#/components/schemas/PublishStatusResponseData"},"error":{"$ref":"#/components/schemas/TikTokErrorInfo"}},"type":"object","required":["data","error"],"title":"PublishStatusResponse","description":"Response from publish status endpoint"},"PublishStatusResponseData":{"properties":{"publish_id":{"type":"string","title":"Publish Id"},"status":{"type":"string","title":"Status","description":"Status of the publish (e.g., PROCESSING, PUBLISH_COMPLETE, FAILED)"},"fail_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fail Reason","description":"Reason for failure if status is FAILED"}},"type":"object","required":["publish_id","status"],"title":"PublishStatusResponseData","description":"Response data from publish status endpoint"},"RSSFeedURLResponse":{"properties":{"rss_feed_url":{"type":"string","title":"Rss Feed Url","description":"RSS feed URL for the podcast"}},"type":"object","required":["rss_feed_url"],"title":"RSSFeedURLResponse","description":"Response for RSS feed URL"},"RejectReplyRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Reason for rejection"}},"type":"object","title":"RejectReplyRequest","description":"Request to reject a reply"},"RepliesResponse":{"properties":{"data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Data","description":"List of replies"},"paging":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Paging","description":"Pagination information"}},"type":"object","required":["data"],"title":"RepliesResponse","description":"Response model for replies"},"ResetPassword":{"properties":{"new_password":{"type":"string","title":"New Password"},"token":{"type":"string","title":"Token"},"old_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Password"}},"type":"object","required":["new_password","token"],"title":"ResetPassword"},"ResetProjectStatusRequest":{"properties":{"project_id":{"type":"string","title":"Project Id","description":"Project ID to reset"},"status":{"type":"string","title":"Status","description":"New status value (e.g. IDEAS_GENERATED)"}},"type":"object","required":["project_id","status"],"title":"ResetProjectStatusRequest","description":"Request model for resetting a project's status and exe_status"},"SendEmailsRequest":{"properties":{"email_addresses":{"items":{"type":"string","format":"email"},"type":"array","title":"Email Addresses","description":"List of email addresses to send signup emails to"},"language":{"type":"string","title":"Language","description":"Language code for the email template","default":"en"},"package_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Name","description":"Package name to determine email type (upsell vs welcome)"}},"type":"object","required":["email_addresses"],"title":"SendEmailsRequest","description":"Request model for bulk sending signup emails"},"SendEmailsResponse":{"properties":{"total_processed":{"type":"integer","title":"Total Processed","description":"Total emails processed"},"successful":{"type":"integer","title":"Successful","description":"Number of successful sends"},"errors":{"type":"integer","title":"Errors","description":"Number of failed sends"},"results":{"items":{"$ref":"#/components/schemas/EmailResult"},"type":"array","title":"Results","description":"Detailed results for each email"}},"type":"object","required":["total_processed","successful","errors","results"],"title":"SendEmailsResponse","description":"Response model for bulk email sending"},"Show":{"properties":{"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Show description"},"language":{"type":"string","title":"Language"},"category":{"type":"string","title":"Category"},"explicit":{"type":"boolean","title":"Explicit"},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url","description":"Cover image URL"},"tagline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tagline","description":"Show tagline"},"intro_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intro Script","description":"Intro script"},"outro_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outro Script","description":"Outro script"},"default_cta":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Cta","description":"Default call to action"},"episode_format":{"type":"string","title":"Episode Format"},"episode_length_s":{"type":"integer","title":"Episode Length S"},"tone_goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone Goal","description":"Tone goal: Educational, Inspirational, Entertaining, Persuasive"},"structure_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Structure Notes","description":"Structure notes"},"cta_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Style","description":"CTA style: Subscribe, Visit site, etc."},"signature_cue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature Cue","description":"Signature cue"},"episode_frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Frequency","description":"Episode frequency: daily, weekdays_only, weekly, bi_weekly, monthly"},"pref_posting_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pref Posting Time","description":"Preferred posting time: HH:MM"},"pref_posting_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pref Posting Timezone","description":"Preferred posting timezone: GMT+5, GMT-8"},"goals":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Goals","description":"List of goals"},"pain_points":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Pain Points","description":"List of pain points"},"knowledge_depth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Depth","description":"Knowledge depth: beginner, intermediate, expert, mixed","default":"mixed"},"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"processing_stage":{"type":"string","title":"Processing Stage"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"},"rss_last_generated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Rss Last Generated On"},"completed":{"type":"boolean","title":"Completed","description":"Whether all required fields are filled"},"missing_required_fields":{"items":{"type":"string"},"type":"array","title":"Missing Required Fields","description":"List of missing required fields"}},"type":"object","required":["slug","title","language","category","explicit","episode_format","episode_length_s","id","workspace_id","processing_stage","is_active","created_on","completed"],"title":"Show","description":"Response schema for show with system fields"},"ShowCreateRequest":{"properties":{"slug":{"type":"string","maxLength":64,"minLength":3,"title":"Slug","description":"Show slug (unique per account)"},"title":{"type":"string","title":"Title","description":"Show title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Show description"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Show language","default":"en"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Show category","default":"Technology"},"explicit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Explicit","description":"Explicit content flag","default":false},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url","description":"Cover image URL"},"tagline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tagline","description":"Show tagline"},"intro_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intro Script","description":"Intro script"},"outro_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outro Script","description":"Outro script"},"default_cta":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Cta","description":"Default call to action"},"episode_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Format","description":"Episode format: monologue, interview, panel, news_recap","default":"interview"},"episode_length_s":{"anyOf":[{"type":"integer","maximum":5400.0,"minimum":60.0},{"type":"null"}],"title":"Episode Length S","description":"Episode length in seconds","default":600},"tone_goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone Goal","description":"Tone goal: Educational, Inspirational, Entertaining, Persuasive"},"structure_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Structure Notes","description":"Structure notes"},"cta_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Style","description":"CTA style: Subscribe, Visit site, etc."},"signature_cue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature Cue","description":"Signature cue"},"episode_frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Frequency","description":"Episode frequency: daily, weekdays_only, weekly, bi_weekly, monthly"},"pref_posting_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pref Posting Time","description":"Preferred posting time: HH:MM"},"pref_posting_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pref Posting Timezone","description":"Preferred posting timezone: GMT+5, GMT-8"},"goals":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Goals","description":"List of goals"},"pain_points":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Pain Points","description":"List of pain points"},"knowledge_depth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Depth","description":"Knowledge depth: beginner, intermediate, expert, mixed","default":"mixed"},"workspace_id":{"type":"string","title":"Workspace Id","description":"ID of the workspace"}},"type":"object","required":["slug","title","workspace_id"],"title":"ShowCreateRequest","description":"Request schema for creating a show"},"ShowListResponse":{"properties":{"shows":{"items":{"$ref":"#/components/schemas/Show"},"type":"array","title":"Shows"}},"type":"object","required":["shows"],"title":"ShowListResponse"},"ShowPersona":{"properties":{"name":{"type":"string","title":"Name"},"show_persona_role":{"type":"string","title":"Show Persona Role"},"role_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Title","description":"Role title"},"background":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background","description":"Background information"},"location_culture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Culture","description":"Location and culture"},"voice_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Style","description":"Voice style: conversational, authoritative, funny, motivational, analytical, storyteller"},"speaking_pace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaking Pace","description":"Speaking pace: calm, balanced, energetic, fast"},"language_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Level","description":"Language level: simple, professional, etc."},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice","description":"Voice identifier or name"},"humor_level":{"type":"integer","title":"Humor Level"},"empathy_level":{"type":"integer","title":"Empathy Level"},"opinion_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opinion Style","description":"Opinion style: contrarian, agreeable, analytical"},"catchphrases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Catchphrases","description":"List of catchphrases"},"speech_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speech Pattern","description":"Speech pattern: short sentences, rhetorical, story-based"},"expertise_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Expertise Tags","description":"List of expertise tags"},"preferred_topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Preferred Topics","description":"List of preferred topics"},"avoid_topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Avoid Topics","description":"List of topics to avoid"},"display_order":{"type":"integer","title":"Display Order"},"id":{"type":"string","title":"Id"},"show_id":{"type":"string","title":"Show Id"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"}},"type":"object","required":["name","show_persona_role","humor_level","empathy_level","display_order","id","show_id","is_active","created_on"],"title":"ShowPersona","description":"Response schema for show persona with system fields"},"ShowPersonaCreateRequest":{"properties":{"name":{"type":"string","title":"Name","description":"Persona name"},"show_persona_role":{"type":"string","title":"Show Persona Role","description":"Role: host, co_host, guest, panelist, narrator"},"role_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Title","description":"Role title"},"background":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background","description":"Background information"},"location_culture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Culture","description":"Location and culture"},"voice_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Style","description":"Voice style: conversational, authoritative, funny, motivational, analytical, storyteller"},"speaking_pace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaking Pace","description":"Speaking pace: calm, balanced, energetic, fast"},"language_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Level","description":"Language level: simple, professional, etc."},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice","description":"Voice identifier or name"},"humor_level":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Humor Level","description":"Humor level (0-5)","default":2},"empathy_level":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Empathy Level","description":"Empathy level (0-5)","default":2},"opinion_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opinion Style","description":"Opinion style: contrarian, agreeable, analytical"},"catchphrases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Catchphrases","description":"List of catchphrases"},"speech_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speech Pattern","description":"Speech pattern: short sentences, rhetorical, story-based"},"expertise_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Expertise Tags","description":"List of expertise tags"},"preferred_topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Preferred Topics","description":"List of preferred topics"},"avoid_topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Avoid Topics","description":"List of topics to avoid"},"display_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Display Order","description":"Display order","default":1},"workspace_id":{"type":"string","title":"Workspace Id","description":"ID of the workspace"}},"type":"object","required":["name","show_persona_role","workspace_id"],"title":"ShowPersonaCreateRequest","description":"Request schema for creating a show persona"},"ShowPersonaListResponse":{"properties":{"personas":{"items":{"$ref":"#/components/schemas/ShowPersona"},"type":"array","title":"Personas"}},"type":"object","required":["personas"],"title":"ShowPersonaListResponse","description":"Response schema for list of show personas"},"ShowPersonaUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Persona name"},"show_persona_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Show Persona Role","description":"Role: host, co_host, guest, panelist, narrator"},"role_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Title","description":"Role title"},"background":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background","description":"Background information"},"location_culture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Culture","description":"Location and culture"},"voice_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Style","description":"Voice style: conversational, authoritative, funny, motivational, analytical, storyteller"},"speaking_pace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaking Pace","description":"Speaking pace: calm, balanced, energetic, fast"},"language_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Level","description":"Language level: simple, professional, etc."},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice","description":"Voice identifier or name"},"humor_level":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Humor Level","description":"Humor level (0-5)","default":2},"empathy_level":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Empathy Level","description":"Empathy level (0-5)","default":2},"opinion_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opinion Style","description":"Opinion style: contrarian, agreeable, analytical"},"catchphrases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Catchphrases","description":"List of catchphrases"},"speech_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speech Pattern","description":"Speech pattern: short sentences, rhetorical, story-based"},"expertise_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Expertise Tags","description":"List of expertise tags"},"preferred_topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Preferred Topics","description":"List of preferred topics"},"avoid_topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Avoid Topics","description":"List of topics to avoid"},"display_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Display Order","description":"Display order","default":1}},"type":"object","title":"ShowPersonaUpdateRequest","description":"Request schema for updating a show persona - all fields optional"},"ShowUpdateRequest":{"properties":{"slug":{"anyOf":[{"type":"string","maxLength":64,"minLength":3},{"type":"null"}],"title":"Slug","description":"Show slug (unique per account)"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Show title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Show description"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Show language","default":"en"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Show category","default":"Technology"},"explicit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Explicit","description":"Explicit content flag","default":false},"cover_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Url","description":"Cover image URL"},"tagline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tagline","description":"Show tagline"},"intro_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intro Script","description":"Intro script"},"outro_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outro Script","description":"Outro script"},"default_cta":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Cta","description":"Default call to action"},"episode_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Format","description":"Episode format: monologue, interview, panel, news_recap","default":"interview"},"episode_length_s":{"anyOf":[{"type":"integer","maximum":5400.0,"minimum":60.0},{"type":"null"}],"title":"Episode Length S","description":"Episode length in seconds","default":600},"tone_goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone Goal","description":"Tone goal: Educational, Inspirational, Entertaining, Persuasive"},"structure_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Structure Notes","description":"Structure notes"},"cta_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cta Style","description":"CTA style: Subscribe, Visit site, etc."},"signature_cue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature Cue","description":"Signature cue"},"episode_frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Episode Frequency","description":"Episode frequency: daily, weekdays_only, weekly, bi_weekly, monthly"},"pref_posting_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pref Posting Time","description":"Preferred posting time: HH:MM"},"pref_posting_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pref Posting Timezone","description":"Preferred posting timezone: GMT+5, GMT-8"},"goals":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Goals","description":"List of goals"},"pain_points":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Pain Points","description":"List of pain points"},"knowledge_depth":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Depth","description":"Knowledge depth: beginner, intermediate, expert, mixed","default":"mixed"},"workspace_id":{"type":"string","title":"Workspace Id","description":"ID of the workspace"}},"type":"object","required":["workspace_id"],"title":"ShowUpdateRequest","description":"Request schema for updating a show - all fields optional"},"Signup":{"properties":{"new_password":{"type":"string","title":"New Password"},"token":{"type":"string","title":"Token"}},"type":"object","required":["new_password","token"],"title":"Signup"},"SourceInfoPullFromUrl":{"properties":{"source":{"type":"string","const":"PULL_FROM_URL","title":"Source","default":"PULL_FROM_URL"},"video_url":{"type":"string","title":"Video Url","description":"URL of the video to pull from"}},"type":"object","required":["video_url"],"title":"SourceInfoPullFromUrl","description":"Source info for PULL_FROM_URL method"},"Stats":{"properties":{"audio_url":{"type":"string","title":"Audio Url","description":"Audio URL"},"sr_no":{"type":"integer","title":"Sr No"},"created_on":{"type":"string","format":"date-time","title":"Created On"}},"type":"object","required":["audio_url","sr_no","created_on"],"title":"Stats","description":"Response schema for stats with system fields"},"StatsListResponse":{"properties":{"stats":{"items":{"$ref":"#/components/schemas/Stats"},"type":"array","title":"Stats"}},"type":"object","required":["stats"],"title":"StatsListResponse","description":"Response schema for list of stats"},"TargetAccount":{"properties":{"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username","description":"Handle of the account without @"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Display name of the account"},"profile_picture_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture Url","description":"Profile picture URL"},"biography":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Biography","description":"Bio/description of the account"},"is_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Verified","description":"Whether the account is verified"}},"type":"object","title":"TargetAccount","description":"Target account profile for engagement/monitoring"},"ThreadsConnectionRequest":{"properties":{"profile_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Name","description":"Profile name to associate the connection"},"profile_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Description","description":"Profile description to associate the connection"},"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID to associate the connection"},"profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Id","description":"Existing profile ID to use (if provided, new profile won't be created)"},"redirect_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Url","description":"Custom redirect URL (optional)"},"headless":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Headless","description":"Whether to use headless mode for connection","default":true}},"type":"object","required":["workspace_id"],"title":"ThreadsConnectionRequest","description":"Request model for initiating Threads connection via Late API"},"ThreadsConnectionResponse":{"properties":{"connection_url":{"type":"string","title":"Connection Url","description":"URL to redirect user for Threads authentication"},"profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Id","description":"Existing profile ID used for connection"},"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"status":{"type":"string","title":"Status","description":"Connection status"}},"type":"object","required":["connection_url","workspace_id","status"],"title":"ThreadsConnectionResponse","description":"Response model for Threads connection initiation"},"ThreadsDisconnectRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"}},"type":"object","required":["workspace_id"],"title":"ThreadsDisconnectRequest","description":"Request model for disconnecting Threads account via Late API"},"ThreadsDisconnectResponse":{"properties":{"message":{"type":"string","title":"Message","description":"Disconnection message"},"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"status":{"type":"string","title":"Status","description":"Disconnection status"}},"type":"object","required":["message","workspace_id","status"],"title":"ThreadsDisconnectResponse","description":"Response model for Threads account disconnection"},"ThreadsListResponse":{"properties":{"data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Data","description":"List of threads"},"paging":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Paging","description":"Pagination information"}},"type":"object","required":["data"],"title":"ThreadsListResponse","description":"Response model for listing threads"},"ThreadsPostRequest":{"properties":{"content":{"type":"string","title":"Content","description":"Post content to publish"},"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"project_id":{"type":"string","title":"Project Id","description":"Project ID"},"status":{"type":"string","title":"Status","description":"Post status (published, draft, etc.)","default":"published"}},"type":"object","required":["content","workspace_id","project_id"],"title":"ThreadsPostRequest","description":"Request model for creating a Threads post via Late API"},"ThreadsPostResponse":{"properties":{"post_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Id","description":"Post ID from Late API"},"status":{"type":"string","title":"Status","description":"Post creation status"},"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"response":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response","description":"Full response from Late API"}},"type":"object","required":["status","workspace_id"],"title":"ThreadsPostResponse","description":"Response model for Threads post creation"},"TikTokAuthResponse":{"properties":{"message":{"type":"string","title":"Message","default":"TikTok authentication successful"},"redirect_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Url"}},"type":"object","title":"TikTokAuthResponse","description":"TikTok authentication response"},"TikTokErrorInfo":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"log_id":{"type":"string","title":"Log Id"}},"type":"object","required":["code","message","log_id"],"title":"TikTokErrorInfo","description":"TikTok error information"},"Token":{"properties":{"access_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"},"token_type":{"type":"string","title":"Token Type"},"username":{"type":"string","title":"Username"}},"type":"object","required":["token_type","username"],"title":"Token"},"TopEngagedProfile":{"properties":{"profile_id":{"type":"string","title":"Profile Id"},"username":{"type":"string","title":"Username"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"profile_picture_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture Url"},"posts_detected":{"type":"integer","title":"Posts Detected"},"replies_sent":{"type":"integer","title":"Replies Sent"}},"type":"object","required":["profile_id","username","posts_detected","replies_sent"],"title":"TopEngagedProfile","description":"Top engaged profile for analytics"},"UpdateProfileRequest":{"properties":{"priority":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":1.0},{"type":"null"}],"title":"Priority","description":"Priority: 1=low, 2=medium, 3=high"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"Tags for categorization"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","description":"User notes about the profile"},"is_monitoring_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Monitoring Active","description":"Toggle monitoring on/off"}},"type":"object","title":"UpdateProfileRequest","description":"Request to update a monitored profile"},"UpdateSettingsRequest":{"properties":{"is_engagement_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Engagement Enabled","description":"Enable/disable engagement feature"},"approval_mode":{"anyOf":[{"type":"string","enum":["AUTO","MANUAL"]},{"type":"null"}],"title":"Approval Mode","description":"Approval workflow mode"},"polling_interval_minutes":{"anyOf":[{"type":"integer","maximum":1440.0,"minimum":360.0},{"type":"null"}],"title":"Polling Interval Minutes","description":"Polling interval in minutes"},"min_reply_delay_minutes":{"anyOf":[{"type":"integer","maximum":60.0,"minimum":1.0},{"type":"null"}],"title":"Min Reply Delay Minutes","description":"Minimum reply delay"},"max_reply_delay_minutes":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":1.0},{"type":"null"}],"title":"Max Reply Delay Minutes","description":"Maximum reply delay"},"max_replies_per_hour":{"anyOf":[{"type":"integer","maximum":1.0,"minimum":1.0},{"type":"null"}],"title":"Max Replies Per Hour","description":"Max replies per hour"},"max_replies_per_day":{"anyOf":[{"type":"integer","maximum":25.0,"minimum":1.0},{"type":"null"}],"title":"Max Replies Per Day","description":"Max replies per day"},"max_replies_per_profile_per_day":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Max Replies Per Profile Per Day","description":"Max replies per profile per day"},"min_relevance_score":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Min Relevance Score","description":"Minimum AI relevance score"},"skip_posts_with_links":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skip Posts With Links","description":"Skip posts with links only"},"skip_posts_with_media_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skip Posts With Media Only","description":"Skip media-only posts"},"min_post_length":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Min Post Length","description":"Minimum post length to consider"},"engagement_topics_include":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Engagement Topics Include","description":"Topics to prioritize"},"engagement_topics_exclude":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Engagement Topics Exclude","description":"Topics to avoid"},"max_retry_attempts":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Max Retry Attempts","description":"Max retry attempts for failed replies"},"retry_delay_minutes":{"anyOf":[{"type":"integer","maximum":60.0,"minimum":1.0},{"type":"null"}],"title":"Retry Delay Minutes","description":"Delay between retries"}},"type":"object","title":"UpdateSettingsRequest","description":"Request to update engagement settings"},"UploadStatus":{"type":"string","enum":["pending","completed","failed"],"title":"UploadStatus"},"User":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"profile_picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"preferred_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Language"},"typeform_onboarded":{"type":"boolean","title":"Typeform Onboarded"},"max_workspaces":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Workspaces"}},"type":"object","required":["id","email","is_active","created_on","typeform_onboarded"],"title":"User"},"UserActionRequest":{"properties":{"email_addresses":{"items":{"type":"string","format":"email"},"type":"array","title":"Email Addresses","description":"List of email addresses to process"}},"type":"object","required":["email_addresses"],"title":"UserActionRequest","description":"Request model for refund/activate user operations"},"UserActionResponse":{"properties":{"total_processed":{"type":"integer","title":"Total Processed","description":"Total emails processed"},"successful":{"type":"integer","title":"Successful","description":"Number of successful operations"},"errors":{"type":"integer","title":"Errors","description":"Number of failed operations"},"results":{"items":{"$ref":"#/components/schemas/UserActionResult"},"type":"array","title":"Results","description":"Detailed results for each email"}},"type":"object","required":["total_processed","successful","errors","results"],"title":"UserActionResponse","description":"Response model for bulk refund/activate operations"},"UserActionResult":{"properties":{"email":{"type":"string","title":"Email","description":"Email address"},"status":{"type":"string","title":"Status","description":"Status (success/error)"},"message":{"type":"string","title":"Message","description":"Status message"}},"type":"object","required":["email","status","message"],"title":"UserActionResult","description":"Result model for individual refund/activate processing"},"UserCreateRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"profile_picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"language":{"type":"string","title":"Language","default":"en"}},"type":"object","required":["email"],"title":"UserCreateRequest"},"UserInfo":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"profile_picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"preferred_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Language"},"typeform_onboarded":{"type":"boolean","title":"Typeform Onboarded"},"max_workspaces":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Workspaces"},"is_super_admin":{"type":"boolean","title":"Is Super Admin","description":"Whether the user is a super admin"},"is_signup_completed":{"type":"boolean","title":"Is Signup Completed","description":"Whether signup is completed"}},"type":"object","required":["id","email","is_active","created_on","typeform_onboarded","is_super_admin","is_signup_completed"],"title":"UserInfo","description":"User fields — extends the base User schema with admin/signup flags"},"UserInsightsResponse":{"properties":{"data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Data","description":"List of insight metrics"}},"type":"object","required":["data"],"title":"UserInsightsResponse","description":"Response model for user insights"},"UserPersonaRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"Email address of the user"}},"type":"object","required":["email"],"title":"UserPersonaRequest","description":"Request model for fetching user persona details"},"UserPersonaResponse":{"properties":{"email":{"type":"string","title":"Email","description":"Email address"},"total":{"type":"integer","title":"Total","description":"Total personas found"},"personas":{"items":{"$ref":"#/components/schemas/Persona"},"type":"array","title":"Personas","description":"List of personas. Pass workspace_id to /delete-user-projects when user has more than one persona."}},"type":"object","required":["email","total","personas"],"title":"UserPersonaResponse","description":"Response model for user personas"},"UserProjectsRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"Email address of the user"},"workspace_id":{"type":"string","title":"Workspace Id","description":"ID of the workspace to scope results"},"after_date":{"type":"string","title":"After Date","description":"Fetch projects created after this date. Format: YYYY-MM-DD (e.g. 2024-03-15)"},"offset":{"type":"integer","minimum":0.0,"title":"Offset","description":"Number of projects to skip (page size is fixed at 30)","default":0}},"type":"object","required":["email","workspace_id","after_date"],"title":"UserProjectsRequest","description":"Request model for fetching user projects after a date"},"UserProjectsResponse":{"properties":{"email":{"type":"string","title":"Email","description":"Email address"},"workspace_id":{"type":"string","title":"Workspace Id","description":"Workspace ID"},"total":{"type":"integer","title":"Total","description":"Total matching projects"},"limit":{"type":"integer","title":"Limit","description":"Page size"},"offset":{"type":"integer","title":"Offset","description":"Current offset"},"has_next":{"type":"boolean","title":"Has Next","description":"Whether more projects exist after this page"},"projects":{"items":{"$ref":"#/components/schemas/ProjectInfo"},"type":"array","title":"Projects","description":"List of projects"}},"type":"object","required":["email","workspace_id","total","limit","offset","has_next","projects"],"title":"UserProjectsResponse","description":"Response model for user projects"},"UserRole":{"type":"string","enum":["SUPER_ADMIN","OWNER","ADMIN","MEMBER"],"title":"UserRole"},"UserStatsRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"Email address of the user"}},"type":"object","required":["email"],"title":"UserStatsRequest","description":"Request model for fetching user stats"},"UserStatsResponse":{"properties":{"sales_channel":{"type":"string","title":"Sales Channel","description":"Funnel the user came from: FREE | CLICK_FUNNEL | JVZOO | APP_SUMU"},"is_subscriber":{"type":"boolean","title":"Is Subscriber","description":"True if the user has at least one active package"},"user":{"$ref":"#/components/schemas/UserInfo","description":"Basic user fields"},"active_packages":{"items":{"$ref":"#/components/schemas/ActivePackageInfo"},"type":"array","title":"Active Packages","description":"List of active packages"}},"type":"object","required":["sales_channel","is_subscriber","user","active_packages"],"title":"UserStatsResponse","description":"Response model for user stats"},"UserWorkspacesRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email","description":"Email address of the user"}},"type":"object","required":["email"],"title":"UserWorkspacesRequest","description":"Request model for fetching user workspaces"},"UserWorkspacesResponse":{"properties":{"email":{"type":"string","title":"Email","description":"Email address"},"total":{"type":"integer","title":"Total","description":"Total workspaces found"},"workspaces":{"items":{"$ref":"#/components/schemas/Workspace"},"type":"array","title":"Workspaces","description":"List of workspaces"}},"type":"object","required":["email","total","workspaces"],"title":"UserWorkspacesResponse","description":"Response model for user workspaces"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VideoInitRequest":{"properties":{"post_info":{"$ref":"#/components/schemas/PostInfo"},"source_info":{"$ref":"#/components/schemas/SourceInfoPullFromUrl"}},"type":"object","required":["post_info","source_info"],"title":"VideoInitRequest","description":"Request to initiate video upload from URL"},"VideoInitResponse":{"properties":{"data":{"$ref":"#/components/schemas/VideoInitResponseData"},"error":{"$ref":"#/components/schemas/TikTokErrorInfo"}},"type":"object","required":["data","error"],"title":"VideoInitResponse","description":"Response from video init endpoint"},"VideoInitResponseData":{"properties":{"publish_id":{"type":"string","title":"Publish Id","description":"Unique identifier for this publish request"}},"type":"object","required":["publish_id"],"title":"VideoInitResponseData","description":"Response data from video init endpoint"},"WelcomeWorkflowRequest":{"properties":{"first_name":{"type":"string","maxLength":100,"minLength":1,"title":"First Name","description":"First name of the user"},"last_name":{"type":"string","maxLength":100,"minLength":1,"title":"Last Name","description":"Last name of the user"}},"type":"object","required":["first_name","last_name"],"title":"WelcomeWorkflowRequest"},"Workspace":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"account_id":{"type":"string","title":"Account Id"},"is_active":{"type":"boolean","title":"Is Active"},"created_on":{"type":"string","format":"date-time","title":"Created On"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"updated_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated On"},"last_opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Opened At"},"current_user_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current User Role"}},"type":"object","required":["id","name","account_id","is_active","created_on"],"title":"Workspace"},"WorkspaceCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"account_id":{"type":"string","title":"Account Id"}},"type":"object","required":["name","account_id"],"title":"WorkspaceCreateRequest"},"WorkspaceInviteUserRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"role":{"$ref":"#/components/schemas/UserRole"}},"type":"object","required":["email","role"],"title":"WorkspaceInviteUserRequest"},"WorkspaceListResponse":{"properties":{"workspaces":{"items":{"$ref":"#/components/schemas/Workspace"},"type":"array","title":"Workspaces"}},"type":"object","required":["workspaces"],"title":"WorkspaceListResponse"},"WorkspacePauseStateResponse":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"is_paused":{"type":"boolean","title":"Is Paused"},"paused_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paused At"},"pause_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pause Reason"},"generation_horizon_days":{"type":"integer","title":"Generation Horizon Days"}},"type":"object","required":["workspace_id","is_paused","generation_horizon_days"],"title":"WorkspacePauseStateResponse","description":"Response schema for workspace pause state."},"WorkspaceUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"WorkspaceUpdateRequest"},"WorkspaceUser":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","format":"email","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"is_signup_completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Signup Completed"},"role":{"type":"string","title":"Role"}},"type":"object","required":["user_id","email","role"],"title":"WorkspaceUser"},"WorkspaceUsersList":{"properties":{"workspace_users_list":{"items":{"$ref":"#/components/schemas/WorkspaceUser"},"type":"array","title":"Workspace Users List"}},"type":"object","required":["workspace_users_list"],"title":"WorkspaceUsersList"},"infinitgoose_app_template_backend__billing__schemas__CreditTransactionResponse":{"properties":{"sr_no":{"type":"integer","title":"Sr No"},"transaction_type":{"type":"string","title":"Transaction Type"},"credits_delta":{"type":"integer","title":"Credits Delta"},"remaining_credits":{"type":"integer","title":"Remaining Credits"},"reference_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Type"},"reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"},"created_on":{"type":"string","format":"date-time","title":"Created On"}},"type":"object","required":["sr_no","transaction_type","credits_delta","remaining_credits","created_on"],"title":"CreditTransactionResponse"},"src__credits__schemas__CreditTransactionResponse":{"properties":{"sr_no":{"type":"integer","title":"Sr No","description":"Transaction serial number"},"account_id":{"type":"string","title":"Account Id","description":"Account identifier"},"transaction_type":{"type":"string","title":"Transaction Type","description":"Type of transaction"},"credits_consumed":{"type":"integer","title":"Credits Consumed","description":"Credits consumed (negative for deductions, positive for additions)"},"remaining_credits":{"type":"integer","title":"Remaining Credits","description":"Remaining credits after transaction"},"workflow_execution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Execution Id","description":"Associated workflow execution ID"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Id","description":"Associated workflow ID"},"workflow_node_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Node Id","description":"Associated workflow node ID"},"llm_model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Model Name","description":"LLM model used"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Transaction description"},"created_on":{"type":"string","format":"date-time","title":"Created On","description":"Transaction timestamp"}},"type":"object","required":["sr_no","account_id","transaction_type","credits_consumed","remaining_credits","created_on"],"title":"CreditTransactionResponse","description":"Response schema for credit transaction information","example":{"account_id":"acc_123456","created_on":"2024-01-15T10:30:00Z","credits_consumed":-2,"description":"Node execution: ask_ai","llm_model_name":"gpt-4","remaining_credits":148,"sr_no":1,"transaction_type":"WORKFLOW_NODE","workflow_execution_id":"exec_789","workflow_id":"wf_456","workflow_node_id":"node_123"}},"src__engagement__schemas__PaginationInfo":{"properties":{"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"has_next":{"type":"boolean","title":"Has Next"}},"type":"object","required":["total","limit","offset","has_next"],"title":"PaginationInfo","description":"Pagination metadata"},"src__projects__schemas__PaginationInfo":{"properties":{"total":{"type":"integer","title":"Total","description":"Total number of items"},"limit":{"type":"integer","title":"Limit","description":"Items per page"},"offset":{"type":"integer","title":"Offset","description":"Items skipped"},"has_next":{"type":"boolean","title":"Has Next","description":"Whether there are more items"}},"type":"object","required":["total","limit","offset","has_next"],"title":"PaginationInfo"}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"auth/token"}}}}}}