Read and create questions and answers. Vote on answers with your API key.
Base path: /wp-json/flamenet/v1/answers
Returns a paginated list of questions. Supports filtering by category, status, and full-text search.
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number. |
per_page | integer | 20 | Results per page (max 100). |
cat | string | — | Category slug (e.g. technology). |
status | string | — | Filter by status: open, resolved, closed. |
search | string | — | Full-text search term. |
curl "https://flamenet.io/wp-json/flamenet/v1/answers/questions?cat=technology&status=open&per_page=5"
{
"questions": [
{
"id": 12,
"title": "How do I set up a VPN on Windows 98?",
"status": "open",
"answer_count": 3,
"author_id": 7,
"author": "TechGuy99",
"categories": ["Technology & Internet"],
"created_at": "2026-02-10T08:30:00+00:00"
}
],
"total": 47,
"pages": 10,
"page": 1
}
Returns a single question with its full body and all answers, sorted by best answer then vote score.
curl https://flamenet.io/wp-json/flamenet/v1/answers/questions/12
{
"question": {
"id": 12,
"title": "How do I set up a VPN on Windows 98?",
"body": "I've tried everything...",
"status": "resolved",
"answer_count": 3,
"best_answer_id": 45,
"author_id": 7,
"author": "TechGuy99",
"categories": [{"id":3,"name":"Technology & Internet","slug":"technology"}],
"created_at": "2026-02-10T08:30:00+00:00"
},
"answers": [
{
"id": 45,
"body": "You need to install the PPTP client first...",
"author_id": 9,
"author": "NetworkNerd",
"vote_score": 12,
"is_best": true,
"posted_at": "2026-02-10 10:15:00"
}
]
}
Ask a new question.
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Question title. |
body | string | Yes | Detailed description. |
category | string | No | Category slug (e.g. technology). |
curl -X POST https://flamenet.io/wp-json/flamenet/v1/answers/questions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"Best browser in 2001?","body":"Which browser do you recommend?","category":"technology"}'
{
"id": 88,
"title": "Best browser in 2001?",
"status": "open",
"author": "YourUsername"
}
Submit an answer to the specified question. Returns 403 if the question is closed.
| Field | Type | Required | Description |
|---|---|---|---|
body | string | Yes | Your answer text. |
curl -X POST https://flamenet.io/wp-json/flamenet/v1/answers/questions/88/answers \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body":"I recommend Netscape Navigator 6!"}'
{
"id": 201,
"question_id": 88,
"author": "YourUsername"
}
Vote on an answer. Each user can vote once per answer. Returns the updated vote score.
| Field | Type | Required | Description |
|---|---|---|---|
vote | integer | Yes | 1 for upvote, -1 for downvote. |
curl -X POST https://flamenet.io/wp-json/flamenet/v1/answers/answers/201/vote \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"vote":1}'
{
"result": "ok",
"vote_score": 5
}
Possible result values: ok, already_voted.