{"openapi":"3.1.0","info":{"title":"Subsignal API","version":"0.1.0"},"paths":{"/v1/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/subreddit/{name}/feed":{"get":{"tags":["subreddits"],"summary":"Subreddit Feed","operationId":"subreddit_feed_v1_subreddit__name__feed_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["hot","new","top","rising"],"type":"string","default":"hot","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cursor"}},{"name":"time_range","in":"query","required":false,"schema":{"anyOf":[{"enum":["hour","day","week","month","year","all"],"type":"string"},{"type":"null"}],"title":"Time Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/subreddit/{name}/info":{"get":{"tags":["subreddits"],"summary":"Subreddit Info","operationId":"subreddit_info_v1_subreddit__name__info_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubredditInfoResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/subreddit/{name}/flairs":{"get":{"tags":["subreddits"],"summary":"Subreddit Flairs","operationId":"subreddit_flairs_v1_subreddit__name__flairs_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlairsResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/subreddit/{name}/moderators":{"get":{"tags":["subreddits"],"summary":"Subreddit Moderators","operationId":"subreddit_moderators_v1_subreddit__name__moderators_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModeratorsResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/subreddit/{name}/related":{"get":{"tags":["subreddits"],"summary":"Subreddit Related","operationId":"subreddit_related_v1_subreddit__name__related_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelatedResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/subreddit/{name}/widgets":{"get":{"tags":["subreddits"],"summary":"Subreddit Widgets","operationId":"subreddit_widgets_v1_subreddit__name__widgets_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetsResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/feed/popular":{"get":{"tags":["feeds"],"summary":"Popular Feed","operationId":"popular_feed_v1_feed_popular_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/feed/explore":{"get":{"tags":["feeds"],"summary":"Explore Feed","operationId":"explore_feed_v1_feed_explore_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/users/batch":{"get":{"tags":["users"],"summary":"Users Batch","operationId":"users_batch_v1_users_batch_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsersBatchResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/post/{post_id}":{"get":{"tags":["posts"],"summary":"Post Detail","operationId":"post_detail_v1_post__post_id__get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}},{"name":"include_comments","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Comments"}},{"name":"comment_sort","in":"query","required":false,"schema":{"enum":["confidence","top","new","controversial","old","qa"],"type":"string","default":"confidence","title":"Comment Sort"}},{"name":"comment_limit","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":1,"default":100,"title":"Comment Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/comments/{post_id}":{"get":{"tags":["posts"],"summary":"Post Comments","operationId":"post_comments_v1_comments__post_id__get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["confidence","top","new","controversial","old","qa"],"type":"string","default":"confidence","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":300,"minimum":1,"default":100,"title":"Limit"}},{"name":"max_depth","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":10,"title":"Max Depth"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentsResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/user/{username}/profile":{"get":{"tags":["users"],"summary":"User Profile","operationId":"user_profile_v1_user__username__profile_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/user/{username}":{"get":{"tags":["users"],"summary":"User Profile","operationId":"user_profile_v1_user__username__get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/user/{username}/submitted":{"get":{"tags":["users"],"summary":"User Submitted","operationId":"user_submitted_v1_user__username__submitted_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["new","hot","top"],"type":"string","default":"new","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cursor"}},{"name":"time_range","in":"query","required":false,"schema":{"anyOf":[{"enum":["hour","day","week","month","year","all"],"type":"string"},{"type":"null"}],"title":"Time Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/user/{username}/comments":{"get":{"tags":["users"],"summary":"User Comments","operationId":"user_comments_v1_user__username__comments_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}},{"name":"sort","in":"query","required":false,"schema":{"const":"new","type":"string","default":"new","title":"Sort"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentsResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/search":{"get":{"tags":["search"],"summary":"Search","operationId":"search_v1_search_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":512,"title":"Q"}},{"name":"type","in":"query","required":false,"schema":{"enum":["all","posts"],"type":"string","default":"all","title":"Type"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["relevance","hot","top","new","comments"],"type":"string","default":"relevance","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cursor"}},{"name":"include_nsfw","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Nsfw"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/usage":{"get":{"tags":["usage"],"summary":"Usage","operationId":"usage_v1_usage_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"period","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}$"},{"type":"null"}],"title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageView"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/session":{"post":{"tags":["portal"],"summary":"Old Key Login","operationId":"old_key_login_v1_portal_session_post","responses":{"410":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Old Key Login V1 Portal Session Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/bootstrap":{"get":{"tags":["portal"],"summary":"Bootstrap","operationId":"bootstrap_v1_portal_bootstrap_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Bootstrap V1 Portal Bootstrap Get"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/keys":{"post":{"tags":["portal"],"summary":"Create Key","operationId":"create_key_v1_portal_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Key V1 Portal Keys Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/keys/{key_id}/rotate":{"post":{"tags":["portal"],"summary":"Rotate Key","operationId":"rotate_key_v1_portal_keys__key_id__rotate_post","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Rotate Key V1 Portal Keys  Key Id  Rotate Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/keys/{key_id}":{"delete":{"tags":["portal"],"summary":"Revoke Key","operationId":"revoke_key_v1_portal_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/profile":{"patch":{"tags":["portal"],"summary":"Update Profile","operationId":"update_profile_v1_portal_profile_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Update Profile V1 Portal Profile Patch"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/admin/accounts":{"get":{"tags":["portal"],"summary":"Accounts Queue","operationId":"accounts_queue_v1_portal_admin_accounts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","pattern":"^(pending|approved|suspended)$","default":"pending","title":"Status"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accounts Queue V1 Portal Admin Accounts Get"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/admin/accounts/{account_id}/approve":{"post":{"tags":["portal"],"summary":"Approve Account","operationId":"approve_account_v1_portal_admin_accounts__account_id__approve_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Account V1 Portal Admin Accounts  Account Id  Approve Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/admin/accounts/{account_id}/suspend":{"post":{"tags":["portal"],"summary":"Suspend Account","operationId":"suspend_account_v1_portal_admin_accounts__account_id__suspend_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Suspend Account V1 Portal Admin Accounts  Account Id  Suspend Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/admin/accounts/{account_id}/reapprove":{"post":{"tags":["portal"],"summary":"Reapprove Account","operationId":"reapprove_account_v1_portal_admin_accounts__account_id__reapprove_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reapprove Account V1 Portal Admin Accounts  Account Id  Reapprove Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/admin/accounts/{account_id}/policy":{"post":{"tags":["portal"],"summary":"Update Policy","operationId":"update_policy_v1_portal_admin_accounts__account_id__policy_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Policy V1 Portal Admin Accounts  Account Id  Policy Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/instagram/profile/{username}":{"get":{"tags":["instagram"],"summary":"Profile","description":"Public counters of one profile. A private profile is returned with `is_private: true`.","operationId":"profile_v1_instagram_profile__username__get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9._]{1,30}$","title":"Username"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgProfileResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/instagram/media":{"get":{"tags":["instagram"],"summary":"Media","description":"One post or reel by `id`, `shortcode` or `url` (exactly one), with its file links.\n\n403 `content_restricted`: Instagram restricts the post. 403 `profile_private`: its owner is private.","operationId":"media_v1_instagram_media_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{1,20}$"},{"type":"null"}],"description":"Numeric media ID.","title":"Id"},"description":"Numeric media ID."},{"name":"shortcode","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,11}$"},{"type":"null"}],"description":"The code in a post or reel link.","title":"Shortcode"},"description":"The code in a post or reel link."},{"name":"url","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"description":"An instagram.com post or reel link.","title":"Url"},"description":"An instagram.com post or reel link."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgMediaResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/instagram/profile/{username}/posts":{"get":{"tags":["instagram"],"summary":"Profile Posts","description":"One page of the profile feed, at the size Instagram returns.","operationId":"profile_posts_v1_instagram_profile__username__posts_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9._]{1,30}$","title":"Username"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgMediaPageResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/instagram/profile/{username}/reels":{"get":{"tags":["instagram"],"summary":"Profile Reels","description":"The reels found in one profile-feed page. A page can hold few or no reels and still have a next page.","operationId":"profile_reels_v1_instagram_profile__username__reels_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9._]{1,30}$","title":"Username"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgMediaPageResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/instagram/profile/{username}/following":{"get":{"tags":["instagram"],"summary":"Profile Following","description":"One page of accounts the profile follows, with the profile's own reported count.","operationId":"profile_following_v1_instagram_profile__username__following_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9._]{1,30}$","title":"Username"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgFollowingResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/instagram/profile/{username}/reels/collection":{"post":{"tags":["instagram"],"summary":"Start Reels Collection","description":"Start collecting this profile's reels, or reuse the running or recent collection.","operationId":"start_reels_collection_v1_instagram_profile__username__reels_collection_post","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9._]{1,30}$","title":"Username"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgCollectionResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"tags":["instagram"],"summary":"Reels Collection","description":"Collection progress. Never performs collection work.","operationId":"reels_collection_v1_instagram_profile__username__reels_collection_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9._]{1,30}$","title":"Username"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgCollectionResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/instagram/profile/{username}/reels/top":{"get":{"tags":["instagram"],"summary":"Top Reels","description":"Highest-ranked reels among those collected so far. Check `coverage` before calling it complete.","operationId":"top_reels_v1_instagram_profile__username__reels_top_get","security":[{"APIKeyHeader":[]},{"AgentBearer":[]}],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9._]{1,30}$","title":"Username"}},{"name":"metric","in":"query","required":false,"schema":{"enum":["play_count","like_count","comment_count"],"type":"string","default":"play_count","title":"Metric"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgTopReelsResponse"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/signup":{"post":{"tags":["accounts"],"summary":"Signup","operationId":"signup_v1_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailInput"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Signup V1 Auth Signup Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/signup/complete":{"post":{"tags":["accounts"],"summary":"Complete Signup","operationId":"complete_signup_v1_auth_signup_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupInput"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Complete Signup V1 Auth Signup Complete Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/login":{"post":{"tags":["accounts"],"summary":"Login","operationId":"login_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Login V1 Auth Login Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/forgot-password":{"post":{"tags":["accounts"],"summary":"Forgot Password","operationId":"forgot_password_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailInput"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Forgot Password V1 Auth Forgot Password Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/reset-password":{"post":{"tags":["accounts"],"summary":"Reset Password","operationId":"reset_password_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Reset Password V1 Auth Reset Password Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/change-password":{"post":{"tags":["accounts"],"summary":"Change Password","operationId":"change_password_v1_auth_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Change Password V1 Auth Change Password Post"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/logout":{"post":{"tags":["accounts"],"summary":"Logout","operationId":"logout_v1_auth_logout_post","responses":{"204":{"description":"Successful Response"},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/auth/session":{"get":{"tags":["accounts"],"summary":"Session","operationId":"session_v1_auth_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Session V1 Auth Session Get"}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/oauth/device_authorization":{"post":{"tags":["Agent authorization"],"summary":"Device Authorization","operationId":"device_authorization_oauth_device_authorization_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"OAuth protocol error (RFC 8628/7009).","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"error_description":{"type":"string"}}}}}}}}},"/oauth/token":{"post":{"tags":["Agent authorization"],"summary":"Token","operationId":"token_oauth_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"OAuth protocol error (RFC 8628/7009).","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"error_description":{"type":"string"}}}}}}}}},"/oauth/revoke":{"post":{"tags":["Agent authorization"],"summary":"Revoke","operationId":"revoke_oauth_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"OAuth protocol error (RFC 8628/7009).","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"error_description":{"type":"string"}}}}}}}}},"/oauth/connection":{"get":{"tags":["Agent authorization"],"summary":"Connection","operationId":"connection_oauth_connection_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"OAuth protocol error (RFC 8628/7009).","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"error_description":{"type":"string"}}}}}}}}},"/v1/portal/agents":{"get":{"tags":["Agent connections"],"summary":"Connections","operationId":"connections_v1_portal_agents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/agents/review":{"post":{"tags":["Agent connections"],"summary":"Review","operationId":"review_v1_portal_agents_review_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/agents/consent":{"post":{"tags":["Agent connections"],"summary":"Consent","operationId":"consent_v1_portal_agents_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/portal/agents/{connection_id}/disconnect":{"post":{"tags":["Agent connections"],"summary":"Disconnect","operationId":"disconnect_v1_portal_agents__connection_id__disconnect_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Request validation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ApprovalInput":{"properties":{"rate_limit":{"type":"integer","maximum":2147483647.0,"exclusiveMinimum":0.0,"title":"Rate Limit"},"monthly_cap":{"type":"integer","maximum":2147483647.0,"exclusiveMinimum":0.0,"title":"Monthly Cap"}},"additionalProperties":false,"type":"object","required":["rate_limit","monthly_cap"],"title":"ApprovalInput"},"ChangePasswordInput":{"properties":{"current_password":{"type":"string","maxLength":256,"minLength":1,"title":"Current Password"},"password":{"type":"string","maxLength":256,"minLength":1,"title":"Password"}},"additionalProperties":false,"type":"object","required":["current_password","password"],"title":"ChangePasswordInput"},"Comment":{"properties":{"id":{"type":"string","title":"Id"},"fullname":{"type":"string","title":"Fullname"},"post_fullname":{"type":"string","title":"Post Fullname"},"parent_fullname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Fullname"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"depth":{"type":"integer","minimum":0.0,"title":"Depth","default":0},"stickied":{"type":"boolean","title":"Stickied","default":false},"distinguished":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Distinguished"},"replies":{"items":{"$ref":"#/components/schemas/Comment"},"type":"array","title":"Replies"}},"additionalProperties":false,"type":"object","required":["id","fullname","post_fullname"],"title":"Comment"},"CommentsResponse":{"properties":{"post_fullname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Post Fullname"},"items":{"items":{"$ref":"#/components/schemas/Comment"},"type":"array","title":"Items"},"page":{"$ref":"#/components/schemas/PageInfo"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["items","page","meta"],"title":"CommentsResponse"},"ComponentHealth":{"properties":{"status":{"type":"string","enum":["ok","degraded","unavailable","unknown"],"title":"Status"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"additionalProperties":false,"type":"object","required":["status"],"title":"ComponentHealth"},"ConsentInput":{"properties":{"user_code":{"type":"string","maxLength":16,"minLength":8,"title":"User Code"},"decision":{"type":"string","enum":["approve","deny"],"title":"Decision"},"label":{"type":"string","maxLength":128,"minLength":1,"title":"Label","default":"Subsignal skill"}},"additionalProperties":false,"type":"object","required":["user_code","decision"],"title":"ConsentInput"},"EmailInput":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"}},"additionalProperties":false,"type":"object","required":["email"],"title":"EmailInput"},"ErrorDetail":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"request_id":{"type":"string","title":"Request Id"},"retryable":{"type":"boolean","title":"Retryable","default":false},"details":{"additionalProperties":true,"type":"object","title":"Details"}},"additionalProperties":false,"type":"object","required":["code","message","request_id"],"title":"ErrorDetail"},"ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}},"additionalProperties":false,"type":"object","required":["error"],"title":"ErrorResponse"},"FeedResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Post"},"type":"array","title":"Items"},"page":{"$ref":"#/components/schemas/PageInfo"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["items","page","meta"],"title":"FeedResponse"},"FlairTemplate":{"properties":{"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text"},"text_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Color"},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color"},"mod_only":{"type":"boolean","title":"Mod Only","default":false},"editable":{"type":"boolean","title":"Editable","default":false}},"additionalProperties":false,"type":"object","required":["id","text"],"title":"FlairTemplate"},"FlairsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FlairTemplate"},"type":"array","title":"Items"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["items","meta"],"title":"FlairsResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","enum":["ok","degraded"],"title":"Status","default":"ok"},"version":{"type":"string","title":"Version"},"components":{"additionalProperties":{"$ref":"#/components/schemas/ComponentHealth"},"type":"object","title":"Components"}},"additionalProperties":false,"type":"object","required":["version"],"title":"HealthResponse"},"IgAccountRef":{"properties":{"id":{"type":"string","title":"Id"},"username":{"type":"string","title":"Username"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"is_private":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Private"},"is_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Verified"}},"additionalProperties":false,"type":"object","required":["id","username"],"title":"IgAccountRef"},"IgCarouselItem":{"properties":{"media_type":{"anyOf":[{"type":"string","enum":["image","video","carousel"]},{"type":"null"}],"title":"Media Type"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"image_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Image Width"},"image_height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Image Height"},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url"},"video_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Video Width"},"video_height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Video Height"}},"additionalProperties":false,"type":"object","title":"IgCarouselItem","description":"One image or video inside a carousel post. Same link rules as IgMedia."},"IgCollectionResponse":{"properties":{"collection":{"$ref":"#/components/schemas/IgCollectionStatus"},"meta":{"$ref":"#/components/schemas/IgMeta"}},"additionalProperties":false,"type":"object","required":["collection","meta"],"title":"IgCollectionResponse"},"IgCollectionStatus":{"properties":{"status":{"type":"string","enum":["running","complete","partial"],"title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"pages_fetched":{"type":"integer","title":"Pages Fetched"},"posts_observed":{"type":"integer","title":"Posts Observed"},"reels_observed":{"type":"integer","title":"Reels Observed"},"reported_post_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reported Post Count"},"exhausted":{"type":"boolean","title":"Exhausted","default":false},"source":{"type":"string","const":"profile_feed","title":"Source","default":"profile_feed"}},"additionalProperties":false,"type":"object","required":["status","started_at","updated_at","pages_fetched","posts_observed","reels_observed"],"title":"IgCollectionStatus"},"IgCoverage":{"properties":{"reels_observed":{"type":"integer","title":"Reels Observed"},"posts_observed":{"type":"integer","title":"Posts Observed"},"reported_post_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reported Post Count"},"complete":{"type":"boolean","title":"Complete"},"missing_metric":{"type":"integer","title":"Missing Metric"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"additionalProperties":false,"type":"object","required":["reels_observed","posts_observed","complete","missing_metric","notes"],"title":"IgCoverage"},"IgFollowingResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/IgAccountRef"},"type":"array","title":"Items"},"reported_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reported Count"},"page":{"$ref":"#/components/schemas/IgPageInfo"},"meta":{"$ref":"#/components/schemas/IgMeta"}},"additionalProperties":false,"type":"object","required":["items","page","meta"],"title":"IgFollowingResponse"},"IgMedia":{"properties":{"id":{"type":"string","title":"Id"},"shortcode":{"type":"string","title":"Shortcode"},"permalink":{"type":"string","title":"Permalink"},"product_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Type"},"taken_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Taken At"},"like_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Like Count"},"comment_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Comment Count"},"play_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Play Count"},"owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"},"owner_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Username"},"media_type":{"anyOf":[{"type":"string","enum":["image","video","carousel"]},{"type":"null"}],"title":"Media Type"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"image_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Image Width"},"image_height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Image Height"},"video_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Url"},"video_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Video Width"},"video_height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Video Height"},"video_url_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Video Url Expires At"},"carousel":{"anyOf":[{"items":{"$ref":"#/components/schemas/IgCarouselItem"},"type":"array"},{"type":"null"}],"title":"Carousel"}},"additionalProperties":false,"type":"object","required":["id","shortcode","permalink"],"title":"IgMedia","description":"Counters and file links are exactly what upstream returned; a missing one is None, never 0.\n\nThe links are Instagram's temporary signed CDN links. This API never fetches or stores the files."},"IgMediaPageResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/IgMedia"},"type":"array","title":"Items"},"page":{"$ref":"#/components/schemas/IgPageInfo"},"meta":{"$ref":"#/components/schemas/IgMeta"}},"additionalProperties":false,"type":"object","required":["items","page","meta"],"title":"IgMediaPageResponse"},"IgMediaResponse":{"properties":{"media":{"$ref":"#/components/schemas/IgMedia"},"meta":{"$ref":"#/components/schemas/IgMeta"}},"additionalProperties":false,"type":"object","required":["media","meta"],"title":"IgMediaResponse"},"IgMeta":{"properties":{"request_id":{"type":"string","title":"Request Id"},"cached":{"type":"boolean","title":"Cached","default":false},"source":{"type":"string","enum":["instagram_app_api","cache"],"title":"Source","default":"instagram_app_api"},"collected_at":{"type":"string","format":"date-time","title":"Collected At"}},"additionalProperties":false,"type":"object","required":["request_id"],"title":"IgMeta"},"IgPageInfo":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_next_page":{"type":"boolean","title":"Has Next Page","default":false},"source":{"type":"string","enum":["profile_feed","following_list"],"title":"Source"}},"additionalProperties":false,"type":"object","required":["source"],"title":"IgPageInfo","description":"``next_cursor`` can be present on a page that holds few or no items."},"IgProfile":{"properties":{"id":{"type":"string","title":"Id"},"username":{"type":"string","title":"Username"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"is_private":{"type":"boolean","title":"Is Private"},"is_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Verified"},"follower_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Follower Count"},"following_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Following Count"},"media_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Media Count"}},"additionalProperties":false,"type":"object","required":["id","username","is_private"],"title":"IgProfile"},"IgProfileResponse":{"properties":{"profile":{"$ref":"#/components/schemas/IgProfile"},"meta":{"$ref":"#/components/schemas/IgMeta"}},"additionalProperties":false,"type":"object","required":["profile","meta"],"title":"IgProfileResponse"},"IgTopReel":{"properties":{"id":{"type":"string","title":"Id"},"shortcode":{"type":"string","title":"Shortcode"},"permalink":{"type":"string","title":"Permalink"},"taken_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Taken At"},"play_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Play Count"},"like_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Like Count"},"comment_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Comment Count"}},"additionalProperties":false,"type":"object","required":["id","shortcode","permalink"],"title":"IgTopReel"},"IgTopReelsResponse":{"properties":{"metric":{"type":"string","enum":["play_count","like_count","comment_count"],"title":"Metric"},"items":{"items":{"$ref":"#/components/schemas/IgTopReel"},"type":"array","title":"Items"},"collection":{"$ref":"#/components/schemas/IgCollectionStatus"},"coverage":{"$ref":"#/components/schemas/IgCoverage"},"meta":{"$ref":"#/components/schemas/IgMeta"}},"additionalProperties":false,"type":"object","required":["metric","items","collection","coverage","meta"],"title":"IgTopReelsResponse"},"KarmaRequirements":{"properties":{"from_posts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"From Posts"},"from_comments":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"From Comments"}},"additionalProperties":false,"type":"object","title":"KarmaRequirements"},"KeyInput":{"properties":{"label":{"type":"string","maxLength":128,"minLength":1,"pattern":".*\\S.*","title":"Label"}},"additionalProperties":false,"type":"object","required":["label"],"title":"KeyInput"},"LoginInput":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email"},"password":{"type":"string","maxLength":256,"minLength":1,"title":"Password"},"return_to":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Return To"}},"additionalProperties":false,"type":"object","required":["email","password"],"title":"LoginInput"},"Media":{"properties":{"type":{"type":"string","enum":["image","video","gallery","link","unknown"],"title":"Type","default":"unknown"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"}},"additionalProperties":false,"type":"object","title":"Media"},"Moderator":{"properties":{"username":{"type":"string","title":"Username"},"permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permissions"},"since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},"additionalProperties":false,"type":"object","required":["username"],"title":"Moderator"},"ModeratorsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Moderator"},"type":"array","title":"Items"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["items","meta"],"title":"ModeratorsResponse"},"PageInfo":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_next_page":{"type":"boolean","title":"Has Next Page","default":false}},"additionalProperties":false,"type":"object","title":"PageInfo"},"PolicyInput":{"properties":{"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"},"rate_limit":{"type":"integer","maximum":2147483647.0,"exclusiveMinimum":0.0,"title":"Rate Limit"},"monthly_cap":{"type":"integer","maximum":2147483647.0,"exclusiveMinimum":0.0,"title":"Monthly Cap"}},"additionalProperties":false,"type":"object","required":["expected_revision","rate_limit","monthly_cap"],"title":"PolicyInput"},"Post":{"properties":{"id":{"type":"string","title":"Id"},"fullname":{"type":"string","title":"Fullname"},"title":{"type":"string","title":"Title"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"subreddit":{"type":"string","title":"Subreddit"},"permalink":{"type":"string","title":"Permalink"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"self_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Self Text"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"upvote_ratio":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Upvote Ratio"},"num_comments":{"type":"integer","title":"Num Comments","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"nsfw":{"type":"boolean","title":"Nsfw","default":false},"spoiler":{"type":"boolean","title":"Spoiler","default":false},"stickied":{"type":"boolean","title":"Stickied","default":false},"locked":{"type":"boolean","title":"Locked","default":false},"removed_by_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Removed By Category"},"flair_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flair Text"},"media":{"items":{"$ref":"#/components/schemas/Media"},"type":"array","title":"Media"}},"additionalProperties":false,"type":"object","required":["id","fullname","title","subreddit","permalink"],"title":"Post"},"PostResponse":{"properties":{"post":{"$ref":"#/components/schemas/Post"},"comments":{"anyOf":[{"items":{"$ref":"#/components/schemas/Comment"},"type":"array"},{"type":"null"}],"title":"Comments"},"comments_page":{"anyOf":[{"$ref":"#/components/schemas/PageInfo"},{"type":"null"}]},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["post","meta"],"title":"PostResponse"},"PostingRequirements":{"properties":{"flair_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Flair Required"},"title_blacklist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Title Blacklist"},"title_min_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Title Min Length"},"title_max_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Title Max Length"},"link_repost_age_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Link Repost Age Days"},"domain_whitelist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Domain Whitelist"},"domain_blacklist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Domain Blacklist"}},"additionalProperties":false,"type":"object","title":"PostingRequirements"},"ProfileInput":{"properties":{"display_name":{"type":"string","maxLength":128,"minLength":1,"pattern":".*\\S.*","title":"Display Name"}},"additionalProperties":false,"type":"object","required":["display_name"],"title":"ProfileInput"},"RelatedResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RelatedSubreddit"},"type":"array","title":"Items"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["items","meta"],"title":"RelatedResponse"},"RelatedSubreddit":{"properties":{"name":{"type":"string","title":"Name"},"subscribers":{"type":"integer","title":"Subscribers"},"nsfw":{"type":"boolean","title":"Nsfw","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["name","subscribers"],"title":"RelatedSubreddit"},"ResetInput":{"properties":{"token":{"type":"string","maxLength":128,"minLength":1,"title":"Token"},"password":{"type":"string","maxLength":256,"minLength":1,"title":"Password"}},"additionalProperties":false,"type":"object","required":["token","password"],"title":"ResetInput"},"ResponseMeta":{"properties":{"request_id":{"type":"string","title":"Request Id"},"cached":{"type":"boolean","title":"Cached","default":false},"source":{"type":"string","enum":["mock","reddit_graphql","cache"],"title":"Source","default":"mock"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"}},"additionalProperties":false,"type":"object","required":["request_id"],"title":"ResponseMeta"},"ReviewInput":{"properties":{"user_code":{"type":"string","maxLength":16,"minLength":8,"title":"User Code"}},"additionalProperties":false,"type":"object","required":["user_code"],"title":"ReviewInput"},"RevisionInput":{"properties":{"expected_revision":{"type":"integer","minimum":0.0,"title":"Expected Revision"}},"additionalProperties":false,"type":"object","required":["expected_revision"],"title":"RevisionInput"},"SearchResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SearchResult"},"type":"array","title":"Items"},"page":{"$ref":"#/components/schemas/PageInfo"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["items","page","meta"],"title":"SearchResponse"},"SearchResult":{"properties":{"type":{"type":"string","enum":["post","subreddit","user","comment"],"title":"Type"},"post":{"anyOf":[{"$ref":"#/components/schemas/Post"},{"type":"null"}]},"comment":{"anyOf":[{"$ref":"#/components/schemas/Comment"},{"type":"null"}]},"user":{"anyOf":[{"$ref":"#/components/schemas/UserProfile"},{"type":"null"}]},"subreddit":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Subreddit"}},"additionalProperties":false,"type":"object","required":["type"],"title":"SearchResult"},"SignupInput":{"properties":{"token":{"type":"string","maxLength":128,"minLength":1,"title":"Token"},"display_name":{"type":"string","maxLength":128,"minLength":1,"pattern":".*\\S.*","title":"Display Name"},"password":{"type":"string","maxLength":256,"minLength":1,"title":"Password"}},"additionalProperties":false,"type":"object","required":["token","display_name","password"],"title":"SignupInput"},"SubredditInfo":{"properties":{"name":{"type":"string","title":"Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description_md":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Md"},"public_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Description"},"subscribers":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subscribers"},"weekly_actives":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Weekly Actives"},"nsfw":{"type":"boolean","title":"Nsfw","default":false},"quarantined":{"type":"boolean","title":"Quarantined","default":false},"allowed_post_types":{"items":{"type":"string"},"type":"array","title":"Allowed Post Types"},"rules":{"items":{"$ref":"#/components/schemas/SubredditRule"},"type":"array","title":"Rules"},"posting_requirements":{"anyOf":[{"$ref":"#/components/schemas/PostingRequirements"},{"type":"null"}]},"karma_requirements":{"anyOf":[{"$ref":"#/components/schemas/KarmaRequirements"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"prefixed_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefixed Name"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"is_posting_restricted":{"type":"boolean","title":"Is Posting Restricted","default":false},"is_commenting_restricted":{"type":"boolean","title":"Is Commenting Restricted","default":false},"allowed_media_in_comments":{"items":{"type":"string"},"type":"array","title":"Allowed Media In Comments"},"is_thumbnails_enabled":{"type":"boolean","title":"Is Thumbnails Enabled","default":false},"detected_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Language"},"is_crosspost_source":{"type":"boolean","title":"Is Crosspost Source","default":false},"is_crosspost_destination":{"type":"boolean","title":"Is Crosspost Destination","default":false}},"additionalProperties":false,"type":"object","required":["name"],"title":"SubredditInfo"},"SubredditInfoResponse":{"properties":{"info":{"$ref":"#/components/schemas/SubredditInfo"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["info","meta"],"title":"SubredditInfoResponse"},"SubredditRule":{"properties":{"priority":{"type":"integer","title":"Priority","default":0},"short_name":{"type":"string","title":"Short Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","required":["short_name"],"title":"SubredditRule"},"UsageView":{"properties":{"key_id":{"type":"string","title":"Key Id"},"period":{"type":"string","title":"Period"},"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"requests":{"type":"integer","title":"Requests","default":0},"billable_requests":{"type":"integer","title":"Billable Requests","default":0},"completed_units_1000":{"type":"integer","title":"Completed Units 1000","default":0},"projected_units_1000":{"type":"integer","title":"Projected Units 1000","default":0},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["key_id","period","period_start","period_end","meta"],"title":"UsageView"},"UserProfile":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"username":{"type":"string","title":"Username"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"comment_karma":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Comment Karma"},"post_karma":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Post Karma"},"total_karma":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Karma"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Url"},"banner_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banner Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verified"},"moderator":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Moderator"},"suspended":{"type":"boolean","title":"Suspended","default":false}},"additionalProperties":false,"type":"object","required":["username"],"title":"UserProfile"},"UserResponse":{"properties":{"user":{"$ref":"#/components/schemas/UserProfile"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["user","meta"],"title":"UserResponse"},"UsersBatchResponse":{"properties":{"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/UserProfile"},{"type":"null"}]},"type":"array","title":"Items"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["items","meta"],"title":"UsersBatchResponse"},"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"},"Widget":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"links":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Links"},"images":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Images"}},"additionalProperties":false,"type":"object","required":["id","type"],"title":"Widget"},"WidgetsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Widget"},"type":"array","title":"Items"},"meta":{"$ref":"#/components/schemas/ResponseMeta"}},"additionalProperties":false,"type":"object","required":["items","meta"],"title":"WidgetsResponse"}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"},"AgentBearer":{"type":"http","scheme":"bearer","description":"First-party Subsignal skill connection; reddit:read, plus instagram:read when approved."}}}}