Vai al contenuto
GET /v1/mat

Mat window & outer size

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/framing-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "The mat window is the artwork minus the overlap on each edge (so the mat holds it). Outer size = window + the borders. A heavier bottom border (weighted/bottom-weighted mat) looks balanced to the eye.",
        "inputs": {
            "overlap": 0.25,
            "border_top": 2,
            "border_sides": 2,
            "artwork_width": 8,
            "border_bottom": 2,
            "artwork_height": 10
        },
        "outer_width": 11.5,
        "outer_height": 13.5,
        "window_width": 7.5,
        "window_height": 9.5
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:09.406Z",
        "request_id": "d6d924f4-8472-4c59-bdc7-7d72b185d6bd"
    },
    "status": "ok",
    "message": "Mat board",
    "success": true
}