Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/cabletray-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/cabletray-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cabletray-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cabletray-api/v1/meta");
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/cabletray-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "notes": "Inches, in². NEC 392.22(A)(1) ladder/ventilated, ≤4/0: allowable area = width×7/6; ≥4/0: Σdiameters ≤ width; min width = area×6/7. Solid-bottom trays use other columns. For conduit/box fill use a conduit API.",
        "service": "cabletray-api",
        "endpoints": {
            "GET /v1/fill": "Allowable fill area and % for ≤4/0 cables in a ladder/ventilated tray.",
            "GET /v1/meta": "This document.",
            "GET /v1/min-width": "Minimum and next standard tray width for a cable bundle.",
            "GET /v1/large-cable": "Single-layer diameter check for ≥4/0 cables."
        },
        "description": "Cable-tray fill maths (NEC 392.22): allowable fill for small cables, single-layer check for large cables, and minimum tray width."
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:04.739Z",
        "request_id": "565a21ca-7f58-4ef0-9299-5e9bcbcaf3fc"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}