{"id":1215,"date":"2026-03-01T20:12:21","date_gmt":"2026-03-01T20:12:21","guid":{"rendered":"http:\/\/localhost:8881\/api-answers\/"},"modified":"2026-03-01T20:12:21","modified_gmt":"2026-03-01T20:12:21","slug":"api-answers","status":"publish","type":"page","link":"https:\/\/flamenet.io\/api-answers\/","title":{"rendered":"Flamenet API \u2014 Answers"},"content":{"rendered":"<nav class=\"api-nav\"><span class=\"api-nav-brand\">&#9670; Flamenet API<\/span><a href=\"https:\/\/flamenet.io\/api-docs\/\">Overview<\/a><a href=\"https:\/\/flamenet.io\/api-forum\/\">Forum<\/a><a href=\"https:\/\/flamenet.io\/api-answers\/\" class=\"active\">Answers<\/a><a href=\"https:\/\/flamenet.io\/api-shop\/\">Shop<\/a><a href=\"https:\/\/flamenet.io\/api-marketplace\/\">Marketplace<\/a><a href=\"https:\/\/flamenet.io\/api-files\/\">Files<\/a><a href=\"https:\/\/flamenet.io\/api-videos\/\">Video<\/a><\/nav><div class=\"api-wrap\">        <h1>Answers API<\/h1>\n        <p>Read and create questions and answers. Vote on answers with your API key.<\/p>\n        <p><strong>Base path:<\/strong> <code>\/api\/flamenet\/v1\/answers<\/code><\/p>\n\n        <div class=\"endpoint\">\n          <div class=\"endpoint-header\">\n            <span class=\"method method-get\">GET<\/span>\n            <span class=\"endpoint-path\">\/answers\/questions<\/span>\n          <\/div>\n          <div class=\"endpoint-body\">\n            <p class=\"endpoint-desc\">Returns a paginated list of questions. Supports filtering by category, status, and full-text search.<\/p>\n            <h3>Query parameters<\/h3>\n            <table>\n              <thead><tr><th>Parameter<\/th><th>Type<\/th><th>Default<\/th><th>Description<\/th><\/tr><\/thead>\n              <tbody>\n                <tr><td><code>page<\/code><\/td><td>integer<\/td><td>1<\/td><td>Page number.<\/td><\/tr>\n                <tr><td><code>per_page<\/code><\/td><td>integer<\/td><td>20<\/td><td>Results per page (max 100).<\/td><\/tr>\n                <tr><td><code>cat<\/code><\/td><td>string<\/td><td>\u2014<\/td><td>Category slug (e.g. <code>technology<\/code>).<\/td><\/tr>\n                <tr><td><code>status<\/code><\/td><td>string<\/td><td>\u2014<\/td><td>Filter by status: <code>open<\/code>, <code>resolved<\/code>, <code>closed<\/code>.<\/td><\/tr>\n                <tr><td><code>search<\/code><\/td><td>string<\/td><td>\u2014<\/td><td>Full-text search term.<\/td><\/tr>\n              <\/tbody>\n            <\/table>\n            <h3>Example request<\/h3>\n            <pre>curl \"https:\/\/flamenet.io\/api\/flamenet\/v1\/answers\/questions?cat=technology&amp;status=open&amp;per_page=5\"<\/pre>\n            <h3>Example response<\/h3>\n            <pre>{\n  \"<span class=\"key\">questions<\/span>\": [\n    {\n      \"<span class=\"key\">id<\/span>\":           <span class=\"num\">12<\/span>,\n      \"<span class=\"key\">title<\/span>\":        \"<span class=\"str\">How do I set up a VPN on Windows 98?<\/span>\",\n      \"<span class=\"key\">status<\/span>\":       \"<span class=\"str\">open<\/span>\",\n      \"<span class=\"key\">answer_count<\/span>\": <span class=\"num\">3<\/span>,\n      \"<span class=\"key\">author_id<\/span>\":    <span class=\"num\">7<\/span>,\n      \"<span class=\"key\">author<\/span>\":        \"<span class=\"str\">TechGuy99<\/span>\",\n      \"<span class=\"key\">categories<\/span>\":   [\"<span class=\"str\">Technology &amp; Internet<\/span>\"],\n      \"<span class=\"key\">created_at<\/span>\":   \"<span class=\"str\">2026-02-10T08:30:00+00:00<\/span>\"\n    }\n  ],\n  \"<span class=\"key\">total<\/span>\":  <span class=\"num\">47<\/span>,\n  \"<span class=\"key\">pages<\/span>\":  <span class=\"num\">10<\/span>,\n  \"<span class=\"key\">page<\/span>\":   <span class=\"num\">1<\/span>\n}<\/pre>\n          <\/div>\n        <\/div>\n\n        <div class=\"endpoint\">\n          <div class=\"endpoint-header\">\n            <span class=\"method method-get\">GET<\/span>\n            <span class=\"endpoint-path\">\/answers\/questions\/{id}<\/span>\n          <\/div>\n          <div class=\"endpoint-body\">\n            <p class=\"endpoint-desc\">Returns a single question with its full body and all answers, sorted by best answer then vote score.<\/p>\n            <h3>Example request<\/h3>\n            <pre>curl https:\/\/flamenet.io\/api\/flamenet\/v1\/answers\/questions\/12<\/pre>\n            <h3>Example response<\/h3>\n            <pre>{\n  \"<span class=\"key\">question<\/span>\": {\n    \"<span class=\"key\">id<\/span>\":             <span class=\"num\">12<\/span>,\n    \"<span class=\"key\">title<\/span>\":          \"<span class=\"str\">How do I set up a VPN on Windows 98?<\/span>\",\n    \"<span class=\"key\">body<\/span>\":           \"<span class=\"str\">I've tried everything...<\/span>\",\n    \"<span class=\"key\">status<\/span>\":         \"<span class=\"str\">resolved<\/span>\",\n    \"<span class=\"key\">answer_count<\/span>\":   <span class=\"num\">3<\/span>,\n    \"<span class=\"key\">best_answer_id<\/span>\": <span class=\"num\">45<\/span>,\n    \"<span class=\"key\">author_id<\/span>\":      <span class=\"num\">7<\/span>,\n    \"<span class=\"key\">author<\/span>\":          \"<span class=\"str\">TechGuy99<\/span>\",\n    \"<span class=\"key\">categories<\/span>\":     [{\"<span class=\"key\">id<\/span>\":<span class=\"num\">3<\/span>,\"<span class=\"key\">name<\/span>\":\"<span class=\"str\">Technology &amp; Internet<\/span>\",\"<span class=\"key\">slug<\/span>\":\"<span class=\"str\">technology<\/span>\"}],\n    \"<span class=\"key\">created_at<\/span>\":     \"<span class=\"str\">2026-02-10T08:30:00+00:00<\/span>\"\n  },\n  \"<span class=\"key\">answers<\/span>\": [\n    {\n      \"<span class=\"key\">id<\/span>\":         <span class=\"num\">45<\/span>,\n      \"<span class=\"key\">body<\/span>\":       \"<span class=\"str\">You need to install the PPTP client first...<\/span>\",\n      \"<span class=\"key\">author_id<\/span>\":  <span class=\"num\">9<\/span>,\n      \"<span class=\"key\">author<\/span>\":     \"<span class=\"str\">NetworkNerd<\/span>\",\n      \"<span class=\"key\">vote_score<\/span>\": <span class=\"num\">12<\/span>,\n      \"<span class=\"key\">is_best<\/span>\":    <span class=\"num\">true<\/span>,\n      \"<span class=\"key\">posted_at<\/span>\":  \"<span class=\"str\">2026-02-10 10:15:00<\/span>\"\n    }\n  ]\n}<\/pre>\n          <\/div>\n        <\/div>\n\n        <div class=\"endpoint\">\n          <div class=\"endpoint-header\">\n            <span class=\"method method-post\">POST<\/span>\n            <span class=\"endpoint-path\">\/answers\/questions<\/span>\n            <span class=\"auth-badge\">AUTH REQUIRED<\/span>\n          <\/div>\n          <div class=\"endpoint-body\">\n            <p class=\"endpoint-desc\">Ask a new question.<\/p>\n            <h3>Request body (JSON)<\/h3>\n            <table>\n              <thead><tr><th>Field<\/th><th>Type<\/th><th>Required<\/th><th>Description<\/th><\/tr><\/thead>\n              <tbody>\n                <tr><td><code>title<\/code><\/td><td>string<\/td><td>Yes<\/td><td>Question title.<\/td><\/tr>\n                <tr><td><code>body<\/code><\/td><td>string<\/td><td>Yes<\/td><td>Detailed description.<\/td><\/tr>\n                <tr><td><code>category<\/code><\/td><td>string<\/td><td>No<\/td><td>Category slug (e.g. <code>technology<\/code>).<\/td><\/tr>\n              <\/tbody>\n            <\/table>\n            <h3>Example request<\/h3>\n            <pre>curl -X POST https:\/\/flamenet.io\/api\/flamenet\/v1\/answers\/questions \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"title\":\"Best browser in 2001?\",\"body\":\"Which browser do you recommend?\",\"category\":\"technology\"}'<\/pre>\n            <h3>Example response \u2014 201 Created<\/h3>\n            <pre>{\n  \"<span class=\"key\">id<\/span>\":     <span class=\"num\">88<\/span>,\n  \"<span class=\"key\">title<\/span>\":  \"<span class=\"str\">Best browser in 2001?<\/span>\",\n  \"<span class=\"key\">status<\/span>\": \"<span class=\"str\">open<\/span>\",\n  \"<span class=\"key\">author<\/span>\": \"<span class=\"str\">YourUsername<\/span>\"\n}<\/pre>\n          <\/div>\n        <\/div>\n\n        <div class=\"endpoint\">\n          <div class=\"endpoint-header\">\n            <span class=\"method method-post\">POST<\/span>\n            <span class=\"endpoint-path\">\/answers\/questions\/{id}\/answers<\/span>\n            <span class=\"auth-badge\">AUTH REQUIRED<\/span>\n          <\/div>\n          <div class=\"endpoint-body\">\n            <p class=\"endpoint-desc\">Submit an answer to the specified question. Returns 403 if the question is closed.<\/p>\n            <h3>Request body (JSON)<\/h3>\n            <table>\n              <thead><tr><th>Field<\/th><th>Type<\/th><th>Required<\/th><th>Description<\/th><\/tr><\/thead>\n              <tbody>\n                <tr><td><code>body<\/code><\/td><td>string<\/td><td>Yes<\/td><td>Your answer text.<\/td><\/tr>\n              <\/tbody>\n            <\/table>\n            <h3>Example request<\/h3>\n            <pre>curl -X POST https:\/\/flamenet.io\/api\/flamenet\/v1\/answers\/questions\/88\/answers \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"body\":\"I recommend Netscape Navigator 6!\"}'<\/pre>\n            <h3>Example response \u2014 201 Created<\/h3>\n            <pre>{\n  \"<span class=\"key\">id<\/span>\":          <span class=\"num\">201<\/span>,\n  \"<span class=\"key\">question_id<\/span>\": <span class=\"num\">88<\/span>,\n  \"<span class=\"key\">author<\/span>\":      \"<span class=\"str\">YourUsername<\/span>\"\n}<\/pre>\n          <\/div>\n        <\/div>\n\n        <div class=\"endpoint\">\n          <div class=\"endpoint-header\">\n            <span class=\"method method-post\">POST<\/span>\n            <span class=\"endpoint-path\">\/answers\/answers\/{id}\/vote<\/span>\n            <span class=\"auth-badge\">AUTH REQUIRED<\/span>\n          <\/div>\n          <div class=\"endpoint-body\">\n            <p class=\"endpoint-desc\">Vote on an answer. Each user can vote once per answer. Returns the updated vote score.<\/p>\n            <h3>Request body (JSON)<\/h3>\n            <table>\n              <thead><tr><th>Field<\/th><th>Type<\/th><th>Required<\/th><th>Description<\/th><\/tr><\/thead>\n              <tbody>\n                <tr><td><code>vote<\/code><\/td><td>integer<\/td><td>Yes<\/td><td><code>1<\/code> for upvote, <code>-1<\/code> for downvote.<\/td><\/tr>\n              <\/tbody>\n            <\/table>\n            <h3>Example request<\/h3>\n            <pre>curl -X POST https:\/\/flamenet.io\/api\/flamenet\/v1\/answers\/answers\/201\/vote \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"vote\":1}'<\/pre>\n            <h3>Example response \u2014 200 OK<\/h3>\n            <pre>{\n  \"<span class=\"key\">result<\/span>\":     \"<span class=\"str\">ok<\/span>\",\n  \"<span class=\"key\">vote_score<\/span>\": <span class=\"num\">5<\/span>\n}<\/pre>\n            <p>Possible <code>result<\/code> values: <code>ok<\/code>, <code>already_voted<\/code>.<\/p>\n          <\/div>\n        <\/div>\n        <div class=\"api-footer\">Flamenet API v1.0 &mdash; <a href=\"https:\/\/flamenet.io\/api-docs\/\">API Overview<\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1215","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/flamenet.io\/api\/wp\/v2\/pages\/1215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flamenet.io\/api\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/flamenet.io\/api\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/flamenet.io\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flamenet.io\/api\/wp\/v2\/comments?post=1215"}],"version-history":[{"count":0,"href":"https:\/\/flamenet.io\/api\/wp\/v2\/pages\/1215\/revisions"}],"wp:attachment":[{"href":"https:\/\/flamenet.io\/api\/wp\/v2\/media?parent=1215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}