Biklo for developersTESTsandbox-api.biklo.comchange

Answer a question

POST/v1/questions/{id}/answer

scope questions.write

Answers are moderated exactly as they are on the site. Check is_published: when it is false the answer is held for review and is NOT yet on the listing, so tell your user that rather than showing it as live.

Request body#

FieldTypeRequiredDescription
textstringrequiredYour answer, shown publicly on the listing. Must be a non-empty string after trimming (text_required, 400) and at most 2000 characters (text_too_long, 400) — shorter than a private message, because everyone reads it.

Example

{
    "text": "Size L — suits 180-190 cm."
}

Response#

FieldTypeDescription
dataobjectThe answer as it was stored.
data.idintegerThe new answer id.
data.question_idintegerThe question it answers.
data.textstringWhat was stored.
data.statusstringModeration state. Answers normally auto-publish; pending means it is held for review and is not on the listing yet.

Accepts pending · published · rejected

data.is_publishedbooleanThe same fact as a boolean — true only when status is published. Check it: an answer nobody can see has not answered anything.
data.created_atstringISO-8601 UTC.

Example

{
    "data": {
        "id": 15,
        "question_id": 31,
        "text": "Size L — suits 180-190 cm.",
        "status": "published",
        "is_published": true,
        "created_at": "2026-09-10T06:21:57Z"
    }
}

Failures use the shared error envelope — a machine-readable code and a request_id to quote to support. Error handling.

curl -X POST "https://sandbox-api.biklo.com/v1/questions/711/answer" \
  -H "Authorization: Bearer bk_test_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Size L — suits 180-190 cm."
}'
<?php

$ch = curl_init('https://sandbox-api.biklo.com/v1/questions/711/answer');

curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST  => 'POST',
    CURLOPT_HTTPHEADER     => [
        'Authorization: Bearer bk_test_YOUR_KEY',
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS     => json_encode([
      'text' => 'Size L — suits 180-190 cm.',
    ]),
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);
using System.Net.Http;
using System.Net.Http.Headers;

var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", "bk_test_YOUR_KEY");

var request = new HttpRequestMessage(
    new HttpMethod("POST"),
    "https://sandbox-api.biklo.com/v1/questions/711/answer");

request.Content = new StringContent(
    @"{ ""text"": ""Size L — suits 180-190 cm."" }",
    System.Text.Encoding.UTF8,
    "application/json");

var response = await client.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();
import requests

response = requests.post(
    "https://sandbox-api.biklo.com/v1/questions/711/answer",
    headers={"Authorization": "Bearer bk_test_YOUR_KEY"},
    json={
        "text": "Size L — suits 180-190 cm."
    },
)

data = response.json()
const response = await fetch("https://sandbox-api.biklo.com/v1/questions/711/answer", {
  method: "POST",
  headers: {
    Authorization: "Bearer bk_test_YOUR_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
      "text": "Size L — suits 180-190 cm."
  })
});

const data = await response.json();
import java.net.http.*;
import java.net.URI;

var client = HttpClient.newHttpClient();

var request = HttpRequest.newBuilder()
    .uri(URI.create("https://sandbox-api.biklo.com/v1/questions/711/answer"))
    .header("Authorization", "Bearer bk_test_YOUR_KEY")
    .header("Content-Type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString(
        "{ \"text\": \"Size L — suits 180-190 cm.\" }"))
    .build();

var response = client.send(request, HttpResponse.BodyHandlers.ofString());