Repository navigation
Expand file tree
/
Copy pathopenapi.json
More file actions
1 lines (1 loc) · 377 KB
/
Copy pathopenapi.json
File metadata and controls
1 lines (1 loc) · 377 KB
1
{"openapi":"3.1.0","info":{"title":"nhentai API","description":"nhentai.net REST API\n\nGenerate an API key in your [account settings](https://nhentai.net/user/settings#apikeys), then pass it as `Authorization: Key YOUR_API_KEY`.\n\nPlease set a descriptive `User-Agent` header: `AppName/version (contact or project URL)`. This helps us identify traffic and reach out if needed.\n\nQuestions or need higher limits? [support@nhentai.net](mailto:support@nhentai.net)\n\n[Changelog](/api/v2/changelog)","version":"2.0.0+71a8966"},"paths":{"/api/v2":{"get":{"summary":"Api Root","description":"API root.\n\n---\n\n**Auth:** Public (no authentication required)","operationId":"api_root_api_v2_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRootResponse"}}}}}}},"/api/v2/pow":{"get":{"summary":"Get Pow Challenge","description":"Get a new proof of work challenge. Optionally specify action for per-action difficulty.\n\n---\n\n**Auth:** Public (no authentication required)","operationId":"get_pow_challenge_api_v2_pow_get","parameters":[{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoWChallengeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/cdn":{"get":{"tags":["cdn"],"summary":"Get Cdn Config","description":"Get CDN server configuration for media URLs.\n\n---\n\n**Auth:** Public (no authentication required)","operationId":"get_cdn_config_api_v2_cdn_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CdnConfigResponse"}}}}}}},"/api/v2/config":{"get":{"summary":"Get Config","description":"Get app config: CDN servers and current announcement.\n\n---\n\n**Auth:** Public (no authentication required)","operationId":"get_config_api_v2_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigResponse"}}}}}}},"/api/v2/captcha":{"get":{"summary":"Get Captcha Info","description":"Get CAPTCHA provider info for the frontend widget.\n\n---\n\n**Auth:** Public (no authentication required)","operationId":"get_captcha_info_api_v2_captcha_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptchaInfoResponse"}}}}}}},"/api/v2/galleries":{"get":{"tags":["galleries"],"summary":"Get All Galleries","description":"Get paginated galleries ordered by newest first.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Rate limits:**\n\nWhen `auth=anon`:\n - 15/1min per IP\n\nWhen `auth=user|key`:\n - 30/1min per IP","operationId":"get_all_galleries_api_v2_galleries_get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":25,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_GalleryListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/galleries/tagged":{"get":{"tags":["galleries"],"summary":"Get Galleries By Tag","description":"Get galleries with a specific tag.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Rate limits:**\n\nWhen `auth=anon`:\n - 15/1min per IP\n\nWhen `auth=user|key`:\n - 30/1min per IP","operationId":"get_galleries_by_tag_api_v2_galleries_tagged_get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"tag_id","in":"query","required":true,"schema":{"type":"integer","description":"Tag ID to filter by","title":"Tag Id"},"description":"Tag ID to filter by"},{"name":"sort","in":"query","required":false,"schema":{"enum":["date","popular","popular-today","popular-week","popular-month"],"type":"string","default":"date","title":"Sort"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":25,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_GalleryListItem_"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/galleries/popular":{"get":{"tags":["galleries"],"summary":"Get Popular Galleries","description":"Get today's popular galleries.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Rate limits:**\n- 8/1min per IP","operationId":"get_popular_galleries_api_v2_galleries_popular_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/GalleryListItem"},"type":"array","title":"Response Get Popular Galleries Api V2 Galleries Popular Get"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]},{"API Key":[]}]}},"/api/v2/galleries/random":{"get":{"tags":["galleries"],"summary":"Get Random Gallery","description":"Get a random gallery ID.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Rate limits:**\n\nWhen `auth=anon`:\n - 20/1min per IP\n\nWhen `auth=user|key`:\n - 30/1min per IP","operationId":"get_random_gallery_api_v2_galleries_random_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Random Gallery Api V2 Galleries Random Get"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]},{"API Key":[]}]}},"/api/v2/galleries/{gallery_id}":{"get":{"tags":["galleries"],"summary":"Get Gallery","description":"Get a single gallery with full details and optional includes.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Rate limits:**\n\nWhen `auth=anon`:\n - 20/1min per IP\n\nWhen `auth=user|key`:\n - 45/1min per IP","operationId":"get_gallery_api_v2_galleries__gallery_id__get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}},{"name":"include","in":"query","required":false,"schema":{"type":"string","description":"Comma-separated: comments,related,favorite,suggestions","default":"","title":"Include"},"description":"Comma-separated: comments,related,favorite,suggestions"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GalleryDetailResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/galleries/{gallery_id}/related":{"get":{"tags":["galleries"],"summary":"Get Related Galleries","description":"Get galleries similar to the specified gallery.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Rate limits:**\n\nWhen `auth=anon`:\n - 12/1min per IP\n\nWhen `auth=user|key`:\n - 30/1min per IP","operationId":"get_related_galleries_api_v2_galleries__gallery_id__related_get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelatedGalleriesResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/galleries/{gallery_id}/favorite":{"get":{"tags":["galleries"],"summary":"Check Favorite","description":"Check if a gallery is in the user's favorites.\n\n---\n\n**Auth:** User Token or API Key\n\n**Rate limits:**\n- 15/1min per user\n- 15/1min per API key owner","operationId":"check_favorite_api_v2_galleries__gallery_id__favorite_get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["galleries"],"summary":"Add To Favorites","description":"Add a gallery to the current user's favorites.\n\n---\n\n**Auth:** User Token or API Key\n\n**Feature Flag:** `allow_favorites` must be enabled\n\n**Rate limits:**\n- 15/1min per user\n- 15/1min per API key owner\n- 15/1min per IP + user\n- 15/1min per IP + API key owner","operationId":"add_to_favorites_api_v2_galleries__gallery_id__favorite_post","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["galleries"],"summary":"Remove From Favorites","description":"Remove a gallery from the current user's favorites.\n\n---\n\n**Auth:** User Token or API Key\n\n**Feature Flag:** `allow_favorites` must be enabled\n\n**Rate limits:**\n- 15/1min per user\n- 15/1min per API key owner\n- 15/1min per IP + user\n- 15/1min per IP + API key owner","operationId":"remove_from_favorites_api_v2_galleries__gallery_id__favorite_delete","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoriteResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/galleries/{gallery_id}/edit":{"post":{"tags":["galleries"],"summary":"Submit Gallery Edit","description":"Retired. Tag changes go through the suggestion flow now.\n\n---\n\n**Auth:** Staff Token required","operationId":"submit_gallery_edit_api_v2_galleries__gallery_id__edit_post","security":[{"User Token":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitEditResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/galleries/{gallery_id}/suggestions":{"get":{"tags":["GTS"],"summary":"List Gallery Suggestions","description":"List current tag-change proposals on a gallery.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Feature Flag:** `allow_gts` must be enabled\n\n**Rate limits:**\n- 60/1min per IP","operationId":"list_gallery_suggestions_api_v2_galleries__gallery_id__suggestions_get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}},{"name":"tier","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|trending|active|declined|hidden|mine|history)$","default":"all","title":"Tier"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["GTS"],"summary":"Create Suggestion","description":"Propose adding or removing a tag on a gallery.\n\nIf a matching proposal already exists, your call adds your vote to it\ninstead of creating a duplicate.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_gts` must be enabled\n\n**Protection:** Proof of Work required (`GET /api/v2/pow?action=gts_create`)\n\n**Protection:** CAPTCHA required (`GET /api/v2/captcha` for provider info)\n\n**Rate limits:**\n- 10/1h per user\n- 30/1h per IP","operationId":"create_suggestion_api_v2_galleries__gallery_id__suggestions_post","security":[{"User Token":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_create_suggestion_api_v2_galleries__gallery_id__suggestions_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptchaErrorResponse"}}},"description":"Forbidden"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/gts/backlog":{"get":{"tags":["GTS"],"summary":"List Gts Backlog","description":"List pending tag-change suggestions across galleries.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Feature Flag:** `allow_gts` must be enabled\n\n**Rate limits:**\n- 60/1min per IP","operationId":"list_gts_backlog_api_v2_gts_backlog_get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Per Page"}},{"name":"tag_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}],"title":"Tag Id"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(add|remove)$"},{"type":"null"}],"title":"Action"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","pattern":"^(starvation|voters|score|gallery_age|created_at)$","default":"starvation","title":"Sort By"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"asc","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BacklogListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/gts/new-tags":{"get":{"tags":["GTS"],"summary":"List New Tag Index","description":"List the most recently community-minted tags.\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Feature Flag:** `allow_gts` must be enabled\n\n**Rate limits:**\n- 60/1min per IP","operationId":"list_new_tag_index_api_v2_gts_new_tags_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewTagIndexResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/galleries/{gallery_id}/suggestions/{suggestion_id}/vote":{"post":{"tags":["GTS"],"summary":"Vote On Suggestion","description":"Up/down vote on a suggestion. Pass vote=0 to clear your vote.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_gts` must be enabled\n\n**Protection:** Proof of Work required (`GET /api/v2/pow?action=gts_vote`)\n\n**Rate limits:**\n- 80/1h per user\n- 240/1h per IP","operationId":"vote_on_suggestion_api_v2_galleries__gallery_id__suggestions__suggestion_id__vote_post","security":[{"User Token":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_vote_on_suggestion_api_v2_galleries__gallery_id__suggestions__suggestion_id__vote_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/galleries/{gallery_id}/suggestions/{suggestion_id}":{"delete":{"tags":["GTS"],"summary":"Withdraw Suggestion","description":"Proposer withdraws their own pending suggestion.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_gts` must be enabled\n\n**Rate limits:**\n- 20/1h per user","operationId":"withdraw_suggestion_api_v2_galleries__gallery_id__suggestions__suggestion_id__delete","security":[{"User Token":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Withdraw Suggestion Api V2 Galleries Gallery Id Suggestions Suggestion Id Delete"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/gts":{"get":{"tags":["GTS"],"summary":"List Pending Suggestions","description":"Mod queue: proposals awaiting staff review, or recently resolved.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 60/5min per user\n- 120/5min per IP","operationId":"list_pending_suggestions_api_v2_moderation_gts_get","security":[{"User Token":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","pattern":"^(pending|accepted|rejected)$","default":"pending","title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"title":"Q"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(score|voters|newest|oldest)$","default":"score","title":"Sort"}},{"name":"tag_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(tag|artist|parody|character|group|language|category)$"},{"type":"null"}],"title":"Tag Type"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":25,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/gts/{suggestion_id}/accept":{"post":{"tags":["GTS"],"summary":"Accept Suggestion","description":"Apply a pending suggestion to the gallery and mark accepted.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user\n- 60/15min per IP","operationId":"accept_suggestion_api_v2_moderation_gts__suggestion_id__accept_post","security":[{"User Token":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveSuggestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accept Suggestion Api V2 Moderation Gts Suggestion Id Accept Post"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/gts/{suggestion_id}/reject":{"post":{"tags":["GTS"],"summary":"Reject Suggestion","description":"Reject a pending suggestion without applying it.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user\n- 60/15min per IP","operationId":"reject_suggestion_api_v2_moderation_gts__suggestion_id__reject_post","security":[{"User Token":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveSuggestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reject Suggestion Api V2 Moderation Gts Suggestion Id Reject Post"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/gts/{suggestion_id}/revert":{"post":{"tags":["GTS"],"summary":"Revert Suggestion","description":"Undo the tag mutation of a previously accepted suggestion.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user\n- 60/15min per IP","operationId":"revert_suggestion_api_v2_moderation_gts__suggestion_id__revert_post","security":[{"User Token":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revert Suggestion Api V2 Moderation Gts Suggestion Id Revert Post"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/tags":{"post":{"tags":["GTS"],"summary":"Moderation Create Tag","description":"Create a new tag. Slug is derived from `name`.\n\n---\n\n**Auth:** Staff Token required","operationId":"moderation_create_tag_api_v2_moderation_tags_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTagRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedTagResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"User Token":[]}]}},"/api/v2/galleries/{gallery_id}/download":{"post":{"tags":["galleries"],"summary":"Get a download URL for a gallery","description":"Returns a short-lived URL for the gallery as a zip, cbz, or torrent\nfile. Fetch `url` before `expires_at` (unix timestamp).\n\n---\n\n**Auth:** User Token or API Key\n\n**Feature Flag:** `allow_downloads` must be enabled\n\n**Rate limits:**\n\nWhen `format=torrent`:\n - 5/1min per IP\n - 10/5min per user\n - 5/1min per API key owner\n\nWhen `format=zip|cbz (default)`:\n - 10/5min per IP\n - 7/5min per user\n - 10/5min per API key owner","operationId":"issue_download_url_api_v2_galleries__gallery_id__download_post","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}},{"name":"format","in":"query","required":false,"schema":{"enum":["zip","cbz","torrent"],"type":"string","default":"zip","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/tags/ids":{"get":{"tags":["tags"],"summary":"Get Tags By Ids","description":"Look up multiple tags by ID. Max 100 per request.\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Rate limits:**\n- 15/1min per IP","operationId":"get_tags_by_ids_api_v2_tags_ids_get","parameters":[{"name":"ids","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated tag IDs","title":"Ids"},"description":"Comma-separated tag IDs"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TagResponse"},"title":"Response Get Tags By Ids Api V2 Tags Ids Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/tags/search":{"post":{"tags":["tags"],"summary":"Search Tags","description":"Search tags by name prefix. Omit `type` to search across all tag types.\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Rate limits:**\n- 30/1min per IP","operationId":"search_tags_api_v2_tags_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutocompleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TagResponse"},"type":"array","title":"Response Search Tags Api V2 Tags Search Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/tags/{tag_type}":{"get":{"tags":["tags"],"summary":"Get Tags By Type","description":"Get tags of a specific type with pagination.\n\nSupports both page-based and cursor-based pagination.\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Rate limits:**\n\nWhen `auth=anon`:\n - 15/1min per IP\n\nWhen `auth=user|key`:\n - 30/1min per IP","operationId":"get_tags_by_type_api_v2_tags__tag_type__get","parameters":[{"name":"tag_type","in":"path","required":true,"schema":{"type":"string","title":"Tag Type"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["name","popular"],"type":"string","default":"popular","title":"Sort"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":25,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagPaginatedResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/tags/{tag_type}/{slug}":{"get":{"tags":["tags"],"summary":"Get Tag By Slug","description":"Get a specific tag by type and slug.\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Rate limits:**\n\nWhen `auth=anon`:\n - 15/1min per IP\n\nWhen `auth=user|key`:\n - 30/1min per IP","operationId":"get_tag_by_slug_api_v2_tags__tag_type___slug__get","parameters":[{"name":"tag_type","in":"path","required":true,"schema":{"type":"string","title":"Tag Type"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/taxonomy":{"get":{"tags":["taxonomy"],"summary":"List Taxonomy Suggestions","description":"List pending tag suggestions.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Rate limits:**\n- 120/1min per IP","operationId":"list_taxonomy_suggestions_api_v2_taxonomy_get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"tier","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|trending|active|declined|mine)$","default":"all","title":"Tier"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"title":"Q"}},{"name":"target_tag_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}],"title":"Target Tag Id"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","pattern":"^(score|votes|comment_count|last_comment_at|created_at)$","description":"Field to sort by. score (sum of votes), votes (unique voter count), comment_count, last_comment_at, created_at.","default":"score","title":"Sort By"},"description":"Field to sort by. score (sum of votes), votes (unique voter count), comment_count, last_comment_at, created_at."},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","description":"Sort direction. Pairs with sort_by.","default":"desc","title":"Sort"},"description":"Sort direction. Pairs with sort_by."},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated subset of create,rename,merge,describe. Defaults to all.","title":"Action"},"description":"Comma-separated subset of create,rename,merge,describe. Defaults to all."},{"name":"discussion","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(with|without)$"},{"type":"null"}],"description":"Filter by comment presence: 'with' = has at least one comment, 'without' = none. Omit for any.","title":"Discussion"},"description":"Filter by comment presence: 'with' = has at least one comment, 'without' = none. Omit for any."},{"name":"edited","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(yes|no)$"},{"type":"null"}],"description":"Filter by edit status: 'yes' = edited, 'no' = never edited. Omit for any.","title":"Edited"},"description":"Filter by edit status: 'yes' = edited, 'no' = never edited. Omit for any."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomySuggestionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["taxonomy"],"summary":"Create Taxonomy Suggestion","description":"Submit a tag suggestion.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Protection:** Proof of Work required (`GET /api/v2/pow?action=taxonomy_create`)\n\n**Protection:** CAPTCHA required (`GET /api/v2/captcha` for provider info)\n\n**Rate limits:**\n- 4/4h per user\n- 12/4h per IP","operationId":"create_taxonomy_suggestion_api_v2_taxonomy_post","security":[{"User Token":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_create_taxonomy_suggestion_api_v2_taxonomy_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomySuggestionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptchaErrorResponse"}}},"description":"Forbidden"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/taxonomy/stats":{"get":{"tags":["taxonomy"],"summary":"Get Taxonomy Suggestion Stats","description":"Taxonomy activity summary: pending count + recently-accepted suggestions.\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Rate limits:**\n- 30/1min per IP","operationId":"get_taxonomy_suggestion_stats_api_v2_taxonomy_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomySuggestionStats"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/taxonomy/resolved":{"get":{"tags":["taxonomy"],"summary":"List Resolved Taxonomy Suggestions","description":"List resolved tag suggestions.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Rate limits:**\n- 90/1min per IP","operationId":"list_resolved_taxonomy_suggestions_api_v2_taxonomy_resolved_get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|accepted|rejected)$","default":"all","title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"title":"Q"}},{"name":"discussion","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(with|without)$"},{"type":"null"}],"title":"Discussion"}},{"name":"edited","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(yes|no)$"},{"type":"null"}],"title":"Edited"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated subset of create,rename,merge,describe.","title":"Action"},"description":"Comma-separated subset of create,rename,merge,describe."},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","pattern":"^(resolved_at|score|votes|comment_count|last_comment_at|created_at)$","description":"Field to sort by. resolved_at (default), score, votes, comment_count, last_comment_at, created_at.","default":"resolved_at","title":"Sort By"},"description":"Field to sort by. resolved_at (default), score, votes, comment_count, last_comment_at, created_at."},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","description":"Sort direction. Pairs with sort_by.","default":"desc","title":"Sort"},"description":"Sort direction. Pairs with sort_by."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":25,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomySuggestionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/taxonomy/{suggestion_id}":{"get":{"tags":["taxonomy"],"summary":"Get Taxonomy Suggestion","description":"Fetch a tag suggestion with its latest comment preview.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Rate limits:**\n- 120/1min per IP","operationId":"get_taxonomy_suggestion_api_v2_taxonomy__suggestion_id__get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomySuggestionResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["taxonomy"],"summary":"Remove Taxonomy Suggestion","description":"Delete your own pending tag suggestion.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Rate limits:**\n- 10/1h per user\n- 20/1h per IP","operationId":"remove_taxonomy_suggestion_api_v2_taxonomy__suggestion_id__delete","security":[{"User Token":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Taxonomy Suggestion Api V2 Taxonomy Suggestion Id Delete"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["taxonomy"],"summary":"Edit Taxonomy Suggestion","description":"Edit a pending tag suggestion.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Rate limits:**\n- 20/1h per user\n- 40/1h per IP","operationId":"edit_taxonomy_suggestion_api_v2_taxonomy__suggestion_id__patch","security":[{"User Token":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_edit_taxonomy_suggestion_api_v2_taxonomy__suggestion_id__patch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomySuggestionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/taxonomy/{suggestion_id}/comments":{"get":{"tags":["taxonomy"],"summary":"List Taxonomy Comments","description":"List comments on a tag suggestion.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Rate limits:**\n- 120/1min per IP","operationId":"list_taxonomy_comments_api_v2_taxonomy__suggestion_id__comments_get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyCommentListResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["taxonomy"],"summary":"Create Taxonomy Comment","description":"Post a comment on a tag suggestion.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Protection:** Proof of Work required (`GET /api/v2/pow?action=taxonomy_comment`)\n\n**Protection:** CAPTCHA required (`GET /api/v2/captcha` for provider info)\n\n**Rate limits:**\n- 5/15min per user\n- 5/15min per IP + user\n- 10/15min per IP","operationId":"create_taxonomy_comment_api_v2_taxonomy__suggestion_id__comments_post","security":[{"User Token":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_create_taxonomy_comment_api_v2_taxonomy__suggestion_id__comments_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyCommentResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptchaErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/taxonomy/{suggestion_id}/comments/{comment_id}":{"delete":{"tags":["taxonomy"],"summary":"Delete Taxonomy Comment","description":"Delete a comment. Authors can delete their own; moderators can delete any.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Rate limits:**\n- 30/15min per user\n- 60/15min per IP","operationId":"delete_taxonomy_comment_api_v2_taxonomy__suggestion_id__comments__comment_id__delete","security":[{"User Token":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Taxonomy Comment Api V2 Taxonomy Suggestion Id Comments Comment Id Delete"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/taxonomy/{suggestion_id}/vote":{"post":{"tags":["taxonomy"],"summary":"Vote On Taxonomy Suggestion","description":"Vote on a tag suggestion. Pass vote=0 to clear.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Protection:** Proof of Work required (`GET /api/v2/pow?action=taxonomy_vote`)\n\n**Rate limits:**\n- 30/1h per user\n- 60/1h per IP","operationId":"vote_on_taxonomy_suggestion_api_v2_taxonomy__suggestion_id__vote_post","security":[{"User Token":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_vote_on_taxonomy_suggestion_api_v2_taxonomy__suggestion_id__vote_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomySuggestionResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/taxonomy/{suggestion_id}/edits":{"get":{"tags":["taxonomy"],"summary":"List Taxonomy Edits","description":"List a suggestion's edit history.\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Rate limits:**\n- 120/1min per IP","operationId":"list_taxonomy_edits_api_v2_taxonomy__suggestion_id__edits_get","parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomySuggestionEditListResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/taxonomy/{suggestion_id}/accept":{"post":{"tags":["taxonomy"],"summary":"Accept Taxonomy Suggestion","description":"Accept a tag suggestion.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user\n- 60/15min per IP","operationId":"accept_taxonomy_suggestion_api_v2_moderation_taxonomy__suggestion_id__accept_post","security":[{"User Token":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveTaxonomySuggestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Accept Taxonomy Suggestion Api V2 Moderation Taxonomy Suggestion Id Accept Post"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/taxonomy/{suggestion_id}":{"delete":{"tags":["taxonomy"],"summary":"Delete Taxonomy Suggestion","description":"Permanently remove a tag suggestion. Reserved for spam and abuse.\n\n---\n\n**Auth:** Superuser Token required\n\n**Feature Flag:** `allow_taxonomy` must be enabled\n\n**Rate limits:**\n- 30/15min per user\n- 60/15min per IP","operationId":"delete_taxonomy_suggestion_api_v2_moderation_taxonomy__suggestion_id__delete","security":[{"User Token":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Taxonomy Suggestion Api V2 Moderation Taxonomy Suggestion Id Delete"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/taxonomy/{suggestion_id}/reject":{"post":{"tags":["taxonomy"],"summary":"Reject Taxonomy Suggestion","description":"Reject a tag suggestion.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user\n- 60/15min per IP","operationId":"reject_taxonomy_suggestion_api_v2_moderation_taxonomy__suggestion_id__reject_post","security":[{"User Token":[]}],"parameters":[{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveTaxonomySuggestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reject Taxonomy Suggestion Api V2 Moderation Taxonomy Suggestion Id Reject Post"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/galleries/{gallery_id}/comments":{"get":{"tags":["comments"],"summary":"Get Gallery Comments","description":"Paginated list of visible comments on a gallery, newest first.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Rate limits:**\n\nWhen `auth=anon`:\n - 30/1min per IP\n\nWhen `auth=user|key`:\n - 60/1min per IP","operationId":"get_gallery_comments_api_v2_galleries__gallery_id__comments_get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":50,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_CommentResponse_"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["comments"],"summary":"Create Comment","description":"Create a new comment on a gallery.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_comments` must be enabled\n\n**Protection:** Proof of Work required (`GET /api/v2/pow?action=comment`)\n\n**Protection:** CAPTCHA required (`GET /api/v2/captcha` for provider info)\n\n**Rate limits:**\n- 5/15min per user\n- 5/15min per IP + user\n- 10/15min per IP","operationId":"create_comment_api_v2_galleries__gallery_id__comments_post","security":[{"User Token":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_create_comment_api_v2_galleries__gallery_id__comments_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptchaErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/galleries/{gallery_id}/comments/count":{"get":{"tags":["comments"],"summary":"Get Gallery Comment Count","description":"Get the visible comment count for a gallery.\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Rate limits:**\n\nWhen `auth=anon`:\n - 12/1min per IP\n\nWhen `auth=user|key`:\n - 20/1min per IP","operationId":"get_gallery_comment_count_api_v2_galleries__gallery_id__comments_count_get","parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"integer","title":"Response Get Gallery Comment Count Api V2 Galleries Gallery Id Comments Count Get"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/comments/{comment_id}":{"delete":{"tags":["comments"],"summary":"Delete Comment","description":"Delete a comment.\n\nOnly the comment owner or staff can delete comments.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_comments` must be enabled\n\n**Rate limits:**\n- 5/15min per user\n- 5/15min per IP + user","operationId":"delete_comment_api_v2_comments__comment_id__delete","security":[{"User Token":[]}],"parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/comments/{comment_id}/flag":{"post":{"tags":["comments"],"summary":"Flag Comment","description":"Flag a comment for review.\n\n---\n\n**Auth:** User Token required\n\n**Rate limits:**\n- 10/15min per user\n- 10/15min per IP + user\n- 15/15min per IP","operationId":"flag_comment_api_v2_comments__comment_id__flag_post","security":[{"User Token":[]}],"parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlagCommentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/search":{"get":{"tags":["search"],"summary":"Search Galleries","description":"Search galleries.\n\nSupports:\n- Keywords: `word`\n- Exact phrases: `\"exact phrase\"`\n- Negation: `-word`, `-\"exact phrase\"`, `-artist:name`\n- Tag filters: `artist:name`, `language:english`, `tag:\"big breasts\"`\n- Numeric filters: `pages:>10`, `favorites:>=100`\n- Date filters: `uploaded:<7d`, `uploaded:>1m`\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Rate limits:**\n\nWhen `auth=anon`:\n - 10/1min per IP\n\nWhen `auth=user|key`:\n - 20/1min per IP","operationId":"search_galleries_api_v2_search_get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Search query","title":"Query"},"description":"Search query"},{"name":"sort","in":"query","required":false,"schema":{"enum":["date","popular","popular-today","popular-week","popular-month"],"type":"string","description":"Sort order","default":"date","title":"Sort"},"description":"Sort order"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_GalleryListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/user":{"get":{"tags":["user"],"summary":"Get Me","description":"Get your profile info. Email is hidden for API key auth.\n\n---\n\n**Auth:** User Token or API Key\n\n**Rate limits:**\n- 45/1min per user\n- 45/1min per API key owner","operationId":"get_me_api_v2_user_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserMeResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]},{"API Key":[]}]},"put":{"tags":["user"],"summary":"Update Profile","description":"Update your profile.\n\n---\n\n**Auth:** User Token required\n\n**Rate limits:**\n- 30/15min per user\n- 30/15min per IP + user","operationId":"update_profile_api_v2_user_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]}]},"delete":{"tags":["user"],"summary":"Delete Account","description":"Delete your account. Requires password and username confirmation.\n\n---\n\n**Auth:** User Token required\n\n**Rate limits:**\n- 3/1h per user\n- 3/1h per IP + user","operationId":"delete_account_api_v2_user_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteProfileResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]}]}},"/api/v2/user/avatar":{"post":{"tags":["user"],"summary":"Upload Avatar","description":"Upload a new avatar image.\n\nAccepts JPEG, PNG, GIF, or WebP up to 10 MB. The image is converted to\nPNG and resized to fit within 200x200 pixels. Returns the new avatar URL.\n\n---\n\n**Auth:** User Token required\n\n**Rate limits:**\n- 5/1min per user","operationId":"upload_avatar_api_v2_user_avatar_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_avatar_api_v2_user_avatar_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Upload Avatar Api V2 User Avatar Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Request Entity Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Bad Gateway","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]}]}},"/api/v2/user/keys":{"get":{"tags":["user"],"summary":"List Api Keys","description":"List your API keys.\n\n---\n\n**Auth:** User Token required\n\n**Rate limits:**\n- 30/1min per user","operationId":"list_api_keys_api_v2_user_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ApiKeyListItem"},"type":"array","title":"Response List Api Keys Api V2 User Keys Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]}]},"post":{"tags":["user"],"summary":"Create Api Key","description":"Create a new API key. The raw key is only shown once.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_api_keys` must be enabled\n\n**Protection:** Proof of Work required (`GET /api/v2/pow?action=api_key`)\n\n**Protection:** CAPTCHA required (`GET /api/v2/captcha` for provider info)\n\n**Rate limits:**\n- 5/1h per user\n- 5/1h per IP + user","operationId":"create_api_key_api_v2_user_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_create_api_key_api_v2_user_keys_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreateResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]}]}},"/api/v2/user/keys/{key_id}":{"delete":{"tags":["user"],"summary":"Revoke Api Key","description":"Revoke an API key.\n\n---\n\n**Auth:** User Token required\n\n**Feature Flag:** `allow_api_keys` must be enabled\n\n**Rate limits:**\n- 10/1h per user\n- 10/1h per IP + user","operationId":"revoke_api_key_api_v2_user_keys__key_id__delete","security":[{"User Token":[]}],"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/SuccessResponse"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/favorites":{"get":{"tags":["favorites"],"summary":"Get Favorites","description":"Get the authenticated user's favorite galleries.\n\n---\n\n**Auth:** User Token or API Key\n\n**Rate limits:**\n- 15/1min per user\n- 15/1min per API key owner","operationId":"get_favorites_api_v2_favorites_get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search within favorites","title":"Q"},"description":"Search within favorites"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_GalleryListItem_"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/favorites/random":{"get":{"tags":["favorites"],"summary":"Get Random Favorite","description":"Get a random gallery ID from the authenticated user's favorites.\n\n---\n\n**Auth:** User Token or API Key\n\n**Rate limits:**\n- 15/1min per user\n- 15/1min per API key owner","operationId":"get_random_favorite_api_v2_favorites_random_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Random Favorite Api V2 Favorites Random Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]},{"API Key":[]}]}},"/api/v2/blacklist":{"get":{"tags":["blacklist"],"summary":"Get Blacklist","description":"Get the authenticated user's blacklisted tags.\n\n---\n\n**Auth:** User Token or API Key\n\n**Rate limits:**\n- 15/1min per user\n- 15/1min per API key owner","operationId":"get_blacklist_api_v2_blacklist_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlacklistListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]},{"API Key":[]}]},"post":{"tags":["blacklist"],"summary":"Update Blacklist","description":"Add or remove tags from the authenticated user's blacklist.\n\n---\n\n**Auth:** User Token or API Key\n\n**Rate limits:**\n- 20/15min per user\n- 20/15min per API key owner","operationId":"update_blacklist_api_v2_blacklist_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlacklistUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlacklistResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]},{"API Key":[]}]}},"/api/v2/blacklist/ids":{"get":{"tags":["blacklist"],"summary":"Get Blacklist Ids","description":"Get just the tag IDs for the authenticated user's blacklist.\n\n---\n\n**Auth:** User Token or API Key\n\n**Rate limits:**\n- 45/1min per user","operationId":"get_blacklist_ids_api_v2_blacklist_ids_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"integer"},"type":"array","title":"Response Get Blacklist Ids Api V2 Blacklist Ids Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]},{"API Key":[]}]}},"/api/v2/users/{user_id}/{slug}":{"get":{"tags":["users"],"summary":"Get User Profile","description":"Get a user's public profile.\n\nRequires both the user ID and correct username slug.\n\n---\n\n**Auth:** Public (optional User Token or API Key for personalization)\n\n**Rate limits:**\n\nWhen `auth=anon`:\n - 5/1min per IP\n\nWhen `auth=user|key`:\n - 10/1min per IP","operationId":"get_user_profile_api_v2_users__user_id___slug__get","security":[{"User Token":[]},{"API Key":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/auth/login":{"post":{"tags":["auth"],"summary":"Login","description":"Authenticate with username/email and password.\n\nReturns access token and refresh token.\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Protection:** Proof of Work required (`GET /api/v2/pow?action=login`)\n\n**Protection:** CAPTCHA required (`GET /api/v2/captcha` for provider info)\n\n**Rate limits:**\n- 10/15min per IP","operationId":"login_api_v2_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_login_api_v2_auth_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/auth/register":{"post":{"tags":["auth"],"summary":"Register","description":"Create a new account.\n\nReturns access token and refresh token.\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Feature Flag:** `allow_register` must be enabled\n\n**Protection:** Proof of Work required (`GET /api/v2/pow?action=register`)\n\n**Protection:** CAPTCHA required (`GET /api/v2/captcha` for provider info)\n\n**Rate limits:**\n- 3/1h per IP","operationId":"register_api_v2_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_register_api_v2_auth_register_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh","description":"Exchange a refresh token for new access + refresh tokens.\n\nThe old refresh token is revoked (token rotation).\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Rate limits:**\n- 15/15min per IP","operationId":"refresh_api_v2_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_refresh_api_v2_auth_refresh_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Revoke the refresh token.\n\n---\n\n**Auth:** User Token required\n\n**Rate limits:**\n- 10/15min per user\n- 10/15min per IP + user","operationId":"logout_api_v2_auth_logout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_logout_api_v2_auth_logout_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]}]}},"/api/v2/auth/logout/all":{"post":{"tags":["auth"],"summary":"Logout All","description":"Revoke all sessions for the current user (log out everywhere).\n\n---\n\n**Auth:** User Token required\n\n**Rate limits:**\n- 5/1h per user\n- 5/1h per IP + user","operationId":"logout_all_api_v2_auth_logout_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]}]}},"/api/v2/auth/sessions":{"get":{"tags":["auth"],"summary":"Get Sessions","description":"List all active sessions for the current user.\n\n---\n\n**Auth:** User Token required\n\n**Rate limits:**\n- 30/1min per user","operationId":"get_sessions_api_v2_auth_sessions_get","security":[{"User Token":[]}],"parameters":[{"name":"x-refresh-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Refresh-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SessionListItem"},"title":"Response Get Sessions Api V2 Auth Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/auth/sessions/{session_id}":{"delete":{"tags":["auth"],"summary":"Revoke Session","description":"Revoke a specific session by ID.\n\n---\n\n**Auth:** User Token required\n\n**Rate limits:**\n- 10/1min per user","operationId":"revoke_session_api_v2_auth_sessions__session_id__delete","security":[{"User Token":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/auth/reset":{"post":{"tags":["auth"],"summary":"Request Password Reset","description":"Request a password reset.\n\nSends a reset link to the user's email if the account exists.\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Feature Flag:** `allow_password_reset` must be enabled\n\n**Protection:** Proof of Work required (`GET /api/v2/pow?action=reset`)\n\n**Protection:** CAPTCHA required (`GET /api/v2/captcha` for provider info)\n\n**Rate limits:**\n- 3/15min per IP","operationId":"request_password_reset_api_v2_auth_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_request_password_reset_api_v2_auth_reset_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/auth/reset/confirm":{"post":{"tags":["auth"],"summary":"Confirm Password Reset","description":"Confirm a password reset with the token from the reset email.\n\n---\n\n**Auth:** Public (no authentication required)\n\n**Feature Flag:** `allow_password_reset` must be enabled\n\n**Protection:** Proof of Work required (`GET /api/v2/pow?action=reset`)\n\n**Protection:** CAPTCHA required (`GET /api/v2/captcha` for provider info)\n\n**Rate limits:**\n- 5/15min per IP","operationId":"confirm_password_reset_api_v2_auth_reset_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_confirm_password_reset_api_v2_auth_reset_confirm_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"503":{"description":"Feature is currently disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/users/{user_id}":{"get":{"tags":["moderation"],"summary":"Get User Mod Info","description":"Get moderation info for a user. Staff sees shadowban, admins also see email.\n\n---\n\n**Auth:** Staff Token required","operationId":"get_user_mod_info_api_v2_moderation_users__user_id__get","security":[{"User Token":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModerationUserInfo"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["moderation"],"summary":"Delete User","description":"Delete a user account. Cascades user-owned content. Staff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 10/15min per user","operationId":"delete_user_api_v2_moderation_users__user_id__delete","security":[{"User Token":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete User Api V2 Moderation Users User Id Delete"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/users/{user_id}/shadowban":{"put":{"tags":["moderation"],"summary":"Shadowban User","description":"Shadowban a user. Staff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"shadowban_user_api_v2_moderation_users__user_id__shadowban_put","security":[{"User Token":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShadowbanResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["moderation"],"summary":"Unshadowban User","description":"Remove shadowban from a user. Staff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"unshadowban_user_api_v2_moderation_users__user_id__shadowban_delete","security":[{"User Token":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShadowbanResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/galleries/hidden":{"get":{"tags":["moderation"],"summary":"List Hidden Galleries","description":"List hidden galleries newest-first.\n\n---\n\n**Auth:** Staff Token required","operationId":"list_hidden_galleries_api_v2_moderation_galleries_hidden_get","security":[{"User Token":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Items per page","default":25,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_GalleryListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/moderation/galleries/{gallery_id}":{"get":{"tags":["moderation"],"summary":"Get Gallery Mod Info","description":"Get moderation status for a gallery.\n\n---\n\n**Auth:** Staff Token required","operationId":"get_gallery_mod_info_api_v2_moderation_galleries__gallery_id__get","security":[{"User Token":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModerationGalleryInfo"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/moderation/galleries/{gallery_id}/hidden":{"put":{"tags":["moderation"],"summary":"Hide Gallery","description":"Hide a gallery from public reads. Staff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"hide_gallery_api_v2_moderation_galleries__gallery_id__hidden_put","security":[{"User Token":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HiddenGalleryResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["moderation"],"summary":"Unhide Gallery","description":"Reveal a previously-hidden gallery. Staff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"unhide_gallery_api_v2_moderation_galleries__gallery_id__hidden_delete","security":[{"User Token":[]}],"parameters":[{"name":"gallery_id","in":"path","required":true,"schema":{"type":"integer","title":"Gallery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HiddenGalleryResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/comments/flags/{flag_id}/review":{"post":{"tags":["moderation"],"summary":"Review Comment Flag","description":"Review a comment flag.\n\nActions:\n- approve: Accept the flag and hide the comment\n- reject: Reject the flag, no action taken\n\nStaff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"review_comment_flag_api_v2_comments_flags__flag_id__review_post","security":[{"User Token":[]}],"parameters":[{"name":"flag_id","in":"path","required":true,"schema":{"type":"integer","title":"Flag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewFlagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewFlagResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/flags":{"get":{"tags":["moderation"],"summary":"Get Pending Flags","description":"Get pending (unreviewed) comment flags. Staff only.\n\n---\n\n**Auth:** Staff Token required","operationId":"get_pending_flags_api_v2_moderation_flags_get","security":[{"User Token":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by username or comment body","title":"Q"},"description":"Search by username or comment body"},{"name":"hide_shadowbanned","in":"query","required":false,"schema":{"type":"boolean","description":"Exclude flags on shadowbanned users' comments","default":true,"title":"Hide Shadowbanned"},"description":"Exclude flags on shadowbanned users' comments"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModerationFlagsListResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/moderation/edits":{"get":{"tags":["moderation"],"summary":"Get Pending Edits","description":"Retired. Tag changes go through the suggestion flow now.\n\n---\n\n**Auth:** Staff Token required","operationId":"get_pending_edits_api_v2_moderation_edits_get","security":[{"User Token":[]}],"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":{"$ref":"#/components/schemas/EditListResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/moderation/edits/{edit_id}":{"get":{"tags":["moderation"],"summary":"Get Edit","description":"Retired. Tag changes go through the suggestion flow now.\n\n---\n\n**Auth:** Staff Token required","operationId":"get_edit_api_v2_moderation_edits__edit_id__get","security":[{"User Token":[]}],"parameters":[{"name":"edit_id","in":"path","required":true,"schema":{"type":"integer","title":"Edit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/moderation/edits/{edit_id}/vote":{"post":{"tags":["moderation"],"summary":"Vote On Edit","description":"Retired. Tag changes go through the suggestion flow now.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"vote_on_edit_api_v2_moderation_edits__edit_id__vote_post","security":[{"User Token":[]}],"parameters":[{"name":"edit_id","in":"path","required":true,"schema":{"type":"integer","title":"Edit Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoteResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/edits/{edit_id}/apply":{"post":{"tags":["moderation"],"summary":"Apply Edit","description":"Retired. Tag changes go through the suggestion flow now.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"apply_edit_api_v2_moderation_edits__edit_id__apply_post","security":[{"User Token":[]}],"parameters":[{"name":"edit_id","in":"path","required":true,"schema":{"type":"integer","title":"Edit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/edits/{edit_id}/reject":{"post":{"tags":["moderation"],"summary":"Reject Edit","description":"Retired. Tag changes go through the suggestion flow now.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"reject_edit_api_v2_moderation_edits__edit_id__reject_post","security":[{"User Token":[]}],"parameters":[{"name":"edit_id","in":"path","required":true,"schema":{"type":"integer","title":"Edit Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/comments/recent":{"get":{"tags":["moderation"],"summary":"Get Recent Comments","description":"Get recent visible comments. Admin only.\n\n---\n\n**Auth:** Superuser Token required","operationId":"get_recent_comments_api_v2_moderation_comments_recent_get","security":[{"User Token":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Per Page"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by username or comment body","title":"Q"},"description":"Search by username or comment body"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModerationCommentsListResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/moderation/comments/spam":{"get":{"tags":["moderation"],"summary":"Get Spam Comments","description":"Get spam/hidden comments. Admin only.\n\n---\n\n**Auth:** Superuser Token required","operationId":"get_spam_comments_api_v2_moderation_comments_spam_get","security":[{"User Token":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Per Page"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search by username or comment body","title":"Q"},"description":"Search by username or comment body"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModerationCommentsListResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/moderation/comments/{comment_id}/hide":{"put":{"tags":["moderation"],"summary":"Hide Comment","description":"Hide a comment. Staff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"hide_comment_api_v2_moderation_comments__comment_id__hide_put","security":[{"User Token":[]}],"parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["moderation"],"summary":"Unhide Comment","description":"Unhide a comment. Staff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"unhide_comment_api_v2_moderation_comments__comment_id__hide_delete","security":[{"User Token":[]}],"parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"integer","title":"Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/moderation/bulk/hide":{"post":{"tags":["moderation"],"summary":"Bulk Hide","description":"Hide multiple comments. Staff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"bulk_hide_api_v2_moderation_bulk_hide_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"integer"},"type":"array","maxItems":500,"title":"Comment Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]}]}},"/api/v2/moderation/bulk/unhide":{"post":{"tags":["moderation"],"summary":"Bulk Unhide","description":"Unhide multiple comments. Staff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"bulk_unhide_api_v2_moderation_bulk_unhide_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"integer"},"type":"array","maxItems":500,"title":"Comment Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]}]}},"/api/v2/moderation/bulk/shadowban":{"post":{"tags":["moderation"],"summary":"Bulk Shadowban","description":"Shadowban multiple users. Staff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"bulk_shadowban_api_v2_moderation_bulk_shadowban_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"integer"},"type":"array","maxItems":500,"title":"User Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]}]}},"/api/v2/moderation/bulk/unshadowban":{"post":{"tags":["moderation"],"summary":"Bulk Unshadowban","description":"Unshadowban multiple users. Staff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"bulk_unshadowban_api_v2_moderation_bulk_unshadowban_post","requestBody":{"content":{"application/json":{"schema":{"items":{"type":"integer"},"type":"array","maxItems":500,"title":"User Ids"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]}]}},"/api/v2/moderation/api-keys":{"get":{"tags":["moderation"],"summary":"List All Api Keys","description":"List all active API keys with user info. Admin only.\n\n---\n\n**Auth:** Superuser Token required","operationId":"list_all_api_keys_api_v2_moderation_api_keys_get","security":[{"User Token":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Per Page"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["created","last_used"],"type":"string","default":"created","title":"Sort"}},{"name":"has_purpose","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"True = only with purpose set; False = only without","title":"Has Purpose"},"description":"True = only with purpose set; False = only without"},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"description":"Substring match on name or purpose","default":"","title":"Q"},"description":"Substring match on name or purpose"},{"name":"key_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact key id; returns 0 or 1 result","title":"Key Id"},"description":"Exact key id; returns 0 or 1 result"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModerationApiKeysListResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/moderation/api-keys/{key_id}":{"delete":{"tags":["moderation"],"summary":"Revoke Api Key Admin","description":"Revoke any API key. Admin only.\n\n---\n\n**Auth:** Superuser Token required","operationId":"revoke_api_key_admin_api_v2_moderation_api_keys__key_id__delete","security":[{"User Token":[]}],"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/SuccessResponse"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/moderation/spam/config":{"get":{"tags":["moderation"],"summary":"Get Spam Config","description":"Staff only.\n\n---\n\n**Auth:** Staff Token required","operationId":"get_spam_config_api_v2_moderation_spam_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Spam Config Api V2 Moderation Spam Config Get"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"User Token":[]}]}},"/api/v2/moderation/spam/config/{name}":{"put":{"tags":["moderation"],"summary":"Update Spam Config","description":"Staff only.\n\n---\n\n**Auth:** Staff Token required\n\n**Rate limits:**\n- 30/15min per user","operationId":"update_spam_config_api_v2_moderation_spam_config__name__put","security":[{"User Token":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_update_spam_config_api_v2_moderation_spam_config__name__put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"429":{"description":"Too many requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v2/zones":{"get":{"tags":["zones"],"summary":"Get Zones","description":"Slot instructions for this request: HTML for paid inventory, named\ncreatives for house ads. Missing keys = empty slots. House creatives\nare gated per-creative on CF-IPCountry.\n\n---\n\n**Auth:** Public (no authentication required)","operationId":"get_zones_api_v2_zones_get","parameters":[{"name":"user-agent","in":"header","required":false,"schema":{"type":"string","title":"User-Agent"}},{"name":"cf-ipcountry","in":"header","required":false,"schema":{"type":"string","default":"","title":"Cf-Ipcountry"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZonesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/zones/i":{"get":{"tags":["zones"],"summary":"Get Popunder Inventory","description":"Get available popunder for current user.\n\nReturns the next popunder to show with timing info.\ndelta is in milliseconds (0 means ready to show).\n\n---\n\n**Auth:** Public (no authentication required)","operationId":"get_popunder_inventory_api_v2_zones_i_get","parameters":[{"name":"user-agent","in":"header","required":false,"schema":{"type":"string","title":"User-Agent"}},{"name":"cf-ipcountry","in":"header","required":false,"schema":{"type":"string","default":"","title":"Cf-Ipcountry"}},{"name":"tor_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tor Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PopunderInventoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/zones/h":{"post":{"tags":["zones"],"summary":"Record Popunder Hit","description":"Record a popunder impression/open event.\n\nCalled by frontend when a popunder is triggered.\n\n---\n\n**Auth:** Public (no authentication required)","operationId":"record_popunder_hit_api_v2_zones_h_post","parameters":[{"name":"user-agent","in":"header","required":false,"schema":{"type":"string","title":"User-Agent"}},{"name":"tor_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tor Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPopunderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPopunderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/zones/pu":{"get":{"tags":["zones"],"summary":"Popunder Redirect","description":"Redirect to popunder ad URL.\n\nTwo-step process:\n1. First call (without out=1): records \"opens\" stat, redirects to self with out=1\n2. Second call (with out=1): records \"redirects\" stat, redirects to actual URL\n\nThis allows tracking of both opens and actual redirects.\n\n---\n\n**Auth:** Public (no authentication required)","operationId":"popunder_redirect_api_v2_zones_pu_get","parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","title":"Name"}},{"name":"out","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Out"}},{"name":"user-agent","in":"header","required":false,"schema":{"type":"string","title":"User-Agent"}},{"name":"tor_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tor Session"}}],"responses":{"200":{"description":"Close window on error","content":{"application/json":{"schema":{}},"text/html":{}}},"302":{"description":"Redirect to popunder URL"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Announcement":{"properties":{"message":{"type":"string","title":"Message"},"links":{"items":{"$ref":"#/components/schemas/AnnouncementLink"},"type":"array","title":"Links","default":[]}},"type":"object","required":["message"],"title":"Announcement"},"AnnouncementLink":{"properties":{"text":{"type":"string","title":"Text"},"url":{"type":"string","title":"Url"}},"type":"object","required":["text","url"],"title":"AnnouncementLink"},"ApiKeyCreateResponse":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","key","name"],"title":"ApiKeyCreateResponse"},"ApiKeyListItem":{"properties":{"id":{"type":"string","title":"Id"},"key_prefix":{"type":"string","title":"Key Prefix"},"name":{"type":"string","title":"Name"},"created_at":{"type":"integer","title":"Created At"},"last_used_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","key_prefix","name","created_at"],"title":"ApiKeyListItem"},"ApiRootResponse":{"properties":{"version":{"type":"string","title":"Version"},"message":{"type":"string","title":"Message"}},"type":"object","required":["version","message"],"title":"ApiRootResponse"},"AutocompleteRequest":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":10}},"type":"object","title":"AutocompleteRequest","description":"Autocomplete request body."},"BacklogGallery":{"properties":{"id":{"type":"integer","title":"Id"},"media_id":{"type":"string","title":"Media Id"},"thumbnail":{"type":"string","title":"Thumbnail"},"thumbnail_width":{"type":"integer","title":"Thumbnail Width"},"thumbnail_height":{"type":"integer","title":"Thumbnail Height"},"english_title":{"type":"string","title":"English Title"},"japanese_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Japanese Title"},"num_pages":{"type":"integer","title":"Num Pages"},"num_favorites":{"type":"integer","title":"Num Favorites"},"upload_date":{"type":"integer","title":"Upload Date"},"age_days":{"type":"integer","title":"Age Days"},"tags":{"items":{"$ref":"#/components/schemas/TagResponse"},"type":"array","title":"Tags","default":[]}},"type":"object","required":["id","media_id","thumbnail","thumbnail_width","thumbnail_height","english_title","num_pages","num_favorites","upload_date","age_days"],"title":"BacklogGallery","description":"Gallery info attached to a backlog row."},"BacklogListResponse":{"properties":{"result":{"items":{"$ref":"#/components/schemas/BacklogRow"},"type":"array","title":"Result"},"has_more":{"type":"boolean","title":"Has More","default":false},"num_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Pages"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["result"],"title":"BacklogListResponse"},"BacklogRow":{"properties":{"suggestion":{"$ref":"#/components/schemas/SuggestionResponse"},"gallery":{"$ref":"#/components/schemas/BacklogGallery"}},"type":"object","required":["suggestion","gallery"],"title":"BacklogRow","description":"A pending tag-change suggestion plus the gallery it applies to."},"BlacklistListResponse":{"properties":{"tags":{"items":{"$ref":"#/components/schemas/BlacklistedTagResponse"},"type":"array","title":"Tags"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["tags","count"],"title":"BlacklistListResponse","description":"Response for listing blacklisted tags."},"BlacklistResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["success","count"],"title":"BlacklistResponse","description":"Response for blacklist operations."},"BlacklistUpdateRequest":{"properties":{"added":{"items":{"type":"integer"},"type":"array","title":"Added","default":[]},"removed":{"items":{"type":"integer"},"type":"array","title":"Removed","default":[]}},"type":"object","title":"BlacklistUpdateRequest","description":"Request body for updating blacklist."},"BlacklistedTagResponse":{"properties":{"id":{"type":"integer","title":"Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["id","type","name","slug","count"],"title":"BlacklistedTagResponse","description":"Blacklisted tag info."},"Body_confirm_password_reset_api_v2_auth_reset_confirm_post":{"properties":{"token":{"type":"string","title":"Token","description":"Reset token from the email link"},"password":{"type":"string","minLength":8,"title":"Password","description":"New password"},"pow_challenge":{"type":"string","title":"Pow Challenge","description":"PoW challenge from GET /api/v2/pow. Empty string is fine when the action's difficulty is 0."},"pow_nonce":{"type":"string","title":"Pow Nonce","description":"Nonce that solves the PoW challenge. Empty string is fine when the action's difficulty is 0."},"captcha_response":{"type":"string","title":"Captcha Response","description":"CAPTCHA response token from the widget"}},"type":"object","required":["token","password","pow_challenge","pow_nonce","captcha_response"],"title":"Body_confirm_password_reset_api_v2_auth_reset_confirm_post"},"Body_create_api_key_api_v2_user_keys_post":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"purpose":{"type":"string","title":"Purpose","default":""},"pow_challenge":{"type":"string","title":"Pow Challenge","description":"PoW challenge from GET /api/v2/pow. Empty string is fine when the action's difficulty is 0."},"pow_nonce":{"type":"string","title":"Pow Nonce","description":"Nonce that solves the PoW challenge. Empty string is fine when the action's difficulty is 0."},"captcha_response":{"type":"string","title":"Captcha Response","description":"CAPTCHA response token from the widget"}},"type":"object","required":["name","pow_challenge","pow_nonce","captcha_response"],"title":"Body_create_api_key_api_v2_user_keys_post"},"Body_create_comment_api_v2_galleries__gallery_id__comments_post":{"properties":{"body":{"type":"string","maxLength":1000,"minLength":10,"title":"Body","description":"Comment text"},"captcha_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captcha Response","description":"CAPTCHA response token"},"pow_challenge":{"type":"string","title":"Pow Challenge","description":"PoW challenge from GET /api/v2/pow. Empty string is fine when the action's difficulty is 0."},"pow_nonce":{"type":"string","title":"Pow Nonce","description":"Nonce that solves the PoW challenge. Empty string is fine when the action's difficulty is 0."}},"type":"object","required":["body","pow_challenge","pow_nonce"],"title":"Body_create_comment_api_v2_galleries__gallery_id__comments_post"},"Body_create_suggestion_api_v2_galleries__gallery_id__suggestions_post":{"properties":{"tag_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Tag Id"},"action":{"type":"string","enum":["add","remove"],"title":"Action","default":"add"},"captcha_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captcha Response","description":"CAPTCHA response token"},"pow_challenge":{"type":"string","title":"Pow Challenge","description":"PoW challenge from GET /api/v2/pow. Empty string is fine when the action's difficulty is 0."},"pow_nonce":{"type":"string","title":"Pow Nonce","description":"Nonce that solves the PoW challenge. Empty string is fine when the action's difficulty is 0."}},"type":"object","required":["tag_id","pow_challenge","pow_nonce"],"title":"Body_create_suggestion_api_v2_galleries__gallery_id__suggestions_post"},"Body_create_taxonomy_comment_api_v2_taxonomy__suggestion_id__comments_post":{"properties":{"body":{"type":"string","maxLength":1000,"minLength":10,"title":"Body"},"captcha_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captcha Response","description":"CAPTCHA response token"},"pow_challenge":{"type":"string","title":"Pow Challenge","description":"PoW challenge from GET /api/v2/pow. Empty string is fine when the action's difficulty is 0."},"pow_nonce":{"type":"string","title":"Pow Nonce","description":"Nonce that solves the PoW challenge. Empty string is fine when the action's difficulty is 0."}},"type":"object","required":["body","pow_challenge","pow_nonce"],"title":"Body_create_taxonomy_comment_api_v2_taxonomy__suggestion_id__comments_post"},"Body_create_taxonomy_suggestion_api_v2_taxonomy_post":{"properties":{"action":{"type":"string","enum":["create","rename","merge","describe"],"title":"Action"},"target_tag_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Target Tag Id"},"merge_into_tag_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Merge Into Tag Id"},"new_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"New Name"},"new_type":{"anyOf":[{"type":"string","enum":["tag","artist","parody","character","group","language","category"]},{"type":"null"}],"title":"New Type"},"new_description":{"anyOf":[{"type":"string","maxLength":2000,"minLength":1},{"type":"null"}],"title":"New Description"},"proposer_note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Proposer Note"},"captcha_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captcha Response","description":"CAPTCHA response token"},"pow_challenge":{"type":"string","title":"Pow Challenge","description":"PoW challenge from GET /api/v2/pow. Empty string is fine when the action's difficulty is 0."},"pow_nonce":{"type":"string","title":"Pow Nonce","description":"Nonce that solves the PoW challenge. Empty string is fine when the action's difficulty is 0."}},"type":"object","required":["action","pow_challenge","pow_nonce"],"title":"Body_create_taxonomy_suggestion_api_v2_taxonomy_post"},"Body_edit_taxonomy_suggestion_api_v2_taxonomy__suggestion_id__patch":{"properties":{"action":{"type":"string","enum":["create","rename","merge","describe"],"title":"Action"},"target_tag_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Target Tag Id"},"merge_into_tag_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Merge Into Tag Id"},"new_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"New Name"},"new_type":{"anyOf":[{"type":"string","enum":["tag","artist","parody","character","group","language","category"]},{"type":"null"}],"title":"New Type"},"new_description":{"anyOf":[{"type":"string","maxLength":2000,"minLength":1},{"type":"null"}],"title":"New Description"},"proposer_note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Proposer Note"},"summary":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Summary"}},"type":"object","required":["action"],"title":"Body_edit_taxonomy_suggestion_api_v2_taxonomy__suggestion_id__patch"},"Body_login_api_v2_auth_login_post":{"properties":{"username":{"type":"string","title":"Username","description":"Username or email"},"password":{"type":"string","title":"Password"},"pow_challenge":{"type":"string","title":"Pow Challenge","description":"PoW challenge from GET /api/v2/pow. Empty string is fine when the action's difficulty is 0."},"pow_nonce":{"type":"string","title":"Pow Nonce","description":"Nonce that solves the PoW challenge. Empty string is fine when the action's difficulty is 0."},"captcha_response":{"type":"string","title":"Captcha Response","description":"CAPTCHA response token from the widget"}},"type":"object","required":["username","password","pow_challenge","pow_nonce","captcha_response"],"title":"Body_login_api_v2_auth_login_post"},"Body_logout_api_v2_auth_logout_post":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token","description":"Refresh token to revoke"}},"type":"object","required":["refresh_token"],"title":"Body_logout_api_v2_auth_logout_post"},"Body_refresh_api_v2_auth_refresh_post":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token","description":"Refresh token to exchange"}},"type":"object","required":["refresh_token"],"title":"Body_refresh_api_v2_auth_refresh_post"},"Body_register_api_v2_auth_register_post":{"properties":{"username":{"type":"string","maxLength":30,"minLength":3,"title":"Username"},"email":{"type":"string","title":"Email"},"password":{"type":"string","minLength":8,"title":"Password"},"pow_challenge":{"type":"string","title":"Pow Challenge","description":"PoW challenge from GET /api/v2/pow. Empty string is fine when the action's difficulty is 0."},"pow_nonce":{"type":"string","title":"Pow Nonce","description":"Nonce that solves the PoW challenge. Empty string is fine when the action's difficulty is 0."},"captcha_response":{"type":"string","title":"Captcha Response","description":"CAPTCHA response token from the widget"}},"type":"object","required":["username","email","password","pow_challenge","pow_nonce","captcha_response"],"title":"Body_register_api_v2_auth_register_post"},"Body_request_password_reset_api_v2_auth_reset_post":{"properties":{"username_or_email":{"type":"string","title":"Username Or Email","description":"Username or email address"},"pow_challenge":{"type":"string","title":"Pow Challenge","description":"PoW challenge from GET /api/v2/pow. Empty string is fine when the action's difficulty is 0."},"pow_nonce":{"type":"string","title":"Pow Nonce","description":"Nonce that solves the PoW challenge. Empty string is fine when the action's difficulty is 0."},"captcha_response":{"type":"string","title":"Captcha Response","description":"CAPTCHA response token from the widget"}},"type":"object","required":["username_or_email","pow_challenge","pow_nonce","captcha_response"],"title":"Body_request_password_reset_api_v2_auth_reset_post"},"Body_update_spam_config_api_v2_moderation_spam_config__name__put":{"properties":{"items":{"items":{"type":"string"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"Body_update_spam_config_api_v2_moderation_spam_config__name__put"},"Body_upload_avatar_api_v2_user_avatar_post":{"properties":{"avatar":{"type":"string","format":"binary","title":"Avatar"}},"type":"object","required":["avatar"],"title":"Body_upload_avatar_api_v2_user_avatar_post"},"Body_vote_on_suggestion_api_v2_galleries__gallery_id__suggestions__suggestion_id__vote_post":{"properties":{"vote":{"type":"integer","maximum":1.0,"minimum":-1.0,"title":"Vote"},"pow_challenge":{"type":"string","title":"Pow Challenge","description":"PoW challenge from GET /api/v2/pow. Empty string is fine when the action's difficulty is 0."},"pow_nonce":{"type":"string","title":"Pow Nonce","description":"Nonce that solves the PoW challenge. Empty string is fine when the action's difficulty is 0."}},"type":"object","required":["vote","pow_challenge","pow_nonce"],"title":"Body_vote_on_suggestion_api_v2_galleries__gallery_id__suggestions__suggestion_id__vote_post"},"Body_vote_on_taxonomy_suggestion_api_v2_taxonomy__suggestion_id__vote_post":{"properties":{"vote":{"type":"integer","maximum":1.0,"minimum":-1.0,"title":"Vote"},"pow_challenge":{"type":"string","title":"Pow Challenge","description":"PoW challenge from GET /api/v2/pow. Empty string is fine when the action's difficulty is 0."},"pow_nonce":{"type":"string","title":"Pow Nonce","description":"Nonce that solves the PoW challenge. Empty string is fine when the action's difficulty is 0."}},"type":"object","required":["vote","pow_challenge","pow_nonce"],"title":"Body_vote_on_taxonomy_suggestion_api_v2_taxonomy__suggestion_id__vote_post"},"CaptchaErrorResponse":{"properties":{"error":{"type":"string","title":"Error"},"captcha_required":{"type":"boolean","title":"Captcha Required","default":true},"captcha_public_key":{"type":"string","title":"Captcha Public Key"}},"type":"object","required":["error","captcha_public_key"],"title":"CaptchaErrorResponse","description":"Error response when CAPTCHA verification fails."},"CaptchaInfoResponse":{"properties":{"provider":{"type":"string","title":"Provider"},"site_key":{"type":"string","title":"Site Key"}},"type":"object","required":["provider","site_key"],"title":"CaptchaInfoResponse"},"CdnConfigResponse":{"properties":{"image_servers":{"items":{"type":"string"},"type":"array","title":"Image Servers"},"thumb_servers":{"items":{"type":"string"},"type":"array","title":"Thumb Servers"}},"type":"object","required":["image_servers","thumb_servers"],"title":"CdnConfigResponse"},"CommentResponse":{"properties":{"id":{"type":"integer","title":"Id"},"gallery_id":{"type":"integer","title":"Gallery Id"},"poster":{"$ref":"#/components/schemas/UserPublic"},"post_date":{"type":"integer","title":"Post Date"},"body":{"type":"string","title":"Body"}},"type":"object","required":["id","gallery_id","poster","post_date","body"],"title":"CommentResponse","description":"Comment response matching Django format."},"ConfigResponse":{"properties":{"image_servers":{"items":{"type":"string"},"type":"array","title":"Image Servers"},"thumb_servers":{"items":{"type":"string"},"type":"array","title":"Thumb Servers"},"announcement":{"anyOf":[{"$ref":"#/components/schemas/Announcement"},{"type":"null"}]}},"type":"object","required":["image_servers","thumb_servers"],"title":"ConfigResponse","description":"Combined config: CDN servers + announcement."},"CoverInfo":{"properties":{"path":{"type":"string","title":"Path"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"}},"type":"object","required":["path","width","height"],"title":"CoverInfo","description":"Cover/thumbnail image with path and dimensions."},"CreateTagRequest":{"properties":{"type":{"type":"string","enum":["tag","artist","parody","character","group","language","category"],"title":"Type"},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"}},"type":"object","required":["type","name"],"title":"CreateTagRequest","description":"Mod-only request to mint a brand-new tag."},"CreatedTag":{"properties":{"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"}},"type":"object","required":["type","name"],"title":"CreatedTag","description":"Tag to be created as part of an edit."},"CreatedTagResponse":{"properties":{"id":{"type":"integer","title":"Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"url":{"type":"string","title":"Url"}},"type":"object","required":["id","type","name","slug","url"],"title":"CreatedTagResponse"},"CreativeSlot":{"properties":{"type":{"type":"string","const":"creative","title":"Type","default":"creative"},"name":{"type":"string","title":"Name"},"params":{"additionalProperties":true,"type":"object","title":"Params"}},"type":"object","required":["name"],"title":"CreativeSlot","description":"House-creative slot: API names a creative the web knows how to render\n(e.g. \"kurohebi\"). Web picks its own component + layout; `params` lets\nthe API hint variants without renegotiating the schema."},"DeleteProfileRequest":{"properties":{"password":{"type":"string","title":"Password"},"confirmation":{"type":"string","title":"Confirmation"}},"type":"object","required":["password","confirmation"],"title":"DeleteProfileRequest","description":"Request body for deleting user profile."},"DeleteProfileResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"DeleteProfileResponse","description":"Response for profile deletion."},"DownloadResponse":{"properties":{"url":{"type":"string","title":"Url"},"expires_at":{"type":"integer","title":"Expires At"}},"type":"object","required":["url","expires_at"],"title":"DownloadResponse"},"EditListResponse":{"properties":{"edits":{"items":{"$ref":"#/components/schemas/EditResponse"},"type":"array","title":"Edits"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["edits","count"],"title":"EditListResponse","description":"Response for listing edits."},"EditResponse":{"properties":{"id":{"type":"integer","title":"Id"},"user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Id"},"user_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Username"},"gallery_id":{"type":"integer","title":"Gallery Id"},"gallery_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gallery Title"},"date":{"type":"integer","title":"Date"},"accepted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Accepted"},"added_tags":{"items":{"$ref":"#/components/schemas/EditTagInfo"},"type":"array","title":"Added Tags"},"removed_tags":{"items":{"$ref":"#/components/schemas/EditTagInfo"},"type":"array","title":"Removed Tags"},"created_tags":{"items":{"$ref":"#/components/schemas/CreatedTag"},"type":"array","title":"Created Tags"},"upvotes":{"type":"integer","title":"Upvotes","default":0},"downvotes":{"type":"integer","title":"Downvotes","default":0},"user_vote":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"User Vote"}},"type":"object","required":["id","user_id","user_username","gallery_id","gallery_title","date","accepted","added_tags","removed_tags","created_tags"],"title":"EditResponse","description":"Single edit response."},"EditTagInfo":{"properties":{"id":{"type":"integer","title":"Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"count":{"type":"integer","title":"Count"},"action":{"type":"string","title":"Action"}},"type":"object","required":["id","type","name","slug","count","action"],"title":"EditTagInfo","description":"Tag info for edit display."},"ErrorResponse":{"properties":{"error":{"type":"string","title":"Error"}},"type":"object","required":["error"],"title":"ErrorResponse","description":"Error response."},"FavoriteResponse":{"properties":{"favorited":{"type":"boolean","title":"Favorited"},"num_favorites":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Favorites"}},"type":"object","required":["favorited"],"title":"FavoriteResponse","description":"Response for favorite/unfavorite actions."},"FlagCommentRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"FlagCommentRequest","description":"Request body for flagging a comment."},"GalleryDetailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"media_id":{"type":"string","title":"Media Id"},"title":{"$ref":"#/components/schemas/GalleryTitle"},"cover":{"$ref":"#/components/schemas/CoverInfo"},"thumbnail":{"$ref":"#/components/schemas/CoverInfo"},"scanlator":{"type":"string","title":"Scanlator","default":""},"upload_date":{"type":"integer","title":"Upload Date"},"tags":{"items":{"$ref":"#/components/schemas/TagResponse"},"type":"array","title":"Tags"},"num_pages":{"type":"integer","title":"Num Pages"},"num_favorites":{"type":"integer","title":"Num Favorites"},"pages":{"items":{"$ref":"#/components/schemas/PageInfo"},"type":"array","title":"Pages","default":[]},"comments":{"anyOf":[{"items":{"$ref":"#/components/schemas/CommentResponse"},"type":"array"},{"type":"null"}],"title":"Comments"},"comment_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Comment Count"},"related":{"anyOf":[{"items":{"$ref":"#/components/schemas/GalleryListItem"},"type":"array"},{"type":"null"}],"title":"Related"},"is_favorited":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Favorited"},"suggestions":{"anyOf":[{"$ref":"#/components/schemas/GallerySuggestionsBundle"},{"type":"null"}]}},"type":"object","required":["id","media_id","title","cover","thumbnail","upload_date","tags","num_pages","num_favorites"],"title":"GalleryDetailResponse","description":"Gallery detail with optional included data (comments, related, favorite, suggestions)."},"GalleryLinkPreview":{"properties":{"start":{"type":"integer","title":"Start"},"end":{"type":"integer","title":"End"},"matched":{"type":"string","title":"Matched"},"kind":{"type":"string","const":"gallery","title":"Kind","default":"gallery"},"gallery":{"$ref":"#/components/schemas/GalleryListItem"}},"type":"object","required":["start","end","matched","gallery"],"title":"GalleryLinkPreview"},"GalleryListItem":{"properties":{"id":{"type":"integer","title":"Id"},"media_id":{"type":"string","title":"Media Id"},"english_title":{"type":"string","title":"English Title"},"japanese_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Japanese Title"},"thumbnail":{"type":"string","title":"Thumbnail"},"thumbnail_width":{"type":"integer","title":"Thumbnail Width"},"thumbnail_height":{"type":"integer","title":"Thumbnail Height"},"num_pages":{"type":"integer","title":"Num Pages","default":0},"num_favorites":{"type":"integer","title":"Num Favorites","default":0},"tag_ids":{"items":{"type":"integer"},"type":"array","title":"Tag Ids","default":[]},"blacklisted":{"type":"boolean","title":"Blacklisted","default":false}},"type":"object","required":["id","media_id","english_title","thumbnail","thumbnail_width","thumbnail_height"],"title":"GalleryListItem","description":"Lightweight gallery for list views.\nUsed in search results, tag listings, homepage."},"GallerySuggestionsBundle":{"properties":{"trending":{"items":{"$ref":"#/components/schemas/SuggestionResponse"},"type":"array","title":"Trending"},"active":{"items":{"$ref":"#/components/schemas/SuggestionResponse"},"type":"array","title":"Active"},"mine":{"items":{"$ref":"#/components/schemas/SuggestionResponse"},"type":"array","title":"Mine","default":[]},"counts":{"$ref":"#/components/schemas/SuggestionTierCounts"}},"type":"object","required":["trending","active","counts"],"title":"GallerySuggestionsBundle","description":"Gallery-detail include payload. Trending head + small active head + counts.\n\n`mine` carries the authenticated viewer's own pending suggestions on this\ngallery (regardless of which classifier tier they live in). Empty for anon\nviewers. Bounded by the per-user-per-gallery quota."},"GalleryTitle":{"properties":{"english":{"type":"string","title":"English"},"japanese":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Japanese"},"pretty":{"type":"string","title":"Pretty"}},"type":"object","required":["english","pretty"],"title":"GalleryTitle","description":"Gallery title in multiple languages."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HiddenGalleryResponse":{"properties":{"id":{"type":"integer","title":"Id"},"hidden":{"type":"boolean","title":"Hidden"}},"type":"object","required":["id","hidden"],"title":"HiddenGalleryResponse","description":"Response for gallery hide/unhide actions."},"HtmlSlot":{"properties":{"type":{"type":"string","const":"html","title":"Type","default":"html"},"html":{"type":"string","title":"Html"}},"type":"object","required":["html"],"title":"HtmlSlot","description":"Paid-inventory slot: API hands the web pre-rendered HTML to inject."},"ModerationApiKeyItem":{"properties":{"id":{"type":"string","title":"Id"},"key_prefix":{"type":"string","title":"Key Prefix"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"created_at":{"type":"string","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used At"},"user_id":{"type":"integer","title":"User Id"},"username":{"type":"string","title":"Username"},"user_slug":{"type":"string","title":"User Slug"}},"type":"object","required":["id","key_prefix","name","purpose","scopes","created_at","last_used_at","user_id","username","user_slug"],"title":"ModerationApiKeyItem","description":"A single API key with its owner info (admin view)."},"ModerationApiKeysListResponse":{"properties":{"keys":{"items":{"$ref":"#/components/schemas/ModerationApiKeyItem"},"type":"array","title":"Keys"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"num_pages":{"type":"integer","title":"Num Pages"}},"type":"object","required":["keys","total","page","per_page","num_pages"],"title":"ModerationApiKeysListResponse","description":"Paginated list of API keys for admin."},"ModerationCommentResponse":{"properties":{"id":{"type":"integer","title":"Id"},"gallery_id":{"type":"integer","title":"Gallery Id"},"gallery_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gallery Title"},"poster_id":{"type":"integer","title":"Poster Id"},"poster_username":{"type":"string","title":"Poster Username"},"poster_slug":{"type":"string","title":"Poster Slug"},"poster_avatar":{"type":"string","title":"Poster Avatar"},"poster_is_shadowbanned":{"type":"boolean","title":"Poster Is Shadowbanned"},"body":{"type":"string","title":"Body"},"post_date":{"type":"integer","title":"Post Date"},"is_hidden":{"type":"boolean","title":"Is Hidden"}},"type":"object","required":["id","gallery_id","gallery_title","poster_id","poster_username","poster_slug","poster_avatar","poster_is_shadowbanned","body","post_date","is_hidden"],"title":"ModerationCommentResponse","description":"Comment info for moderation views."},"ModerationCommentsListResponse":{"properties":{"comments":{"items":{"$ref":"#/components/schemas/ModerationCommentResponse"},"type":"array","title":"Comments"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"num_pages":{"type":"integer","title":"Num Pages"}},"type":"object","required":["comments","total","page","per_page","num_pages"],"title":"ModerationCommentsListResponse","description":"Response for moderation comment lists."},"ModerationFlagItem":{"properties":{"id":{"type":"integer","title":"Id"},"user_id":{"type":"integer","title":"User Id"},"comment_id":{"type":"integer","title":"Comment Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"date":{"type":"integer","title":"Date"},"poster_id":{"type":"integer","title":"Poster Id"},"poster_username":{"type":"string","title":"Poster Username"},"poster_slug":{"type":"string","title":"Poster Slug"},"poster_avatar":{"type":"string","title":"Poster Avatar"},"poster_is_shadowbanned":{"type":"boolean","title":"Poster Is Shadowbanned"},"reporter_username":{"type":"string","title":"Reporter Username"},"reporter_slug":{"type":"string","title":"Reporter Slug"},"reporter_avatar":{"type":"string","title":"Reporter Avatar"},"comment_body":{"type":"string","title":"Comment Body"},"gallery_id":{"type":"integer","title":"Gallery Id"},"gallery_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gallery Title"}},"type":"object","required":["id","user_id","comment_id","reason","date","poster_id","poster_username","poster_slug","poster_avatar","poster_is_shadowbanned","reporter_username","reporter_slug","reporter_avatar","comment_body","gallery_id","gallery_title"],"title":"ModerationFlagItem","description":"A single pending comment flag."},"ModerationFlagsListResponse":{"properties":{"flags":{"items":{"$ref":"#/components/schemas/ModerationFlagItem"},"type":"array","title":"Flags"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"num_pages":{"type":"integer","title":"Num Pages"}},"type":"object","required":["flags","total","page","per_page","num_pages"],"title":"ModerationFlagsListResponse","description":"Paginated list of pending flags."},"ModerationGalleryInfo":{"properties":{"id":{"type":"integer","title":"Id"},"hidden":{"type":"boolean","title":"Hidden"}},"type":"object","required":["id","hidden"],"title":"ModerationGalleryInfo","description":"Moderation status for a gallery."},"ModerationUserInfo":{"properties":{"id":{"type":"integer","title":"Id"},"is_shadowbanned":{"type":"boolean","title":"Is Shadowbanned"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["id","is_shadowbanned"],"title":"ModerationUserInfo","description":"Moderation details for a user. `email` is present only for admins."},"NewTagIndexEntry":{"properties":{"tag":{"$ref":"#/components/schemas/TagResponse"},"created_at":{"type":"integer","title":"Created At"},"pending_gts_count":{"type":"integer","title":"Pending Gts Count"}},"type":"object","required":["tag","created_at","pending_gts_count"],"title":"NewTagIndexEntry","description":"A recently community-minted tag with the count of pending tag-change\nsuggestions that reference it."},"NewTagIndexResponse":{"properties":{"result":{"items":{"$ref":"#/components/schemas/NewTagIndexEntry"},"type":"array","title":"Result"}},"type":"object","required":["result"],"title":"NewTagIndexResponse"},"PageInfo":{"properties":{"number":{"type":"integer","title":"Number"},"path":{"type":"string","title":"Path"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"thumbnail":{"type":"string","title":"Thumbnail"},"thumbnail_width":{"type":"integer","title":"Thumbnail Width"},"thumbnail_height":{"type":"integer","title":"Thumbnail Height"}},"type":"object","required":["number","path","width","height","thumbnail","thumbnail_width","thumbnail_height"],"title":"PageInfo","description":"Full page/image details for reader."},"PaginatedResponse_CommentResponse_":{"properties":{"result":{"items":{"$ref":"#/components/schemas/CommentResponse"},"type":"array","title":"Result"},"num_pages":{"type":"integer","title":"Num Pages"},"per_page":{"type":"integer","title":"Per Page","default":25},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["result","num_pages"],"title":"PaginatedResponse[CommentResponse]"},"PaginatedResponse_GalleryListItem_":{"properties":{"result":{"items":{"$ref":"#/components/schemas/GalleryListItem"},"type":"array","title":"Result"},"num_pages":{"type":"integer","title":"Num Pages"},"per_page":{"type":"integer","title":"Per Page","default":25},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["result","num_pages"],"title":"PaginatedResponse[GalleryListItem]"},"PoWChallengeResponse":{"properties":{"challenge":{"type":"string","title":"Challenge"},"difficulty":{"type":"integer","title":"Difficulty"}},"type":"object","required":["challenge","difficulty"],"title":"PoWChallengeResponse"},"PopunderInventoryResponse":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"delta":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delta"}},"type":"object","title":"PopunderInventoryResponse","description":"Response for popunder inventory request."},"RecentComment":{"properties":{"id":{"type":"integer","title":"Id"},"gallery_id":{"type":"integer","title":"Gallery Id"},"body":{"type":"string","title":"Body"},"post_date":{"type":"integer","title":"Post Date"},"gallery_title":{"type":"string","title":"Gallery Title"}},"type":"object","required":["id","gallery_id","body","post_date","gallery_title"],"title":"RecentComment","description":"Comment preview for profile."},"RecentFavorite":{"properties":{"id":{"type":"integer","title":"Id"},"media_id":{"type":"string","title":"Media Id"},"thumbnail":{"type":"string","title":"Thumbnail"},"thumbnail_width":{"type":"integer","title":"Thumbnail Width"},"thumbnail_height":{"type":"integer","title":"Thumbnail Height"},"english_title":{"type":"string","title":"English Title"},"japanese_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Japanese Title"},"num_pages":{"type":"integer","title":"Num Pages","default":0},"tag_ids":{"items":{"type":"integer"},"type":"array","title":"Tag Ids","default":[]}},"type":"object","required":["id","media_id","thumbnail","thumbnail_width","thumbnail_height","english_title"],"title":"RecentFavorite","description":"Gallery info for recent favorites on profile page."},"RecordPopunderRequest":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","const":"popunder","title":"Type","default":"popunder"},"record":{"type":"boolean","title":"Record","default":true}},"type":"object","required":["name"],"title":"RecordPopunderRequest","description":"Request to record a popunder event."},"RecordPopunderResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true}},"type":"object","title":"RecordPopunderResponse","description":"Response for record popunder request."},"RefreshResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"user":{"$ref":"#/components/schemas/UserInfo"}},"type":"object","required":["access_token","refresh_token","user"],"title":"RefreshResponse"},"RelatedGalleriesResponse":{"properties":{"result":{"items":{"$ref":"#/components/schemas/GalleryListItem"},"type":"array","title":"Result"}},"type":"object","required":["result"],"title":"RelatedGalleriesResponse","description":"Response for related galleries endpoint."},"ResolveSuggestionRequest":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","title":"ResolveSuggestionRequest","description":"Body for moderation accept/reject."},"ResolveTaxonomySuggestionRequest":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"},"name_override":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name Override"},"description_override":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description Override"}},"type":"object","title":"ResolveTaxonomySuggestionRequest","description":"Body for moderation accept/reject."},"ReviewFlagRequest":{"properties":{"action":{"type":"string","enum":["approve","reject"],"title":"Action"}},"type":"object","required":["action"],"title":"ReviewFlagRequest","description":"Request body for reviewing a comment flag."},"ReviewFlagResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"is_user_shadowbanned":{"type":"boolean","title":"Is User Shadowbanned","default":false}},"type":"object","required":["success"],"title":"ReviewFlagResponse","description":"Response for flag review actions."},"SessionListItem":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"integer","title":"Created At"},"expires_at":{"type":"integer","title":"Expires At"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Address"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"current":{"type":"boolean","title":"Current","default":false}},"type":"object","required":["id","created_at","expires_at"],"title":"SessionListItem"},"ShadowbanResponse":{"properties":{"shadowbanned":{"type":"boolean","title":"Shadowbanned"}},"type":"object","required":["shadowbanned"],"title":"ShadowbanResponse","description":"Response for shadowban actions."},"SubmitEditRequest":{"properties":{"created_tags":{"items":{"$ref":"#/components/schemas/CreatedTag"},"type":"array","maxItems":50,"title":"Created Tags","default":[]},"added_tags":{"items":{"type":"integer"},"type":"array","maxItems":100,"title":"Added Tags","default":[]},"removed_tags":{"items":{"type":"integer"},"type":"array","maxItems":100,"title":"Removed Tags","default":[]}},"type":"object","title":"SubmitEditRequest","description":"Request body for submitting a gallery edit."},"SubmitEditResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"edit_id":{"type":"integer","title":"Edit Id"},"auto_applied":{"type":"boolean","title":"Auto Applied"}},"type":"object","required":["success","edit_id","auto_applied"],"title":"SubmitEditResponse","description":"Response for edit submission."},"SuccessResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","title":"SuccessResponse","description":"Simple success response."},"SuggestionListResponse":{"properties":{"result":{"items":{"$ref":"#/components/schemas/SuggestionResponse"},"type":"array","title":"Result"},"has_more":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has More"},"num_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Pages"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["result"],"title":"SuggestionListResponse"},"SuggestionProposer":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["id","username"],"title":"SuggestionProposer"},"SuggestionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"gallery_id":{"type":"integer","title":"Gallery Id"},"tag":{"$ref":"#/components/schemas/SuggestionTag"},"action":{"type":"string","enum":["add","remove"],"title":"Action"},"status":{"type":"string","enum":["pending","accepted","rejected","superseded"],"title":"Status"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"voter_count":{"type":"integer","title":"Voter Count"},"proposer":{"$ref":"#/components/schemas/SuggestionProposer"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"resolver":{"anyOf":[{"$ref":"#/components/schemas/SuggestionProposer"},{"type":"null"}]},"resolution_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Note"},"reverted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reverted At"},"reverter":{"anyOf":[{"$ref":"#/components/schemas/SuggestionProposer"},{"type":"null"}]},"my_vote":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"My Vote"},"tier":{"anyOf":[{"type":"string","enum":["trending","active","declined","hidden"]},{"type":"null"}],"title":"Tier"}},"type":"object","required":["id","gallery_id","tag","action","status","voter_count","proposer","created_at"],"title":"SuggestionResponse"},"SuggestionTag":{"properties":{"id":{"type":"integer","title":"Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"url":{"type":"string","title":"Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","type","name","slug","url"],"title":"SuggestionTag"},"SuggestionTierCounts":{"properties":{"trending":{"type":"integer","title":"Trending","default":0},"active":{"type":"integer","title":"Active","default":0},"declined":{"type":"integer","title":"Declined","default":0},"hidden":{"type":"integer","title":"Hidden","default":0}},"type":"object","title":"SuggestionTierCounts"},"TagPaginatedResponse":{"properties":{"result":{"items":{"$ref":"#/components/schemas/TagResponse"},"type":"array","title":"Result"},"num_pages":{"type":"integer","title":"Num Pages"},"per_page":{"type":"integer","title":"Per Page","default":120},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"alphabet":{"anyOf":[{"additionalProperties":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}]},"type":"object"},{"type":"null"}],"title":"Alphabet"}},"type":"object","required":["result","num_pages"],"title":"TagPaginatedResponse","description":"Paginated tag response with optional alphabet mapping."},"TagResponse":{"properties":{"id":{"type":"integer","title":"Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"url":{"type":"string","title":"Url"},"count":{"type":"integer","title":"Count"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_community":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Community"},"pending_describe_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Describe Id"}},"type":"object","required":["id","type","name","slug","url","count"],"title":"TagResponse","description":"Tag response matching Django format."},"TaxonomyCommentAuthor":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"slug":{"type":"string","title":"Slug"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"is_staff":{"type":"boolean","title":"Is Staff","default":false},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false}},"type":"object","required":["id","username","slug"],"title":"TaxonomyCommentAuthor"},"TaxonomyCommentListResponse":{"properties":{"result":{"items":{"$ref":"#/components/schemas/TaxonomyCommentResponse"},"type":"array","title":"Result"},"has_more":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has More"},"num_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Pages"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["result"],"title":"TaxonomyCommentListResponse"},"TaxonomyCommentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"body":{"type":"string","title":"Body"},"author":{"$ref":"#/components/schemas/TaxonomyCommentAuthor"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"can_delete":{"type":"boolean","title":"Can Delete","default":false},"link_previews":{"items":{"oneOf":[{"$ref":"#/components/schemas/TaxonomyLinkPreview"},{"$ref":"#/components/schemas/GalleryLinkPreview"}],"discriminator":{"propertyName":"kind","mapping":{"gallery":"#/components/schemas/GalleryLinkPreview","taxonomy":"#/components/schemas/TaxonomyLinkPreview"}}},"type":"array","title":"Link Previews","default":[]}},"type":"object","required":["id","body","author","created_at"],"title":"TaxonomyCommentResponse"},"TaxonomyLinkPreview":{"properties":{"start":{"type":"integer","title":"Start"},"end":{"type":"integer","title":"End"},"matched":{"type":"string","title":"Matched"},"kind":{"type":"string","const":"taxonomy","title":"Kind","default":"taxonomy"},"suggestion":{"$ref":"#/components/schemas/TaxonomySuggestionResponse"}},"type":"object","required":["start","end","matched","suggestion"],"title":"TaxonomyLinkPreview"},"TaxonomySuggestionEditChange":{"properties":{"field":{"type":"string","title":"Field"},"old_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Value"},"new_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Value"}},"type":"object","required":["field"],"title":"TaxonomySuggestionEditChange","description":"One field's before/after within an edit. Tag-valued fields (target_tag,\nmerge_into_tag) carry a human-readable 'type:name' snapshot rather than an\nid, so the history renders even after the tag is deleted."},"TaxonomySuggestionEditEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"changes":{"items":{"$ref":"#/components/schemas/TaxonomySuggestionEditChange"},"type":"array","title":"Changes"},"editor":{"anyOf":[{"$ref":"#/components/schemas/TaxonomySuggestionProposer"},{"type":"null"}]}},"type":"object","required":["id","created_at","changes"],"title":"TaxonomySuggestionEditEntry","description":"One edit event: everything a single PATCH changed, plus who/when and an\noptional free-text summary describing why."},"TaxonomySuggestionEditListResponse":{"properties":{"result":{"items":{"$ref":"#/components/schemas/TaxonomySuggestionEditEntry"},"type":"array","title":"Result"}},"type":"object","required":["result"],"title":"TaxonomySuggestionEditListResponse"},"TaxonomySuggestionListResponse":{"properties":{"result":{"items":{"$ref":"#/components/schemas/TaxonomySuggestionResponse"},"type":"array","title":"Result"},"has_more":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has More"},"num_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Num Pages"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["result"],"title":"TaxonomySuggestionListResponse"},"TaxonomySuggestionProposer":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["id","username"],"title":"TaxonomySuggestionProposer"},"TaxonomySuggestionResolver":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["id","username"],"title":"TaxonomySuggestionResolver","description":"Staff who resolved a suggestion. Included on resolved entries."},"TaxonomySuggestionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"action":{"type":"string","enum":["create","rename","merge","describe"],"title":"Action"},"status":{"type":"string","enum":["pending","accepted","rejected","withdrawn"],"title":"Status"},"score":{"type":"integer","title":"Score"},"voter_count":{"type":"integer","title":"Voter Count"},"proposer":{"$ref":"#/components/schemas/TaxonomySuggestionProposer"},"proposer_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposer Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"edited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Edited At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"resolution_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution Note"},"resolver":{"anyOf":[{"$ref":"#/components/schemas/TaxonomySuggestionResolver"},{"type":"null"}]},"target_tag":{"anyOf":[{"$ref":"#/components/schemas/TaxonomySuggestionTag"},{"type":"null"}]},"merge_into_tag":{"anyOf":[{"$ref":"#/components/schemas/TaxonomySuggestionTag"},{"type":"null"}]},"new_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Name"},"new_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Type"},"new_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Description"},"accepted_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accepted Type"},"accepted_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accepted Name"},"accepted_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accepted Description"},"resolved_tag":{"anyOf":[{"$ref":"#/components/schemas/TaxonomySuggestionTag"},{"type":"null"}]},"my_vote":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"My Vote"},"tier":{"anyOf":[{"type":"string","enum":["trending","active","declined","hidden","mine"]},{"type":"null"}],"title":"Tier"},"tier_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tier Page"},"comment_count":{"type":"integer","title":"Comment Count","default":0},"recent_comments":{"items":{"$ref":"#/components/schemas/TaxonomyCommentResponse"},"type":"array","title":"Recent Comments","default":[]}},"type":"object","required":["id","action","status","score","voter_count","proposer","created_at"],"title":"TaxonomySuggestionResponse"},"TaxonomySuggestionStats":{"properties":{"pending":{"type":"integer","title":"Pending"},"accepted_total":{"type":"integer","title":"Accepted Total"},"rejected_total":{"type":"integer","title":"Rejected Total"},"accepted_30d":{"type":"integer","title":"Accepted 30D"},"accepted_7d":{"type":"integer","title":"Accepted 7D"},"created_30d":{"type":"integer","title":"Created 30D"},"renamed_30d":{"type":"integer","title":"Renamed 30D"},"merged_30d":{"type":"integer","title":"Merged 30D"},"described_30d":{"type":"integer","title":"Described 30D"},"trending_count":{"type":"integer","title":"Trending Count","default":0},"active_count":{"type":"integer","title":"Active Count","default":0},"declined_count":{"type":"integer","title":"Declined Count","default":0},"recent_accepted":{"items":{"$ref":"#/components/schemas/TaxonomySuggestionResponse"},"type":"array","title":"Recent Accepted"}},"type":"object","required":["pending","accepted_total","rejected_total","accepted_30d","accepted_7d","created_30d","renamed_30d","merged_30d","described_30d","recent_accepted"],"title":"TaxonomySuggestionStats","description":"Taxonomy activity summary: pending count + recently-accepted suggestions."},"TaxonomySuggestionTag":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["type","name","slug"],"title":"TaxonomySuggestionTag"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"user":{"$ref":"#/components/schemas/UserInfo"}},"type":"object","required":["access_token","refresh_token","user"],"title":"TokenResponse"},"UpdateProfileRequest":{"properties":{"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"about":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"About"},"favorite_tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favorite Tags"},"theme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Theme"},"current_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Password"},"new_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Password"},"default_avatar":{"anyOf":[{"type":"string","enum":["default","classic"]},{"type":"null"}],"title":"Default Avatar"}},"type":"object","title":"UpdateProfileRequest","description":"Request body for updating user profile."},"UpdateProfileResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"username":{"type":"string","title":"Username"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"avatar_url":{"type":"string","title":"Avatar Url"},"about":{"type":"string","title":"About","default":""},"favorite_tags":{"type":"string","title":"Favorite Tags","default":""},"theme":{"type":"string","title":"Theme","default":"black"}},"type":"object","required":["success","username","avatar_url"],"title":"UpdateProfileResponse","description":"Response for profile update."},"UserInfo":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"slug":{"type":"string","title":"Slug"},"avatar_url":{"type":"string","title":"Avatar Url"},"theme":{"type":"string","title":"Theme","default":"black"},"is_staff":{"type":"boolean","title":"Is Staff","default":false},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false}},"type":"object","required":["id","username","slug","avatar_url"],"title":"UserInfo","description":"User info returned in token responses."},"UserMeResponse":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"slug":{"type":"string","title":"Slug"},"avatar_url":{"type":"string","title":"Avatar Url"},"theme":{"type":"string","title":"Theme","default":"black"},"is_staff":{"type":"boolean","title":"Is Staff","default":false},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false},"about":{"type":"string","title":"About","default":""},"favorite_tags":{"type":"string","title":"Favorite Tags","default":""},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["id","username","slug","avatar_url"],"title":"UserMeResponse","description":"Full user profile. Email hidden for API key auth."},"UserProfileResponse":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"slug":{"type":"string","title":"Slug"},"avatar_url":{"type":"string","title":"Avatar Url"},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false},"is_staff":{"type":"boolean","title":"Is Staff","default":false},"date_joined":{"type":"integer","title":"Date Joined"},"about":{"type":"string","title":"About","default":""},"favorite_tags":{"type":"string","title":"Favorite Tags","default":""},"recent_favorites":{"items":{"$ref":"#/components/schemas/RecentFavorite"},"type":"array","title":"Recent Favorites"},"recent_comments":{"items":{"$ref":"#/components/schemas/RecentComment"},"type":"array","title":"Recent Comments"}},"type":"object","required":["id","username","slug","avatar_url","date_joined","recent_favorites","recent_comments"],"title":"UserProfileResponse","description":"Full user profile response."},"UserPublic":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"slug":{"type":"string","title":"Slug"},"avatar_url":{"type":"string","title":"Avatar Url"},"is_superuser":{"type":"boolean","title":"Is Superuser","default":false},"is_staff":{"type":"boolean","title":"Is Staff","default":false}},"type":"object","required":["id","username","slug","avatar_url"],"title":"UserPublic","description":"Public user information (shown in comments, etc.)."},"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"},"VoteRequest":{"properties":{"accept":{"type":"boolean","title":"Accept"}},"type":"object","required":["accept"],"title":"VoteRequest","description":"Request body for voting on an edit."},"VoteResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"upvotes":{"type":"integer","title":"Upvotes"},"downvotes":{"type":"integer","title":"Downvotes"}},"type":"object","required":["success","upvotes","downvotes"],"title":"VoteResponse","description":"Response for vote action."},"ZonesResponse":{"properties":{"zones":{"additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/HtmlSlot"},{"$ref":"#/components/schemas/CreativeSlot"}],"discriminator":{"propertyName":"type","mapping":{"creative":"#/components/schemas/CreativeSlot","html":"#/components/schemas/HtmlSlot"}}},"type":"object","title":"Zones"}},"type":"object","required":["zones"],"title":"ZonesResponse","description":"All-zones response. Missing key = no ad for that slot."}},"securitySchemes":{"User Token":{"type":"apiKey","description":"User access token: `User <token>`","in":"header","name":"Authorization"},"API Key":{"type":"apiKey","description":"API key: `Key <api_key>`","in":"header","name":"Authorization"}}},"tags":[{"name":"default"},{"name":"cdn","description":"Gallery and thumbnail `path` values are relative. Fetch available servers from `GET /api/v2/cdn` and concatenate one with the `path` to form a full URL. **Don't hardcode specific subdomains;** the list can change.\n\n**Use the `path` exactly as returned.** Don't construct paths by guessing extensions, suffixes, or numbering. The CDN strictly validates URL patterns and silently rejects anything that doesn't match a known media route. Clients that do this repeatedly will eventually receive an **extended ban**.\n\nRate limits are generous for normal browsing. Brief bursts (like loading a full gallery's thumbnails at once) are absorbed without `429`s. Clients that sustain rates well beyond typical browsing, or repeatedly request invalid URL patterns, will be **temporarily banned**. Bans are short and self-expiring. **Treat `429` as a backoff signal.**\n\n**Note: full-gallery archives have a dedicated endpoint at `POST /api/v2/galleries/{id}/download`. Don't reconstruct them by walking page URLs on the CDN.**"},{"name":"galleries","description":"Browse, search, and retrieve gallery data."},{"name":"tags","description":"Tag lookup, listing, and search."},{"name":"GTS","description":"Gallery tag suggestions. Users propose adding/removing a tag on a gallery and vote on others' suggestions; staff accept or reject."},{"name":"taxonomy","description":"Community proposals against the global tag taxonomy: create, rename, merge, or describe. Resolved entries are a public ledger with the staff resolution_note attached."},{"name":"search","description":"Full-text gallery search with filters."},{"name":"comments","description":"Gallery comments."},{"name":"users","description":"Public user profiles."},{"name":"favorites","description":"Favorite gallery management."},{"name":"blacklist","description":"Tag blacklist management."},{"name":"zones"},{"name":"user","description":"**First-party and internal only**, bar `GET /api/v2/user`. These endpoints are documented for API completeness and should NOT be used by third-party clients. They are intended only for nhentai's own services and will be enforced. Third-party applications should authenticate using API keys via `Authorization: Key YOUR_API_KEY`."},{"name":"auth","description":"**First-party and internal only.** These endpoints are documented for API completeness and should NOT be used by third-party clients. They are intended only for nhentai's own services and will be enforced. Third-party applications should authenticate using API keys via `Authorization: Key YOUR_API_KEY`."},{"name":"moderation","description":"Staff-only moderation tools."}]}