/v1/user
A user profile
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/discourse-api/v1/user" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/discourse-api/v1/user", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/discourse-api/v1/user");
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/discourse-api/v1/user",
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": {
"user": {
"name": "Jeff Atwood",
"admin": true,
"title": "co-founder",
"avatar": "https://meta.discourse.org/user_avatar/meta.discourse.org/codinghorror/120/110067_2.png",
"username": "codinghorror",
"moderator": false,
"created_at": "2013-02-05T04:44:25.476Z",
"profile_url": "https://meta.discourse.org/u/codinghorror",
"trust_level": 2,
"last_seen_at": "2026-06-08T06:59:49.649Z"
}
},
"meta": {
"timestamp": "2026-06-09T03:03:23.769Z",
"request_id": "cfc89d91-b82f-4c7b-b3ff-4ba2b816e9ec"
},
"status": "ok",
"message": "User retrieved successfully",
"success": true
}