{"openapi":"3.1.0","info":{"title":"SendFlow API","version":"0.1.0"},"paths":{"/v1/auth/config":{"get":{"tags":["auth"],"summary":"Auth Config","description":"Tells the sign-in page which flows this deployment offers.","operationId":"auth_config_v1_auth_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/auth/signup":{"post":{"tags":["auth"],"summary":"Sign Up","operationId":"sign_up_v1_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUpRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/login":{"post":{"tags":["auth"],"summary":"Sign In","operationId":"sign_in_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Sign Out","operationId":"sign_out_v1_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/auth/me":{"get":{"tags":["auth"],"summary":"Get Me","operationId":"get_me_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserEnvelope"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["auth"],"summary":"Delete Me","description":"Delete the signed-in person's account and workspace, for good.\n\nNeeds a session and the current password, so an API key or a session\nalone cannot do it.","operationId":"delete_me_v1_auth_me_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["auth"],"summary":"Update Me","operationId":"update_me_v1_auth_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/auth/verify-email":{"post":{"tags":["auth"],"summary":"Verify Email","description":"Confirm an address from the emailed link. The token is the credential.","operationId":"verify_email_v1_auth_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/verify-email/resend":{"post":{"tags":["auth"],"summary":"Resend Verification","operationId":"resend_verification_v1_auth_verify_email_resend_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/auth/password/forgot":{"post":{"tags":["auth"],"summary":"Forgot Password","description":"Start a reset. Always answers the same way, whether or not the email exists.","operationId":"forgot_password_v1_auth_password_forgot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/password/reset":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_v1_auth_password_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/password":{"post":{"tags":["auth"],"summary":"Change Password","operationId":"change_password_v1_auth_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/auth/onboarding":{"post":{"tags":["auth"],"summary":"Set Onboarding Step","operationId":"set_onboarding_step_v1_auth_onboarding_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStepRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/me":{"get":{"tags":["me"],"summary":"Get Current Context","description":"Identify the organization behind the calling API key.\n\nThe dashboard uses this to show which tenant it is operating on, so a\nproduction key is never mistaken for a development one.","operationId":"get_current_context_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/me/organization":{"patch":{"tags":["me"],"summary":"Update Organization","description":"Rename the caller's workspace. People only; API keys cannot do this.","operationId":"update_organization_v1_me_organization_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrganizationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/api-keys":{"get":{"tags":["api-keys"],"summary":"List Api Keys","operationId":"list_api_keys_v1_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyListEnvelope"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["api-keys"],"summary":"Create Api Key","operationId":"create_api_key_v1_api_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreatedEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/api-keys/{key_id}":{"delete":{"tags":["api-keys"],"summary":"Revoke Api Key","operationId":"revoke_api_key_v1_api_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/profiles":{"get":{"tags":["profiles"],"summary":"List Profiles","operationId":"list_profiles_v1_profiles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileListEnvelope"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["profiles"],"summary":"Create Profile","operationId":"create_profile_v1_profiles_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/profiles/{profile_id}":{"get":{"tags":["profiles"],"summary":"Get Profile","operationId":"get_profile_v1_profiles__profile_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["profiles"],"summary":"Update Profile","operationId":"update_profile_v1_profiles__profile_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["profiles"],"summary":"Delete Profile","description":"Delete an empty profile. Refuses while accounts are still attached.","operationId":"delete_profile_v1_profiles__profile_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"string","title":"Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/accounts":{"get":{"tags":["accounts"],"summary":"List Accounts","operationId":"list_accounts_v1_accounts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"profileId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profileid"}},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountListEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/accounts/{account_id}":{"get":{"tags":["accounts"],"summary":"Get Account","operationId":"get_account_v1_accounts__account_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["accounts"],"summary":"Disconnect Account","description":"Disconnect an account and forget its credentials.\n\nThe row is kept so historical posts still resolve to a real account.","operationId":"disconnect_account_v1_accounts__account_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platforms":{"get":{"tags":["platforms"],"summary":"List Platforms","description":"What this deployment can connect and publish to, and what each needs.\n\nRead by the customer app to drive its connect screen and composer rules.\nNever includes credentials, only whether they are configured.","operationId":"list_platforms_v1_platforms_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/connect/telegram":{"post":{"tags":["connect"],"summary":"Start Telegram Connect","operationId":"start_telegram_connect_v1_connect_telegram_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["connect"],"summary":"Get Telegram Status","operationId":"get_telegram_status_v1_connect_telegram_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connect/bluesky":{"post":{"tags":["connect"],"summary":"Connect Bluesky","operationId":"connect_bluesky_v1_connect_bluesky_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlueskyConnectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/connect/{platform}":{"get":{"tags":["connect"],"summary":"Start Platform Connect","operationId":"start_platform_connect_v1_connect__platform__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"platform","in":"path","required":true,"schema":{"type":"string","title":"Platform"}},{"name":"profileId","in":"query","required":true,"schema":{"type":"string","title":"Profileid"}},{"name":"redirect_url","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/posts":{"post":{"tags":["posts"],"summary":"Create Post","operationId":"create_post_v1_posts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["posts"],"summary":"List Posts","description":"List posts, newest first.\n\nWithout `limit` this returns every post, as it always has. With `limit` it\nreturns one page and a `nextCursor` to pass back as `cursor`. `from` and\n`to` bound when the post happened: published, else scheduled, else created.","operationId":"list_posts_v1_posts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One status, or several comma-separated","title":"Status"},"description":"One status, or several comma-separated"},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform"}},{"name":"accountId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accountid"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostListEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/posts/counts":{"get":{"tags":["posts"],"summary":"Post Counts","description":"How many posts are in each status, for filter tabs and the dashboard.","operationId":"post_counts_v1_posts_counts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/posts/{post_id}":{"get":{"tags":["posts"],"summary":"Get Post","operationId":"get_post_v1_posts__post_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["posts"],"summary":"Update Post","description":"Rewrite a post that has not been sent yet.\n\nOnly drafts, scheduled posts and outright failures are editable; anything\nthat reached a platform is part of the delivery record.","operationId":"update_post_v1_posts__post_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["posts"],"summary":"Delete Post","description":"Delete a draft, or cancel a scheduled post before it goes out.","operationId":"delete_post_v1_posts__post_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/posts/{post_id}/publish":{"post":{"tags":["posts"],"summary":"Publish Post","operationId":"publish_post_v1_posts__post_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/posts/{post_id}/retry":{"post":{"tags":["posts"],"summary":"Retry Post","description":"Retry a failed post, or only the failed accounts of a partial failure.\n\nDeliveries that already succeeded are never re-sent.","operationId":"retry_post_v1_posts__post_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/snapchat/posts":{"post":{"tags":["snapchat"],"summary":"Create Snapchat Video Post","operationId":"create_snapchat_video_post_v1_snapchat_posts_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_snapchat_video_post_v1_snapchat_posts_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/youtube/videos":{"post":{"tags":["youtube"],"summary":"Upload Youtube Video","operationId":"upload_youtube_video_v1_youtube_videos_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_youtube_video_v1_youtube_videos_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YouTubeVideoEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/tiktok/videos":{"post":{"tags":["tiktok"],"summary":"Upload Tiktok Video","operationId":"upload_tiktok_video_v1_tiktok_videos_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_tiktok_video_v1_tiktok_videos_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TikTokVideoUploadEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/pinterest/boards":{"get":{"tags":["pinterest"],"summary":"List Pinterest Boards","operationId":"list_pinterest_boards_v1_pinterest_boards_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accountId","in":"query","required":true,"schema":{"type":"string","title":"Accountid"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Pagesize"}},{"name":"bookmark","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bookmark"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pinterest"],"summary":"Create Pinterest Board","operationId":"create_pinterest_board_v1_pinterest_boards_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accountId","in":"query","required":true,"schema":{"type":"string","title":"Accountid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_create_pinterest_board_v1_pinterest_boards_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pinterest/pins":{"post":{"tags":["pinterest"],"summary":"Create Pinterest Image Pin","operationId":"create_pinterest_image_pin_v1_pinterest_pins_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_pinterest_image_pin_v1_pinterest_pins_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/media":{"post":{"tags":["media"],"summary":"Upload Media","description":"Store a file and return a public URL usable as imageUrl or videoUrl.\n\nPlatforms like Instagram and Pinterest fetch media themselves, so they need\na URL rather than bytes. This gives customers without a CDN somewhere to put\none.","operationId":"upload_media_v1_media_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_media_v1_media_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["media"],"summary":"List Media","operationId":"list_media_v1_media_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/media/{media_id}":{"delete":{"tags":["media"],"summary":"Delete Media","operationId":"delete_media_v1_media__media_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"media_id","in":"path","required":true,"schema":{"type":"string","title":"Media Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/events":{"get":{"tags":["webhooks"],"summary":"List Supported Events","operationId":"list_supported_events_v1_webhooks_events_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportedEventsEnvelope"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/webhooks":{"get":{"tags":["webhooks"],"summary":"List Webhooks","operationId":"list_webhooks_v1_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookListEnvelope"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["webhooks"],"summary":"Create Webhook","operationId":"create_webhook_v1_webhooks_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreatedEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/webhooks/{webhook_id}":{"get":{"tags":["webhooks"],"summary":"Get Webhook","operationId":"get_webhook_v1_webhooks__webhook_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["webhooks"],"summary":"Update Webhook","operationId":"update_webhook_v1_webhooks__webhook_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["webhooks"],"summary":"Delete Webhook","operationId":"delete_webhook_v1_webhooks__webhook_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/deliveries":{"get":{"tags":["webhooks"],"summary":"List Webhook Deliveries","operationId":"list_webhook_deliveries_v1_webhooks__webhook_id__deliveries_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryListEnvelope"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/analytics/summary":{"get":{"tags":["analytics"],"summary":"Analytics Summary","description":"Publishing activity for a date range: posts, deliveries, outcomes.\n\nCounts SendFlow's own deliveries. Platform engagement metrics are not\ncollected, so nothing here describes reach or performance. Days are\nbucketed in `timezone`. Defaults to the last 30 days.","operationId":"analytics_summary_v1_analytics_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"timezone","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"UTC","title":"Timezone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AccountEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"account":{"$ref":"#/components/schemas/AccountResponse"}},"type":"object","required":["account"],"title":"AccountEnvelope"},"AccountListEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"accounts":{"items":{"$ref":"#/components/schemas/AccountResponse"},"type":"array","title":"Accounts"}},"type":"object","required":["accounts"],"title":"AccountListEnvelope"},"AccountResponse":{"properties":{"_id":{"type":"string","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"profileId":{"type":"string","title":"Profileid"},"platform":{"type":"string","title":"Platform"},"status":{"type":"string","title":"Status"},"displayName":{"type":"string","title":"Displayname"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"externalAccountId":{"type":"string","title":"Externalaccountid"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["_id","createdAt","updatedAt","profileId","platform","status","displayName","externalAccountId"],"title":"AccountResponse"},"ApiKeyCreatedEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"apiKey":{"$ref":"#/components/schemas/ApiKeyResponse"},"key":{"type":"string","title":"Key"}},"type":"object","required":["apiKey","key"],"title":"ApiKeyCreatedEnvelope"},"ApiKeyEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"apiKey":{"$ref":"#/components/schemas/ApiKeyResponse"}},"type":"object","required":["apiKey"],"title":"ApiKeyEnvelope"},"ApiKeyListEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"apiKeys":{"items":{"$ref":"#/components/schemas/ApiKeyResponse"},"type":"array","title":"Apikeys"}},"type":"object","required":["apiKeys"],"title":"ApiKeyListEnvelope"},"ApiKeyResponse":{"properties":{"_id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"keyPrefix":{"type":"string","title":"Keyprefix"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastusedat"},"revokedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revokedat"}},"type":"object","required":["_id","name","keyPrefix","createdAt"],"title":"ApiKeyResponse"},"BlueskyConnectRequest":{"properties":{"profileId":{"type":"string","title":"Profileid"},"identifier":{"type":"string","maxLength":253,"minLength":1,"title":"Identifier"},"appPassword":{"type":"string","maxLength":64,"minLength":1,"title":"Apppassword"}},"type":"object","required":["profileId","identifier","appPassword"],"title":"BlueskyConnectRequest"},"Body_create_pinterest_board_v1_pinterest_boards_post":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"privacy":{"type":"string","title":"Privacy","default":"PUBLIC"}},"type":"object","required":["name"],"title":"Body_create_pinterest_board_v1_pinterest_boards_post"},"Body_create_pinterest_image_pin_v1_pinterest_pins_post":{"properties":{"accountId":{"type":"string","title":"Accountid"},"boardId":{"type":"string","title":"Boardid"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link"},"altText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alttext"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["accountId","boardId","file"],"title":"Body_create_pinterest_image_pin_v1_pinterest_pins_post"},"Body_create_snapchat_video_post_v1_snapchat_posts_post":{"properties":{"accountId":{"type":"string","title":"Accountid"},"content":{"type":"string","title":"Content"},"publishNow":{"type":"boolean","title":"Publishnow","default":true},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["accountId","content","file"],"title":"Body_create_snapchat_video_post_v1_snapchat_posts_post"},"Body_upload_media_v1_media_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_media_v1_media_post"},"Body_upload_tiktok_video_v1_tiktok_videos_post":{"properties":{"accountId":{"type":"string","title":"Accountid"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["accountId","file"],"title":"Body_upload_tiktok_video_v1_tiktok_videos_post"},"Body_upload_youtube_video_v1_youtube_videos_post":{"properties":{"accountId":{"type":"string","title":"Accountid"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"privacyStatus":{"type":"string","title":"Privacystatus","default":"private"},"categoryId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Categoryid"},"tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags"},"publishAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publishat"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["accountId","title","file"],"title":"Body_upload_youtube_video_v1_youtube_videos_post"},"ChangePasswordRequest":{"properties":{"currentPassword":{"type":"string","title":"Currentpassword"},"newPassword":{"type":"string","title":"Newpassword"}},"type":"object","required":["currentPassword","newPassword"],"title":"ChangePasswordRequest"},"CreateApiKeyRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"environment":{"type":"string","pattern":"^(live|test)$","title":"Environment","default":"live"}},"type":"object","required":["name"],"title":"CreateApiKeyRequest"},"CreatePostRequest":{"properties":{"content":{"anyOf":[{"type":"string","maxLength":100000},{"type":"null"}],"title":"Content"},"scheduledFor":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduledfor"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"publishNow":{"type":"boolean","title":"Publishnow","default":false},"platforms":{"items":{"$ref":"#/components/schemas/PlatformTargetRequest"},"type":"array","maxItems":25,"title":"Platforms"}},"type":"object","required":["platforms"],"title":"CreatePostRequest"},"CreateProfileRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"CreateProfileRequest"},"CreateWebhookRequest":{"properties":{"url":{"type":"string","minLength":1,"title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["url","events"],"title":"CreateWebhookRequest"},"DeleteAccountRequest":{"properties":{"password":{"type":"string","maxLength":1024,"minLength":1,"title":"Password"}},"type":"object","required":["password"],"title":"DeleteAccountRequest"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"OAuthConnectResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"authUrl":{"type":"string","title":"Authurl"},"state":{"type":"string","title":"State"},"expiresAt":{"type":"string","format":"date-time","title":"Expiresat"}},"type":"object","required":["authUrl","state","expiresAt"],"title":"OAuthConnectResponse"},"OnboardingEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"onboarding":{"additionalProperties":true,"type":"object","title":"Onboarding"}},"type":"object","required":["onboarding"],"title":"OnboardingEnvelope"},"OnboardingStepRequest":{"properties":{"step":{"type":"string","pattern":"^(key|connect|build|timezone|post|dismissed)$","title":"Step"},"done":{"type":"boolean","title":"Done","default":true}},"type":"object","required":["step"],"title":"OnboardingStepRequest"},"PlatformPublishResult":{"properties":{"platform":{"type":"string","title":"Platform"},"accountId":{"type":"string","title":"Accountid"},"status":{"type":"string","title":"Status"},"remotePostId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remotepostid"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"shareUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shareurl"}},"type":"object","required":["platform","accountId","status"],"title":"PlatformPublishResult"},"PlatformTargetRequest":{"properties":{"platform":{"type":"string","title":"Platform"},"accountId":{"type":"string","title":"Accountid"},"customContent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customcontent"},"platformSpecificData":{"additionalProperties":true,"type":"object","title":"Platformspecificdata"}},"type":"object","required":["platform","accountId"],"title":"PlatformTargetRequest"},"PostEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"post":{"$ref":"#/components/schemas/PostResponse"}},"type":"object","required":["post"],"title":"PostEnvelope"},"PostListEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"posts":{"items":{"$ref":"#/components/schemas/PostResponse"},"type":"array","title":"Posts"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextcursor"}},"type":"object","required":["posts"],"title":"PostListEnvelope"},"PostResponse":{"properties":{"_id":{"type":"string","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"scheduledFor":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduledfor"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"publishNow":{"type":"boolean","title":"Publishnow"},"status":{"type":"string","title":"Status"},"platforms":{"items":{"$ref":"#/components/schemas/PlatformTargetRequest"},"type":"array","title":"Platforms"},"results":{"items":{"$ref":"#/components/schemas/PlatformPublishResult"},"type":"array","title":"Results"},"publishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Publishedat"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage"}},"type":"object","required":["_id","createdAt","updatedAt","publishNow","status","platforms"],"title":"PostResponse"},"ProfileEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"profile":{"$ref":"#/components/schemas/ProfileResponse"}},"type":"object","required":["profile"],"title":"ProfileEnvelope"},"ProfileListEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"profiles":{"items":{"$ref":"#/components/schemas/ProfileResponse"},"type":"array","title":"Profiles"}},"type":"object","required":["profiles"],"title":"ProfileListEnvelope"},"ProfileResponse":{"properties":{"_id":{"type":"string","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["_id","createdAt","updatedAt","name"],"title":"ProfileResponse"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","maxLength":256,"title":"Token"},"password":{"type":"string","title":"Password"}},"type":"object","required":["token","password"],"title":"ResetPasswordRequest"},"SessionEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"user":{"$ref":"#/components/schemas/UserResponse"},"apiKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"}},"type":"object","required":["user"],"title":"SessionEnvelope"},"SignInRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"SignInRequest"},"SignUpRequest":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"},"password":{"type":"string","title":"Password"},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"workspace":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Workspace"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"}},"type":"object","required":["email","password"],"title":"SignUpRequest"},"SupportedEventsEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"events":{"items":{"type":"string"},"type":"array","title":"Events"}},"type":"object","required":["events"],"title":"SupportedEventsEnvelope"},"TelegramConnectRequest":{"properties":{"profileId":{"type":"string","title":"Profileid"}},"type":"object","required":["profileId"],"title":"TelegramConnectRequest"},"TelegramConnectResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"profileId":{"type":"string","title":"Profileid"},"accessCode":{"type":"string","title":"Accesscode"},"botUsername":{"type":"string","title":"Botusername"},"status":{"type":"string","title":"Status"},"expiresAt":{"type":"string","format":"date-time","title":"Expiresat"}},"type":"object","required":["profileId","accessCode","botUsername","status","expiresAt"],"title":"TelegramConnectResponse"},"TelegramStatusResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"profileId":{"type":"string","title":"Profileid"},"accessCode":{"type":"string","title":"Accesscode"},"status":{"type":"string","title":"Status"},"expiresAt":{"type":"string","format":"date-time","title":"Expiresat"},"account":{"anyOf":[{"$ref":"#/components/schemas/AccountResponse"},{"type":"null"}]}},"type":"object","required":["profileId","accessCode","status","expiresAt"],"title":"TelegramStatusResponse"},"TikTokVideoUploadEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"upload":{"$ref":"#/components/schemas/TikTokVideoUploadResponse"}},"type":"object","required":["upload"],"title":"TikTokVideoUploadEnvelope"},"TikTokVideoUploadResponse":{"properties":{"publishId":{"type":"string","title":"Publishid"},"status":{"type":"string","title":"Status"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["publishId","status","detail"],"title":"TikTokVideoUploadResponse"},"UpdateMeRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"}},"type":"object","title":"UpdateMeRequest"},"UpdateOrganizationRequest":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name"}},"type":"object","required":["name"],"title":"UpdateOrganizationRequest"},"UpdateProfileRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"UpdateProfileRequest","description":"All fields optional: omitted fields are left untouched."},"UpdateWebhookRequest":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Events"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"UpdateWebhookRequest"},"UserEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"user":{"$ref":"#/components/schemas/UserResponse"}},"type":"object","required":["user"],"title":"UserEnvelope"},"UserResponse":{"properties":{"_id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"orgId":{"type":"string","title":"Orgid"},"emailVerified":{"type":"boolean","title":"Emailverified"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"onboarding":{"additionalProperties":true,"type":"object","title":"Onboarding"}},"type":"object","required":["_id","email","orgId","emailVerified"],"title":"UserResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyEmailRequest":{"properties":{"token":{"type":"string","maxLength":256,"title":"Token"}},"type":"object","required":["token"],"title":"VerifyEmailRequest"},"WebhookCreatedEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"webhook":{"$ref":"#/components/schemas/WebhookResponse"},"secret":{"type":"string","title":"Secret"}},"type":"object","required":["webhook","secret"],"title":"WebhookCreatedEnvelope"},"WebhookDeliveryListEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"deliveries":{"items":{"$ref":"#/components/schemas/WebhookDeliveryResponse"},"type":"array","title":"Deliveries"}},"type":"object","required":["deliveries"],"title":"WebhookDeliveryListEnvelope"},"WebhookDeliveryResponse":{"properties":{"_id":{"type":"string","title":"Id"},"webhookId":{"type":"string","title":"Webhookid"},"event":{"type":"string","title":"Event"},"status":{"type":"string","title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"responseStatus":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Responsestatus"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"nextAttemptAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Nextattemptat"},"deliveredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deliveredat"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"}},"type":"object","required":["_id","webhookId","event","status","attempts","createdAt"],"title":"WebhookDeliveryResponse"},"WebhookEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"webhook":{"$ref":"#/components/schemas/WebhookResponse"}},"type":"object","required":["webhook"],"title":"WebhookEnvelope"},"WebhookListEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"webhooks":{"items":{"$ref":"#/components/schemas/WebhookResponse"},"type":"array","title":"Webhooks"}},"type":"object","required":["webhooks"],"title":"WebhookListEnvelope"},"WebhookResponse":{"properties":{"_id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"enabled":{"type":"boolean","title":"Enabled"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["_id","url","events","enabled","createdAt","updatedAt"],"title":"WebhookResponse"},"YouTubeVideoEnvelope":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"video":{"$ref":"#/components/schemas/YouTubeVideoResponse"}},"type":"object","required":["video"],"title":"YouTubeVideoEnvelope"},"YouTubeVideoResponse":{"properties":{"videoId":{"type":"string","title":"Videoid"},"channelId":{"type":"string","title":"Channelid"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"privacyStatus":{"type":"string","title":"Privacystatus"},"uploadStatus":{"type":"string","title":"Uploadstatus"},"url":{"type":"string","title":"Url"},"publishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Publishedat"}},"type":"object","required":["videoId","channelId","title","privacyStatus","uploadStatus","url"],"title":"YouTubeVideoResponse"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}