{"note":"OpenAPI conversion -- returning structured metadata","name":"dev-to","description":"Forem API V1","version":"1.0.0","base_url":"https://dev.to","endpoints":159,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Forem API V1\n@base https://dev.to\n@version 1.0.0\n@auth ApiKey api-key in header | Bearer bearer\n@endpoints 159\n@hint download_for_search\n@toc api(159)\n\n@endpoint GET /api/agent_sessions\n@desc list the authenticated user's agent sessions\n@returns(200) successful\n@errors {401: unauthorized}\n\n@endpoint POST /api/agent_sessions\n@desc upload a new agent session\n@required {curated_data: str # JSON string of curated session data with messages array and metadata.}\n@optional {title: str # Title for the session (auto-generated if omitted), s3_key: str # S3 object key from presign endpoint (optional)., tool_name: str(antigravity_cli/claude_code/codex/gemini_cli/github_copilot/opencode/pi) # Tool that produced the session (e.g. claude_code, codex).}\n@returns(201) {id: int(int64), slug: str, title: str, tool_name: str, total_messages: int(int32), published: bool, created_at: str(date-time), updated_at: str(date-time), url: str(url)} # created\n@errors {401: unauthorized, 422: unprocessable}\n\n@endpoint GET /api/agent_sessions/{id}\n@desc show details for an agent session\n@required {id: str # The unique slug or ID of the agent session.}\n@returns(200) {id: int(int64), slug: str, title: str, tool_name: str, total_messages: int(int32), curated_count: int(int32), published: bool, metadata: map?, messages: [map], slices: [map], created_at: str(date-time), updated_at: str(date-time), url: str(url)} # successful\n@errors {401: unauthorized, 404: not found}\n\n@endpoint POST /api/agent_sessions/presign\n@desc request a presigned URL to upload raw session transcript to S3\n@required {content_length: int # Exact size of the raw transcript in bytes.}\n@returns(200) {s3_key: str, presigned_url: str, headers: map{Content-Type: str, Content-Length: str, x-amz-acl: str}} # successful\n@errors {401: unauthorized, 422: missing or too large content_length, 429: too many requests, 503: service unavailable}\n\n@endpoint GET /api/agent_sessions/{id}/raw_url\n@desc request a presigned S3 GET URL to download the raw session transcript\n@required {id: str # The unique slug or ID of the agent session.}\n@returns(200) {raw_url: str} # successful\n@errors {401: unauthorized, 404: not found}\n\n@endpoint GET /api/analytics/totals\n@desc Retrieve analytics totals\n@optional {article_id: int # Optional ID to limit totals to a single article., organization_id: int # Optional ID to limit totals to an organization's articles.}\n@returns(200) successful\n\n@endpoint GET /api/analytics/historical\n@desc Retrieve historical analytics\n@required {start: str # Start date (YYYY-MM-DD format).}\n@optional {end: str # End date (YYYY-MM-DD format)., article_id: int # Limit stats to a single article., organization_id: int # Limit stats to an organization's articles.}\n@returns(200) successful\n\n@endpoint GET /api/analytics/past_day\n@desc Retrieve analytics for the past day\n@optional {article_id: int, organization_id: int}\n@returns(200) successful\n\n@endpoint GET /api/analytics/referrers\n@desc Retrieve referrer analytics\n@optional {start: str, end: str, article_id: int, organization_id: int}\n@returns(200) successful\n\n@endpoint GET /api/analytics/top_contributors\n@desc Retrieve top contributors analytics\n@optional {start: str, end: str, article_id: int, organization_id: int}\n@returns(200) successful\n\n@endpoint GET /api/analytics/follower_engagement\n@desc Retrieve follower engagement analytics\n@optional {start: str, end: str}\n@returns(200) successful\n\n@endpoint GET /api/analytics/dashboard\n@desc Retrieve dashboard analytics bundle\n@optional {start: str, end: str, article_id: int, organization_id: int}\n@returns(200) successful\n\n@endpoint GET /api/analytics/heatmap\n@desc Retrieve heatmap activity\n@optional {end: str}\n@returns(200) successful\n\n@endpoint POST /api/articles\n@desc Publish article\n@optional {article: map{title: str, body_markdown: str, published: bool, series: str, main_image: str, canonical_url: str, description: str, tags: [str], organization_id: int, ai_disclosure_level: str}}\n@returns(201) An Article\n@errors {401: Unauthorized, 422: Unprocessable Entity}\n\n@endpoint GET /api/articles\n@desc Published articles\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable., tag: str # Using this parameter will retrieve articles that contain the requested tag. Articles will be ordered by descending popularity.This parameter can be used in conjuction with `top`., tags: str # Using this parameter will retrieve articles with any of the comma-separated tags. Articles will be ordered by descending popularity., tags_exclude: str # Using this parameter will retrieve articles that do _not_ contain _any_ of comma-separated tags. Articles will be ordered by descending popularity., username: str # Using this parameter will retrieve articles belonging             to a User or Organization ordered by descending publication date.             If `state=all` the number of items returned will be `1000` instead of the default `30`.             This parameter can be used in conjuction with `state`., state: str(fresh/rising/all) # Using this parameter will allow the client to check which articles are fresh or rising.             If `state=fresh` the server will return fresh articles.             If `state=rising` the server will return rising articles.             This param can be used in conjuction with `username`, only if set to `all`., top: int(int32) # Using this parameter will allow the client to return the most popular articles in the last `N` days (clamped to a maximum of `730` days). `top` indicates the number of days since publication of the articles returned. This param can be used in conjuction with `tag`., collection_id: int(int32) # Adding this will allow the client to return the list of articles belonging to the requested collection, ordered by ascending publication date.}\n@returns(200) A List of Articles\n\n@endpoint GET /api/articles/search\n@desc Search for articles\n@optional {q: str # The search query term. Matches against article titles, tags, and body content., top: int # Restricts search results to articles published within the last `N` days (clamped to a maximum of `730` days)., page: int # Pagination page index., per_page: int # The number of items to return per page.}\n@returns(200) A List of Articles\n\n@endpoint GET /api/articles/latest\n@desc Published articles sorted by published date\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) A List of Articles\n\n@endpoint GET /api/articles/{id}\n@desc Published article by id\n@required {id: int # The unique numerical ID of the published article.}\n@returns(200) An Article\n@errors {404: Article Not Found}\n\n@endpoint PUT /api/articles/{id}\n@desc Update an article by id\n@required {id: int(int32) # The unique numerical ID of the article to update.}\n@optional {article: map{title: str, body_markdown: str, published: bool, series: str, main_image: str, canonical_url: str, description: str, tags: [str], organization_id: int, ai_disclosure_level: str}}\n@returns(200) An Article\n@errors {401: Unauthorized, 404: Article Not Found, 422: Unprocessable Entity}\n\n@endpoint GET /api/articles/{username}/{slug}\n@desc Published article by path\n@required {username: str # The username of the article's author or organization., slug: str # The URL-friendly slug of the article (e.g. `my-first-post-1234`).}\n@returns(200) An Article\n@errors {404: Article Not Found}\n\n@endpoint GET /api/articles/me\n@desc User's articles\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) A List of the authenticated user's Articles\n@errors {401: Unauthorized}\n\n@endpoint GET /api/articles/me/published\n@desc User's published articles\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) A List of the authenticated user's Articles\n@errors {401: Unauthorized}\n\n@endpoint GET /api/articles/me/unpublished\n@desc User's unpublished articles\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) A List of the authenticated user's Articles\n@errors {401: Unauthorized}\n\n@endpoint GET /api/articles/me/all\n@desc User's all articles\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) A List of the authenticated user's Articles\n@errors {401: Unauthorized}\n\n@endpoint PUT /api/articles/{id}/unpublish\n@desc Unpublish an article\n@required {id: int(int32) # The ID of the article to unpublish.}\n@optional {note: str # Content for the note that's created along with unpublishing}\n@returns(204) Article successfully unpublished\n@errors {401: Unauthorized, 404: Article Not Found}\n\n@endpoint GET /api/articles/semantic_search\n@desc Perform a semantic fuzzy search on articles\n@required {q: str # The search query term to match semantically.}\n@optional {per_page: int # Limit of articles returned (default 30, max 100)., page: int # Pagination page index., threshold: num # Optional cosine distance threshold (between 0.0 and 2.0) to filter results.}\n@returns(200) successful\n@errors {400: bad request, 401: unauthorized}\n\n@endpoint POST /api/articles/preview\n@desc Preview an article\n@optional {article: map{title: str, body_markdown: str, published: bool, series: str, main_image: str, canonical_url: str, description: str, tags: [str], organization_id: int, ai_disclosure_level: str}}\n@returns(200) {processed_html: str, body_html: str, title: str?, description: str?, tags: [str]?, cover_image: str?, reading_time_minutes: int, ai_disclosure_level: str?} # Rendered Article Preview\n@errors {401: Unauthorized, 422: Unprocessable Entity}\n\n@endpoint GET /api/segments\n@desc Manually managed audience segments\n@optional {per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) A List of manually managed audience segments\n@errors {401: Unauthorized}\n\n@endpoint POST /api/segments\n@desc Create a manually managed audience segment\n@returns(201) A manually managed audience segment\n@errors {401: Unauthorized}\n\n@endpoint GET /api/segments/{id}\n@desc A manually managed audience segment\n@required {id: int(int32) # Unique segment numerical ID.}\n@returns(200) The audience segment\n@errors {401: Unauthorized, 404: Audience Segment Not Found}\n\n@endpoint DELETE /api/segments/{id}\n@desc Delete a manually managed audience segment\n@required {id: int(int32) # Unique segment numerical ID.}\n@returns(200) The deleted audience segment\n@errors {401: Unauthorized, 404: Audience Segment Not Found, 409: Audience segment could not be deleted}\n\n@endpoint GET /api/segments/{id}/users\n@desc Users in a manually managed audience segment\n@required {id: int(int32) # Unique segment numerical ID.}\n@optional {per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) A List of users in the audience segment\n@errors {401: Unauthorized, 404: Audience Segment Not Found}\n\n@endpoint PUT /api/segments/{id}/add_users\n@desc Add users to a manually managed audience segment\n@required {id: int(int32) # Unique segment numerical ID.}\n@optional {user_ids: [int]}\n@returns(200) Result of adding the users to the segment.\n@errors {401: Unauthorized, 404: Audience Segment Not Found, 422: Unprocessable Entity}\n\n@endpoint PUT /api/segments/{id}/remove_users\n@desc Remove users from a manually managed audience segment\n@required {id: int(int32) # Unique segment numerical ID.}\n@optional {user_ids: [int]}\n@returns(200) Result of removing the users to the segment.\n@errors {401: Unauthorized, 404: Audience Segment Not Found, 422: Unprocessable Entity}\n\n@endpoint GET /api/badge_achievements\n@desc Retrieve all badge achievements\n@optional {page: int # Pagination page index.}\n@returns(200) successful\n\n@endpoint POST /api/badge_achievements\n@desc Create a badge achievement\n@optional {badge_achievement: map{user_id!: int, badge_id!: int, rewarding_context_message_markdown: str, include_default_description: bool, metadata: map}}\n@returns(201) {id: int(int64), user_id: int(int64), badge_id: int(int64), rewarding_context_message_markdown: str?, include_default_description: bool, metadata: map, created_at: str(date-time), updated_at: str(date-time)} # created\n@errors {409: conflict, 422: unprocessable}\n\n@endpoint GET /api/badge_achievements/{id}\n@desc Retrieve a badge achievement's details\n@required {id: int # Badge achievement unique ID.}\n@returns(200) {id: int(int64), user_id: int(int64), badge_id: int(int64), rewarding_context_message_markdown: str?, include_default_description: bool, metadata: map, created_at: str(date-time), updated_at: str(date-time)} # successful\n\n@endpoint DELETE /api/badge_achievements/{id}\n@desc Delete a badge achievement\n@required {id: int # Badge achievement unique ID to delete.}\n@returns(204) no content\n\n@endpoint GET /api/badges\n@desc Retrieve all badges\n@optional {page: int # Pagination page index.}\n@returns(200) successful\n\n@endpoint POST /api/badges\n@desc Create a badge\n@optional {badge: map{title!: str, description!: str, remote_badge_image_url!: str, credits_awarded: int, allow_multiple_awards: bool}}\n@returns(201) {id: int(int64), title: str, slug: str, description: str, badge_image: map?{url: str}, credits_awarded: int, allow_multiple_awards: bool, created_at: str(date-time), updated_at: str(date-time)} # created\n\n@endpoint GET /api/badges/{id}\n@desc Retrieve a badge's details\n@required {id: int # Unique badge ID.}\n@returns(200) {id: int(int64), title: str, slug: str, description: str, badge_image: map?{url: str}, credits_awarded: int, allow_multiple_awards: bool, created_at: str(date-time), updated_at: str(date-time)} # successful\n\n@endpoint PATCH /api/badges/{id}\n@desc Update a badge\n@required {id: int # Unique badge ID to update.}\n@optional {badge: map{title: str, description: str, credits_awarded: int, allow_multiple_awards: bool}}\n@returns(200) {id: int(int64), title: str, slug: str, description: str, badge_image: map?{url: str}, credits_awarded: int, allow_multiple_awards: bool, created_at: str(date-time), updated_at: str(date-time)} # successful\n\n@endpoint DELETE /api/badges/{id}\n@desc Delete a badge\n@required {id: int # Unique badge ID to delete.}\n@returns(204) no content\n\n@endpoint GET /api/billboard_campaigns\n@desc Billboard campaigns\n@returns(200) successful\n@errors {401: unauthorized}\n\n@endpoint POST /api/billboard_campaigns\n@desc Create a billboard campaign\n@required {name: str # The campaign name (required)}\n@optional {id: int # The ID of the BillboardCampaign, organization_id: int # Optional organization that owns the campaign, expires_at: str(date-time) # Timestamp when the campaign expires and its billboards are taken down, max_impressions_count: int # Total impression cap across the campaign's billboards (0 means no cap), max_clicks_count: int # Total click cap across the campaign's billboards (0 means no cap), ideal_daily_impressions: int # Target daily impressions for automated 10-minute titration (0 disables pacing), delivery_throttle_rate: num # Current automated pass-through delivery rate (0.0 to 1.0) managed by the titration worker, created_at: str(date-time), updated_at: str(date-time)}\n@returns(201) {id: int, name: str, organization_id: int?, expires_at: str(date-time)?, max_impressions_count: int, max_clicks_count: int, ideal_daily_impressions: int, delivery_throttle_rate: num, created_at: str(date-time), updated_at: str(date-time)} # A billboard campaign\n@errors {401: unauthorized, 422: unprocessable}\n\n@endpoint GET /api/billboard_campaigns/{id}\n@desc A billboard campaign\n@returns(200) {id: int, name: str, organization_id: int?, expires_at: str(date-time)?, max_impressions_count: int, max_clicks_count: int, ideal_daily_impressions: int, delivery_throttle_rate: num, created_at: str(date-time), updated_at: str(date-time)} # successful\n@errors {401: unauthorized, 404: not found}\n\n@endpoint PUT /api/billboard_campaigns/{id}\n@desc Update a billboard campaign\n@required {name: str # The campaign name (required)}\n@optional {id: int # The ID of the BillboardCampaign, organization_id: int # Optional organization that owns the campaign, expires_at: str(date-time) # Timestamp when the campaign expires and its billboards are taken down, max_impressions_count: int # Total impression cap across the campaign's billboards (0 means no cap), max_clicks_count: int # Total click cap across the campaign's billboards (0 means no cap), ideal_daily_impressions: int # Target daily impressions for automated 10-minute titration (0 disables pacing), delivery_throttle_rate: num # Current automated pass-through delivery rate (0.0 to 1.0) managed by the titration worker, created_at: str(date-time), updated_at: str(date-time)}\n@returns(200) {id: int, name: str, organization_id: int?, expires_at: str(date-time)?, max_impressions_count: int, max_clicks_count: int, ideal_daily_impressions: int, delivery_throttle_rate: num, created_at: str(date-time), updated_at: str(date-time)} # successful\n@errors {401: unauthorized, 403: missing sub-permissions}\n\n@endpoint GET /api/billboards\n@desc Billboards\n@returns(200) successful\n@errors {401: unauthorized}\n\n@endpoint POST /api/billboards\n@desc Create a billboard\n@returns(201) A billboard\n@errors {401: unauthorized, 403: missing sub-permissions, 422: unprocessable}\n\n@endpoint GET /api/billboards/{id}\n@desc A billboard (by id)\n@required {id: int(int32) # The ID of the billboard.}\n@returns(200) successful\n@errors {401: unauthorized, 404: Unknown Billboard ID}\n\n@endpoint PUT /api/billboards/{id}\n@desc Update a billboard by ID\n@required {id: int(int32) # The ID of the billboard to update.}\n@returns(200) successful\n@errors {401: unauthorized, 403: missing sub-permissions, 404: not found}\n\n@endpoint PUT /api/billboards/{id}/unpublish\n@desc Unpublish a billboard\n@required {id: int(int32) # The ID of the billboard to unpublish.}\n@returns(204) no content\n@errors {401: unauthorized, 404: not found}\n\n@endpoint POST /api/billboards/preview\n@desc Preview a billboard\n@optional {body_markdown: str # The text (in markdown or raw HTML) of the ad, minimized_body_markdown: str # Optional minimized markdown copy, placement_area: str(sidebar_left/sidebar_left_2/sidebar_right/sidebar_right_second/sidebar_right_third/feed_first/feed_second/feed_third/home_hero/footer/page_fixed_bottom/post_fixed_bottom/post_body_bottom/post_body_bottom_secondary/post_sidebar/post_sidebar_secondary/post_comments/post_comments_secondary/post_comments_mid/digest_first/digest_second/external_feed), render_mode: str(forem_markdown/raw)=forem_markdown}\n@returns(200) {processed_html: str?, minimized_processed_html: str?} # successful\n@errors {401: unauthorized, 422: unprocessable}\n\n@endpoint GET /api/comments\n@desc Comments\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable., a_id: str # Article identifier. Provide this to fetch comments belonging to a specific article., p_id: str # Podcast Episode identifier. Provide this to fetch comments belonging to a specific podcast episode., page: str # Pagination page index for top-level comments.}\n@returns(200) A List of Comments\n@errors {404: Resource Not Found}\n\n@endpoint GET /api/comments/{id}\n@desc Comment by id\n@required {id: str # Comment identifier (the unique alpha-numeric `id_code` of the comment).}\n@returns(200) A List of the Comments\n@errors {404: Comment Not Found}\n\n@endpoint POST /api/comments/preview\n@desc Preview a comment\n@optional {body_markdown: str # The comment body in Markdown format}\n@returns(200) {processed_html: str} # Rendered Comment Preview\n@errors {401: Unauthorized, 422: Unprocessable Entity}\n\n@endpoint GET /api/concepts\n@desc Retrieve all accessible concepts\n@optional {page: int # Pagination page index., per_page: int # Number of items to return per page., days: int # Number of days of activity to aggregate for computing the concept popularity/trend score (default is 7 days).}\n@returns(200) successful\n@errors {401: unauthorized}\n\n@endpoint GET /api/concepts/{id}\n@desc Retrieve details of a concept\n@required {id: int # Unique concept numerical ID.}\n@optional {days: int # Number of days of activity to aggregate for the concept popularity/trend score.}\n@returns(200) {id: int(int64), name: str, slug: str, description: str?, parent_id: int(int64)?, score: num(float), similarity_threshold: num(float)?, created_at: str(date-time), updated_at: str(date-time), daily_metrics: [map], top_articles: [map]} # successful\n@errors {401: unauthorized}\n\n@endpoint PATCH /api/concepts/{id}\n@desc Update a concept's metadata\n@required {id: int # Unique concept numerical ID.}\n@optional {concept: map{score: num, description: str, similarity_threshold: num}}\n@returns(200) {id: int(int64), name: str, slug: str, description: str?, parent_id: int(int64)?, score: num(float), similarity_threshold: num(float)?, created_at: str(date-time), updated_at: str(date-time), daily_metrics: [map], top_articles: [map]} # successful\n\n@endpoint GET /api/concepts/{id}/articles\n@desc Retrieve articles mapped to a concept\n@required {id: int # Unique concept numerical ID.}\n@optional {sort: str # Sorting criteria: `score` or default., page: int # Pagination page index., per_page: int # Number of items to return per page.}\n@returns(200) successful\n\n@endpoint GET /api/admin/concepts\n@desc Retrieve all concepts (Admin)\n@optional {page: int, per_page: int}\n@returns(200) successful\n\n@endpoint POST /api/admin/concepts\n@desc Create a concept (Admin)\n@optional {concept: map{name!: str, description: str, parent_id: int, similarity_threshold: num, score: num}}\n@returns(201) {id: int(int64), name: str, slug: str, description: str?, parent_id: int(int64)?, score: num(float), similarity_threshold: num(float)?, created_at: str(date-time), updated_at: str(date-time), daily_metrics: [map], top_articles: [map]} # created\n\n@endpoint GET /api/admin/concepts/{id}\n@desc Retrieve concept detail (Admin)\n@required {id: int}\n@returns(200) {id: int(int64), name: str, slug: str, description: str?, parent_id: int(int64)?, score: num(float), similarity_threshold: num(float)?, created_at: str(date-time), updated_at: str(date-time), daily_metrics: [map], top_articles: [map]} # successful\n\n@endpoint PATCH /api/admin/concepts/{id}\n@desc Update a concept (Admin)\n@required {id: int}\n@optional {concept: map{name: str, description: str, parent_id: int, similarity_threshold: num, score: num}}\n@returns(200) {id: int(int64), name: str, slug: str, description: str?, parent_id: int(int64)?, score: num(float), similarity_threshold: num(float)?, created_at: str(date-time), updated_at: str(date-time), daily_metrics: [map], top_articles: [map]} # successful\n\n@endpoint DELETE /api/admin/concepts/{id}\n@desc Delete a concept (Admin)\n@required {id: int}\n@returns(204) no content\n\n@endpoint POST /api/admin/concepts/{id}/trigger_lookback\n@desc Trigger concept lookback backfill (Admin)\n@required {id: int, days: int}\n@returns(200) successful\n\n@endpoint GET /api/concepts/search\n@desc Perform a semantic fuzzy search on concepts\n@required {q: str # The search query term to match semantically.}\n@optional {per_page: int # Limit of concepts returned (default 10, max 50)., threshold: num # Optional cosine distance threshold (between 0.0 and 2.0) to filter results.}\n@returns(200) successful\n@errors {400: bad request, 401: unauthorized}\n\n@endpoint GET /api/events\n@desc Retrieve events\n@optional {type_of: str(live_stream/takeover/other/challenge/meetup/conference) # Filter events by type.}\n@returns(200) A list of events\n\n@endpoint POST /api/events\n@desc Create an event\n@required {event: map{title!: str, event_name_slug!: str, event_variation_slug!: str, description: str, full_details: str, primary_stream_url: str, published: bool, allow_articles: bool, start_time!: str(date-time), end_time!: str(date-time), type_of: str, organization_id: int, tag_list: str, data: map}}\n@returns(201) {id: int(int64), title: str, event_name_slug: str, event_variation_slug: str, description: str?, full_details: str?, type_of: str, start_time: str(date-time), end_time: str(date-time), published: bool, allow_articles: bool, primary_stream_url: str?, bg_color_hex: str?, broadcast_config: str, broadcast_ended_at: str(date-time)?, user_id: int(int64)?, organization_id: int(int64)?, page_id: int(int64)?, data: map?, tags_array: [str], cached_tag_list: str?, created_at: str(date-time), updated_at: str(date-time)} # Event created\n\n@endpoint GET /api/events/{id}\n@desc Retrieve an event\n@required {id: int # ID of the event.}\n@returns(200) {id: int(int64), title: str, event_name_slug: str, event_variation_slug: str, description: str?, full_details: str?, type_of: str, start_time: str(date-time), end_time: str(date-time), published: bool, allow_articles: bool, primary_stream_url: str?, bg_color_hex: str?, broadcast_config: str, broadcast_ended_at: str(date-time)?, user_id: int(int64)?, organization_id: int(int64)?, page_id: int(int64)?, data: map?, tags_array: [str], cached_tag_list: str?, created_at: str(date-time), updated_at: str(date-time)} # The requested event\n\n@endpoint PATCH /api/events/{id}\n@desc Update an event\n@required {id: int # ID of the event to update., event: map{title!: str, event_name_slug!: str, event_variation_slug!: str, description: str, full_details: str, primary_stream_url: str, published: bool, allow_articles: bool, start_time!: str(date-time), end_time!: str(date-time), type_of: str, organization_id: int, tag_list: str, data: map}}\n@returns(200) {id: int(int64), title: str, event_name_slug: str, event_variation_slug: str, description: str?, full_details: str?, type_of: str, start_time: str(date-time), end_time: str(date-time), published: bool, allow_articles: bool, primary_stream_url: str?, bg_color_hex: str?, broadcast_config: str, broadcast_ended_at: str(date-time)?, user_id: int(int64)?, organization_id: int(int64)?, page_id: int(int64)?, data: map?, tags_array: [str], cached_tag_list: str?, created_at: str(date-time), updated_at: str(date-time)} # Event updated\n\n@endpoint DELETE /api/events/{id}\n@desc Delete an event\n@required {id: int # ID of the event to delete.}\n@returns(204) Event deleted\n\n@endpoint PATCH /api/feedback_messages/{id}\n@desc Update a feedback message's status (Admin)\n@required {id: int # Unique feedback message ID.}\n@optional {feedback_message: map{status!: str}}\n@returns(200) successful\n\n@endpoint GET /api/follows/tags\n@desc Followed Tags\n@returns(200) A List of followed tags\n@errors {401: unauthorized}\n\n@endpoint GET /api/followers/users\n@desc Followers\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable., sort: str # Specifies the sort order for the follow relationship created_at field. Use `created_at` for chronological (oldest first) or `-created_at` for reverse chronological (newest first).}\n@returns(200) A List of followers\n@errors {401: unauthorized}\n\n@endpoint POST /api/follows\n@desc Follow users or organizations\n@optional {user_ids: [int], organization_ids: [int]}\n@returns(200) {outcome: str} # successful\n\n@endpoint GET /api/health_checks/app\n@desc Check app health\n@optional {health-check-token: str # Access token required if token-based security is enabled in settings for health checks.}\n@returns(200) successful\n\n@endpoint GET /api/health_checks/database\n@desc Check database connection\n@optional {health-check-token: str # Access token required if token-based security is enabled in settings for health checks.}\n@returns(200) successful\n\n@endpoint GET /api/health_checks/cache\n@desc Check cache connection\n@optional {health-check-token: str # Access token required if token-based security is enabled in settings for health checks.}\n@returns(200) successful\n\n@endpoint POST /api/images\n@desc upload an image\n@returns(201) {url: str(url)} # created\n@errors {401: unauthorized, 422: unprocessable, 429: too many requests}\n\n@endpoint POST /api/images/generate\n@desc generate an image with AI\n@required {prompt: str # A description of the image to generate.}\n@optional {aspect_ratio: str(1:1/2:3/3:2/3:4/4:3/4:5/5:4/9:16/16:9/21:9) # Aspect ratio of the image. Defaults to this Forem's cover image shape.}\n@returns(201) {url: str(url)} # created\n@errors {401: unauthorized, 422: unprocessable, 429: too many requests, 503: AI image generation unavailable}\n\n@endpoint GET /api/instance\n@desc Retrieve instance configuration details\n@returns(200) successful\n\n@endpoint GET /api/v1/openapi.json\n@desc OpenAPI description\n@returns(200) {openapi: str, info: map, paths: map} # The OpenAPI description\n\n@endpoint GET /api/organizations/{organization_id}/article_analytics\n@desc Export article analytics for an organization\n@required {organization_id: int}\n@optional {page: int=1, per_page: int=30, start: str(date) # First day of the daily series (YYYY-MM-DD). Requires end., end: str(date) # Last day of the daily series (YYYY-MM-DD), at most 89 days after start. Requires start.}\n@returns(200) Organization article metrics\n@errors {401: Organization membership or feature access required, 404: Organization not found, 422: Invalid date range}\n\n@endpoint GET /api/organizations/{username}\n@desc An organization (by username)\n@required {username: str # The unique slugified username of the organization (e.g. `github`).}\n@returns(200) An Organization\n@errors {404: Not Found}\n\n@endpoint GET /api/organizations/{organization_id_or_username}/users\n@desc Organization's users\n@required {organization_id_or_username: str # The organization's numerical ID or string username.}\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) An Organization's users (with ID)\n@errors {404: Not Found}\n\n@endpoint GET /api/organizations/{organization_id_or_username}/listings\n@desc Organization's listings\n@required {organization_id_or_username: str # The organization's numerical ID or string username.}\n@returns(200) An Organization's listings (with ID)\n@errors {404: Not Found}\n\n@endpoint GET /api/organizations/{organization_id_or_username}/articles\n@desc Organization's Articles\n@required {organization_id_or_username: str # The organization's numerical ID or string username.}\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) An Organization's Articles (with ID)\n@errors {404: Not Found}\n\n@endpoint GET /api/organizations\n@desc Organizations\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=10 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) A list of all organizations\n\n@endpoint POST /api/organizations\n@desc Create an Organization\n@optional {type_of: str, username: str, name: str, summary: str, twitter_username: str, github_username: str, url: str, location: str, joined_at: str, tech_stack: str, tag_line: str, story: str}\n@returns(201) Successful\n@errors {401: Unauthorized, 422: Unprocessable Entity}\n\n@endpoint GET /api/organizations/{id}\n@desc An organization (by id)\n@required {id: int}\n@returns(200) An Organization\n@errors {404: Not Found}\n\n@endpoint PUT /api/organizations/{id}\n@desc Update an organization by id\n@required {id: int(int32) # The ID of the organization to update.}\n@optional {type_of: str, username: str, name: str, summary: str, twitter_username: str, github_username: str, url: str, location: str, joined_at: str, tech_stack: str, tag_line: str, story: str}\n@returns(200) An Organization\n@errors {401: Unauthorized, 404: organization Not Found, 422: Unprocessable Entity}\n\n@endpoint DELETE /api/organizations/{id}\n@desc Delete an Organization by id\n@required {id: int(int32) # The ID of the organization.}\n@returns(200) successful\n@errors {401: unauthorized}\n\n@endpoint GET /api/pages\n@desc show details for all pages\n@optional {organization_id: int(int64) # Filter pages belonging to a specific organization ID, ordered by position., event_id: int(int64) # Filter pages belonging to a specific event ID, ordered by position., kind: str # Set to `embed` with `organization_id` to list the organization's embed-only HTML pages. Requires authorization.}\n@returns(200) successful\n@errors {401: unauthorized embed page listing}\n\n@endpoint POST /api/pages\n@desc pages\n@optional {title: str # Title of the page, slug: str # Used to link to this page in URLs, must be unique and URL-safe, description: str # For internal use, helps similar pages from one another, body_markdown: str # The text (in markdown) of the page (required unless the template is embed_html), body_html: str # For embed_html organization pages, the HTML document (required for them), slug_suffix: str # For organization pages, the part of the slug after the organization prefix, body_json: str # For JSON pages, the JSON body, is_top_level_path: bool # If true, the page is available at '/{slug}' instead of '/page/{slug}', use with caution, organization_id: int(int64) # The ID of the organization the page belongs to, event_id: int(int64) # The ID of the event the page belongs to, position: int(int32) # Display order position for organization pages, show_in_navigation: bool=true # Whether the page appears in organization tabs. Defaults to true. Only non-Showcase organization pages can set false. Hidden pages remain public at their URL and through the API., template: str(contained/full_within_layout/nav_bar_included/json/css/txt/embed_html)=contained # Controls what kind of layout the page is rendered in}\n@returns(200) successful\n@errors {401: unauthorized, 422: unprocessable}\n\n@endpoint GET /api/pages/{id}\n@desc show details for a page\n@required {id: int(int32) # The unique ID of the page.}\n@returns(200) {title: str, slug: str, description: str, body_markdown: str?, body_json: str?, body_html: str?, is_top_level_path: bool, social_image: map?, organization_id: int(int64)?, event_id: int(int64)?, position: int(int32), show_in_navigation: bool, template: str} # successful\n\n@endpoint PUT /api/pages/{id}\n@desc update details for a page\n@required {id: int(int32) # The ID of the page to update., title: str # Title of the page, slug: str # Used to link to this page in URLs, must be unique and URL-safe, description: str # For internal use, helps similar pages from one another, template: str(contained/full_within_layout/nav_bar_included/json/css/txt/embed_html)=contained # Controls what kind of layout the page is rendered in}\n@optional {body_markdown: str # The text (in markdown) of the ad (required), body_json: str # For JSON pages, the JSON body, body_html: str # Raw HTML. For embed_html organization pages, the sandboxed HTML document, is_top_level_path: bool # If true, the page is available at '/{slug}' instead of '/page/{slug}', use with caution, social_image: map, organization_id: int(int64) # The ID of the organization the page belongs to, if any, event_id: int(int64) # The ID of the event the page belongs to, if any, position: int(int32) # Display order position for organization pages, show_in_navigation: bool=true # Whether the page appears in organization tabs. Defaults to true. Only non-Showcase organization pages can set false. Hidden pages remain public at their URL and through the API.}\n@returns(200) {title: str, slug: str, description: str, body_markdown: str?, body_json: str?, body_html: str?, is_top_level_path: bool, social_image: map?, organization_id: int(int64)?, event_id: int(int64)?, position: int(int32), show_in_navigation: bool, template: str} # successful\n@errors {401: unauthorized, 422: unprocessable}\n\n@endpoint DELETE /api/pages/{id}\n@desc remove a page\n@required {id: int(int32) # The ID of the page to delete.}\n@returns(200) {title: str, slug: str, description: str, body_markdown: str?, body_json: str?, body_html: str?, is_top_level_path: bool, social_image: map?, organization_id: int(int64)?, event_id: int(int64)?, position: int(int32), show_in_navigation: bool, template: str} # successful\n@errors {401: unauthorized, 422: unprocessable}\n\n@endpoint POST /api/pages/preview\n@desc preview a page\n@optional {body_markdown: str # The text (in markdown) of the page, body_html: str # Raw HTML for site admin pages when body_markdown is omitted, organization_id: int(int64) # The ID of the organization the page belongs to, if previewing an organization page}\n@returns(200) {processed_html: str} # successful\n@errors {401: unauthorized, 422: unprocessable}\n\n@endpoint GET /api/podcast_episodes\n@desc Podcast Episodes\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable., username: str # Filters episodes by the unique slug (username) of the podcast (e.g. 'codenewbie').}\n@returns(200) A List of Podcast episodes filtered by username\n@errors {404: Unknown Podcast username}\n\n@endpoint GET /api/profile_images/{username}\n@desc A Users or organizations profile image\n@required {username: str # The unique username of the target user or organization.}\n@returns(200) An object containing profile image details\n@errors {404: Resource Not Found}\n\n@endpoint POST /api/reactions/toggle\n@desc toggle reaction\n@required {category: str(like/unicorn/exploding_head/raised_hands/fire) # The type of reaction (e.g. `like` for standard likes, `unicorn` for outstanding posts, `save` for bookmarking to the reading list)., reactable_id: int(int32) # The unique numerical ID of the target resource (Article, Comment, or User) being reacted to., reactable_type: str(Comment/Article/User) # The class name of the target resource being reacted to (e.g. `Article`, `Comment`, `User`).}\n@returns(200) successful\n@errors {401: unauthorized}\n\n@endpoint POST /api/reactions\n@desc create reaction\n@required {category: str(like/unicorn/exploding_head/raised_hands/fire) # The type of reaction (e.g. `like` for standard likes, `unicorn` for outstanding posts, `save` for bookmarking to the reading list)., reactable_id: int(int32) # The unique numerical ID of the target resource (Article, Comment, or User) being reacted to., reactable_type: str(Comment/Article/User) # The class name of the target resource being reacted to (e.g. `Article`, `Comment`, `User`).}\n@returns(200) successful\n@errors {401: unauthorized}\n\n@endpoint GET /api/readinglist\n@desc Readinglist\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) A list of articles in the users readinglist\n@errors {401: Unauthorized}\n\n@endpoint GET /api/recommended_articles_lists\n@desc Retrieve all recommended articles lists\n@optional {page: int # Pagination page index., search: str # Search term to match against recommended list names.}\n@returns(200) successful\n\n@endpoint POST /api/recommended_articles_lists\n@desc Create or update a recommended articles list\n@required {placement_area: str, user_id: int}\n@optional {name: str, expires_at: str(date-time), article_ids: [int]}\n@returns(201) {id: int(int64), name: str, placement_area: str, expires_at: str(date-time)?, user_id: int(int64), article_ids: [int], created_at: str(date-time), updated_at: str(date-time)} # created\n\n@endpoint GET /api/recommended_articles_lists/{id}\n@desc Retrieve details of a recommended articles list\n@required {id: int # Unique list numeric ID.}\n@returns(200) {id: int(int64), name: str, placement_area: str, expires_at: str(date-time)?, user_id: int(int64), article_ids: [int], created_at: str(date-time), updated_at: str(date-time)} # successful\n\n@endpoint PATCH /api/recommended_articles_lists/{id}\n@desc Update a recommended articles list\n@required {id: int # Unique list numeric ID.}\n@optional {name: str, placement_area: str, expires_at: str(date-time), user_id: int, article_ids: [int]}\n@returns(200) {id: int(int64), name: str, placement_area: str, expires_at: str(date-time)?, user_id: int(int64), article_ids: [int], created_at: str(date-time), updated_at: str(date-time)} # successful\n\n@endpoint GET /api/related_articles\n@desc Discover public community articles\n@required {organization_id: int # Organization granting discovery access; caller must be an active member., q: str # Technology names, for example PostgreSQL,Postgres. Up to five comma-separated searches. In keyword matching, a search of several words matches those words next to each other, so Tiger Data matches that phrase rather than mentions of tiger and data separately; hybrid semantic candidates are not phrase-filtered and need not contain the phrase.}\n@optional {mode: str(keyword/hybrid)=keyword, sort: str(recent/relevance)=recent # recent returns newest first. relevance ranks by match strength, which accounts for how often a term occurs and whether it appears in the title rather than the body., start: str(date) # Inclusive publication date (YYYY-MM-DD)., end: str(date) # Inclusive publication date (YYYY-MM-DD)., page: int=1, per_page: int=30}\n@returns(200) Public articles\n@errors {401: Authentication required, 404: Organization not found, 422: Invalid query or date interval}\n\n@endpoint GET /api/admin/request_redirects\n@desc Retrieve all request redirects (Admin)\n@optional {page: int # Pagination page index., per_page: int # Number of items to return per page.}\n@returns(200) successful\n\n@endpoint POST /api/admin/request_redirects\n@desc Create a request redirect (Admin)\n@optional {request_redirect: map{original_url!: str, destination_url!: str, request_domain!: str}}\n@returns(201) {id: int(int64), original_url: str, destination_url: str, request_domain: str, created_at: str(date-time), updated_at: str(date-time)} # created\n\n@endpoint GET /api/admin/request_redirects/{id}\n@desc Retrieve a request redirect's details (Admin)\n@required {id: int # Unique redirect ID.}\n@returns(200) {id: int(int64), original_url: str, destination_url: str, request_domain: str, created_at: str(date-time), updated_at: str(date-time)} # successful\n\n@endpoint PATCH /api/admin/request_redirects/{id}\n@desc Update a request redirect (Admin)\n@required {id: int # Unique redirect ID to update.}\n@optional {request_redirect: map{original_url: str, destination_url: str, request_domain: str}}\n@returns(200) {id: int(int64), original_url: str, destination_url: str, request_domain: str, created_at: str(date-time), updated_at: str(date-time)} # successful\n\n@endpoint DELETE /api/admin/request_redirects/{id}\n@desc Delete a request redirect (Admin)\n@required {id: int # Unique redirect ID to delete.}\n@returns(204) no content\n\n@endpoint GET /api/subforems\n@desc Retrieve all discoverable subforems\n@returns(200) successful\n\n@endpoint GET /api/surveys\n@desc List surveys\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable., active: bool # Filter by active status. Omit to return all surveys.}\n@returns(200) A list of surveys\n@errors {401: Unauthorized}\n\n@endpoint POST /api/surveys\n@desc Create a survey\n@required {survey: map{title: str, survey_type_of: str, type_of: str, active: bool, display_title: bool, allow_resubmission: bool, daily_email_distributions: int(int32), extra_email_context_paragraph: str, target_response_count: int(int32), target_completion_date: str(date-time), polls: [map]}}\n@returns(201) Created\n@errors {401: Unauthorized, 422: Unprocessable Entity}\n\n@endpoint GET /api/surveys/{id_or_slug}\n@desc A survey with polls\n@required {id_or_slug: str # The ID or slug of the survey.}\n@returns(200) A survey with nested polls and options\n@errors {401: Unauthorized, 404: Not found}\n\n@endpoint PATCH /api/surveys/{id_or_slug}\n@desc Update a survey\n@required {id_or_slug: str # The ID or slug of the survey., survey: map{title: str, survey_type_of: str, type_of: str, active: bool, display_title: bool, allow_resubmission: bool, daily_email_distributions: int(int32), extra_email_context_paragraph: str, target_response_count: int(int32), target_completion_date: str(date-time), polls: [map]}}\n@returns(200) Successful\n@errors {401: Unauthorized, 404: Not Found, 422: Unprocessable Entity}\n\n@endpoint DELETE /api/surveys/{id_or_slug}\n@desc Delete a survey\n@required {id_or_slug: str # The ID or slug of the survey.}\n@returns(204) No Content\n@errors {401: Unauthorized, 404: Not Found, 422: Unprocessable Entity}\n\n@endpoint GET /api/surveys/{id_or_slug}/poll_votes\n@desc Survey poll votes\n@required {id_or_slug: str # The ID or slug of the survey.}\n@optional {per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable., after: int # Return only votes with an ID greater than this value.}\n@returns(200) Poll votes\n@errors {401: Unauthorized, 404: Not found}\n\n@endpoint GET /api/surveys/{id_or_slug}/poll_text_responses\n@desc Survey poll text responses\n@required {id_or_slug: str # The ID or slug of the survey.}\n@optional {per_page: int(int32)=30 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable., after: int # Return only text responses with an ID greater than this value.}\n@returns(200) Poll text responses\n@errors {401: Unauthorized, 404: Not found}\n\n@endpoint GET /api/tags\n@desc Tags\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=10 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable., name: str # Return only the tag with this exact name (case-insensitive).  The result is an empty list if there is no such tag.}\n@returns(200) A List of all tags\n\n@endpoint POST /api/tags\n@desc Create a tag\n@required {name: str}\n@optional {pretty_name: str, short_summary: str, wiki_body_markdown: str, supported: bool, bg_color_hex: str, text_color_hex: str, context_note_instructions: str}\n@returns(201) {id: int(int64), name: str, pretty_name: str?, short_summary: str?, supported: bool, wiki_body_markdown: str?, context_note_instructions: str?, bg_color_hex: str?, text_color_hex: str?} # The created tag\n@errors {401: Unauthorized, 422: Invalid tag or duplicate name}\n\n@endpoint GET /api/tags/supported\n@desc Supported tags\n@returns(200) A List of all supported tags\n\n@endpoint PUT /api/tags/{id}\n@desc Update a tag\n@required {id: int(int64) # The ID of the tag to update.}\n@optional {pretty_name: str, short_summary: str, wiki_body_markdown: str, supported: bool, bg_color_hex: str, text_color_hex: str, context_note_instructions: str}\n@returns(200) {id: int(int64), name: str, pretty_name: str?, short_summary: str?, supported: bool, wiki_body_markdown: str?, context_note_instructions: str?, bg_color_hex: str?, text_color_hex: str?} # The updated tag\n@errors {401: Unauthorized, 404: Tag not found, 422: Unprocessable entity}\n\n@endpoint POST /api/tags/{id}/moderators\n@desc Add a tag moderator\n@required {id: int(int64) # The ID of the tag.}\n@optional {user_id: int(int64), username: str}\n@returns(201) {tag_id: int(int64), tag_name: str, user_id: int(int64), username: str} # The moderator was added\n@errors {401: Unauthorized, 404: Tag or user not found, 422: The user is already a moderator of the tag}\n\n@endpoint DELETE /api/tags/{id}/moderators\n@desc Remove a tag moderator\n@required {id: int(int64) # The ID of the tag.}\n@optional {user_id: int(int64), username: str}\n@returns(200) {tag_id: int(int64), tag_name: str, user_id: int(int64), username: str} # The moderator was removed\n@errors {401: Unauthorized, 404: Tag or user not found, 422: The user is not a moderator of the tag}\n\n@endpoint GET /api/trends\n@desc Trends\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=10 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) A List of Trends\n\n@endpoint GET /api/trends/{id_or_slug}\n@desc A Trend\n@required {id_or_slug: str # The ID or slug of the trend to retrieve.}\n@returns(200) A Trend\n@errors {404: Trend Not Found}\n\n@endpoint GET /api/trends/{trend_id_or_slug}/articles\n@desc Articles in a Trend\n@required {trend_id_or_slug: str # The ID or slug of the trend to retrieve articles for.}\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=10 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) A List of Articles in the Trend\n@errors {404: Trend Not Found}\n\n@endpoint PUT /api/users/{id}/suspend\n@desc Suspend a User\n@required {id: int(int32) # The unique ID of the user to suspend.}\n@returns(204) User successfully unpublished\n@errors {401: Unauthorized, 404: Unknown User ID}\n\n@endpoint PUT /api/users/{id}/limited\n@desc Add limited role for a User\n@required {id: int(int32) # The ID of the user to limit.}\n@returns(204) User successfully limited\n@errors {401: Unauthorized, 404: Unknown User ID}\n\n@endpoint DELETE /api/users/{id}/limited\n@desc Remove limited for a User\n@required {id: int(int32) # The ID of the user to un-limit.}\n@returns(204) User successfully un-limited\n@errors {401: Unauthorized, 404: Unknown User ID}\n\n@endpoint PUT /api/users/{id}/spam\n@desc Add spam role for a User\n@required {id: int(int32) # The ID of the user to assign the spam role.}\n@returns(204) Spam role assigned to the user successfully\n@errors {401: Unauthorized, 404: Unknown User ID}\n\n@endpoint DELETE /api/users/{id}/spam\n@desc Remove spam role from a User\n@required {id: int(int32) # The ID of the user to remove the spam role from.}\n@returns(204) Successfully removed the spam role from a user\n@errors {401: Unauthorized, 404: Unknown User ID}\n\n@endpoint PUT /api/users/{id}/trusted\n@desc Add trusted role for a User\n@required {id: int(int32) # The ID of the user to assign the trusted role.}\n@returns(204) Trusted role assigned to the user successfully\n@errors {401: Unauthorized, 404: Unknown User ID}\n\n@endpoint DELETE /api/users/{id}/trusted\n@desc Remove trusted role from a User\n@required {id: int(int32) # The ID of the user to remove the trusted role from.}\n@returns(204) Successfully removed the trusted role from a user\n@errors {401: Unauthorized, 404: Unknown User ID}\n\n@endpoint PUT /api/users/{id}/base_subscriber\n@desc Add base_subscriber role for a User\n@required {id: int(int32) # The ID of the user to assign the base_subscriber role.}\n@returns(204) base_subscriber role assigned to the user successfully\n@errors {401: Unauthorized, 404: Unknown User ID}\n\n@endpoint DELETE /api/users/{id}/base_subscriber\n@desc Remove base_subscriber role from a User\n@required {id: int(int32) # The ID of the user to remove the base_subscriber role from.}\n@returns(204) Successfully removed the base_subscriber role from a user\n@errors {401: Unauthorized, 404: Unknown User ID}\n\n@endpoint GET /api/users/me\n@desc The authenticated user\n@returns(200) successful\n@errors {401: Unauthorized, 503: Delegated access unavailable}\n\n@endpoint GET /api/users/{id}\n@desc A User\n@required {id: str # The user's unique numerical ID or string username.}\n@returns(200) successful\n\n@endpoint GET /api/users/search\n@desc Search for users\n@required {email: str # The exact email address of the user to search for.}\n@returns(200) {type_of: str, id: int(int64), username: str, name: str, summary: str?, twitter_username: str, github_username: str, email: str?, website_url: str?, location: str?, joined_at: str, profile_image: str, badge_ids: [int]} # successful\n\n@endpoint PUT /api/users/{id}/unpublish\n@desc Unpublish a User's Articles and Comments\n@required {id: int(int32) # The unique numerical ID of the user whose content will be unpublished.}\n@returns(204) User's articles and comments successfully unpublished\n\n@endpoint POST /api/admin/users\n@desc Invite a User\n@optional {email: str, name: str}\n@returns(200) Successful\n\n@endpoint GET /api/admin/users\n@desc List all users (Admin)\n@optional {page: int # Pagination page index., per_page: int # Number of items to return per page., email: str # Optional email search filter., username: str # Optional username search filter.}\n@returns(200) successful\n\n@endpoint GET /api/admin/users/{id}\n@desc Get user detail (Admin)\n@required {id: int # Unique user numeric ID.}\n@returns(200) successful\n\n@endpoint PATCH /api/admin/users/{id}\n@desc Update user profile (Admin)\n@required {id: int # Unique user ID to update.}\n@optional {name: str, username: str, summary: str, location: str, website_url: str}\n@returns(200) successful\n\n@endpoint PUT /api/admin/users/{id}/email\n@desc Update user email (Admin)\n@required {id: int # Unique user ID to update email for., email: str}\n@returns(200) successful\n\n@endpoint PUT /api/admin/users/{id}/status\n@desc Update user moderation status (Admin)\n@required {id: int # Unique user ID., status: str}\n@optional {note: str}\n@returns(200) successful\n\n@endpoint PUT /api/admin/users/{id}/notification_settings\n@desc Update user notification settings (Admin)\n@required {id: int # Unique user ID., notification_setting: map{email_newsletter: bool, email_digest_periodic: bool, email_comment_notifications: bool, email_follower_notifications: bool, email_mention_notifications: bool, email_unread_notifications: bool, email_badge_notifications: bool}}\n@returns(200) successful\n\n@endpoint POST /api/admin/users/{id}/merge\n@desc Merge user into another (Admin)\n@required {id: int # The duplicate user ID that will be deleted after contents merge., merge_user_id: int}\n@returns(200) successful\n\n@endpoint GET /api/admin/users/{user_id}/notes\n@desc List notes for a user (Admin)\n@required {user_id: int # User ID to fetch notes for.}\n@returns(200) successful\n\n@endpoint POST /api/admin/users/{user_id}/notes\n@desc Add a note to a user (Admin)\n@required {user_id: int # User ID to append the note to., content: str}\n@optional {reason: str}\n@returns(201) created\n\n@endpoint GET /api/admin/users/{user_id}/identities\n@desc List identities for a user (Admin)\n@required {user_id: int # User ID to fetch linked identities for.}\n@returns(200) successful\n\n@endpoint POST /api/admin/users/{user_id}/identities\n@desc Link an identity to a user (Admin)\n@required {user_id: int # User ID to bind identity to., provider: str, uid: str}\n@optional {username: str}\n@returns(201) created\n\n@endpoint DELETE /api/admin/users/{user_id}/identities/{id}\n@desc Unlink an identity from a user (Admin)\n@required {user_id: int # User ID., id: int # Identity ID to unlink.}\n@returns(204) no content\n\n@endpoint POST /api/admin/users/identities/bulk\n@desc Bulk link identities (Admin)\n@required {provider: str, identities: [map{user_id!: int, uid!: str}]}\n@returns(200) successful\n\n@endpoint GET /api/videos\n@desc Articles with a video\n@optional {page: int(int32)=1 # Pagination page, per_page: int(int32)=24 # Page size (the number of items to return per page). The default maximum value can be overridden by \"API_PER_PAGE_MAX\" environment variable.}\n@returns(200) A List of all articles with videos\n\n@end\n"}