/v1/avatar
Initials avatar (SVG)
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/placeholder-api/v1/avatar" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/placeholder-api/v1/avatar", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/placeholder-api/v1/avatar");
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/placeholder-api/v1/avatar",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"bg": "#0891b2",
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"128\" height=\"128\" viewBox=\"0 0 128 128\"><circle cx=\"64\" cy=\"64\" r=\"64\" fill=\"#0891b2\"/><text x=\"50%\" y=\"50%\" dy=\".35em\" fill=\"#ffffff\" font-family=\"Arial,Helvetica,sans-serif\" font-size=\"51\" font-weight=\"600\" text-anchor=\"middle\">AL</text></svg>",
"name": "Ada Lovelace",
"size": 128,
"color": "#ffffff",
"format": "svg",
"rounded": true,
"initials": "AL"
},
"meta": {
"timestamp": "2026-05-30T14:35:20.027Z",
"request_id": "3e9ae28c-5a56-4ac3-bdbf-e88ff9820ef6"
},
"status": "ok",
"message": "OK",
"success": true
}