Naar de inhoud
GET /v1/boards

Decking boards

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/deck-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/deck-api/v1/boards" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/deck-api/v1/boards", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/deck-api/v1/boards");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/deck-api/v1/boards",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Rows = deck width ÷ (board width + gap), rounded up. Boards run the length; each row needs ⌈length ÷ stock board length⌉ boards. A 5/4×6 board is about 5.5\" wide; 1/8\" gaps are typical. Waste covers cuts and culls.",
        "rows": 26,
        "inputs": {
            "gap_in": 0.125,
            "width_ft": 12,
            "length_ft": 16,
            "waste_percent": 10,
            "board_width_in": 5.5,
            "board_length_ft": 16
        },
        "linear_feet": 416,
        "boards_per_row": 1,
        "deck_area_sqft": 192,
        "boards_no_waste": 26,
        "boards_with_waste": 29
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:05.722Z",
        "request_id": "aaaaa53d-68d9-41af-8e47-6d87c5d9c9e5"
    },
    "status": "ok",
    "message": "Decking boards",
    "success": true
}