/v1/sign
Sign a JWT
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/jwt-api/v1/sign" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/jwt-api/v1/sign", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/jwt-api/v1/sign");
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/jwt-api/v1/sign",
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": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjMiLCJuYW1lIjoiQWRhIiwiaWF0IjoxNzgwMTM1ODU0LCJleHAiOjE3ODAxMzk0NTR9.ioG5FjyOLaRMsefX8sAk_8z5KnTsj6ADuJxIbSKkbxc",
"header": {
"alg": "HS256",
"typ": "JWT"
},
"payload": {
"exp": 1780139454,
"iat": 1780135854,
"sub": "123",
"name": "Ada"
},
"algorithm": "HS256"
},
"meta": {
"timestamp": "2026-05-30T10:10:54.903Z",
"request_id": "14145667-35c5-49d8-b70f-1762721e3178"
},
"status": "ok",
"message": "OK",
"success": true
}