Aller au contenu
GET /v1/generate

Generate a vCard

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/vcard-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/vcard-api/v1/generate" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/vcard-api/v1/generate", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/vcard-api/v1/generate");
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/vcard-api/v1/generate",
    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": {
        "lines": 8,
        "vcard": "BEGIN:VCARD\r\nVERSION:3.0\r\nN:Lovelace;Ada;;;\r\nFN:Ada Lovelace\r\nORG:Analytical Engine\r\nTEL;TYPE=CELL,VOICE:+1-555-0100\r\nEMAIL;TYPE=INTERNET:[email protected]\r\nEND:VCARD"
    },
    "meta": {
        "timestamp": "2026-06-02T16:52:02.387Z",
        "request_id": "8ad1411a-bd59-41f4-8346-d6a31092ce76"
    },
    "status": "ok",
    "message": "Generate a vCard",
    "success": true
}