UsuarioUsers

Get My Profile

Get current user profile with subscription information.

GET /api/v1/users/me
import requests
 
headers = {
    "X-API-Token": "sk_live_replace_with_your_token",
}
 
response = requests.get(
    "https://api.fiscalbridge.cl/api/v1/users/me",
    headers=headers,
)
response.raise_for_status()
print(response.json())

Get current user profile with subscription information.

Returns complete user profile including:

  • Personal information (name, email, RUT, etc.)
  • Subscription details (plan, quota usage, etc.)
  • Account status and restrictions

Authentication: Required (JWT token or API token via X-API-Token)

Rate Limiting: Not rate-limited

Example Response:

{
    "user": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "email": "user@example.com",
        "nombre": "John Doe",
        "empresa": "Acme Corp",
        "estado": "activo"
    },
    "subscription": {
        "plan_nombre": "Starter",
        "consultas_usadas_periodo": 150,
        "consultas_totales_periodo": 500,
        "porcentaje_uso": 30.0
    }
}

Respuestas

200Successful Response

Forma de la respuesta

Código 200. Estructura del JSON devuelto.

{
  "data": {
    "email": "string",
    "email_verified": false,
    "empresa": "string",
    "estado": "string",
    "fecha_registro": "2026-01-01T00:00:00Z",
    "fecha_ultimo_acceso": "2026-01-01T00:00:00Z",
    "nombre": "string",
    "role": "string",
    "rut": "string",
    "subscription": {},
    "telefono": "string"
  },
  "message": "string",
  "success": true
}

On this page