Ir al contenido
GET /v1/user

A user profile

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/discourse-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}