Skip to main content
GET
/
v1
/
auth
/
me
Get current user information
curl --request GET \
  --url https://api-sandbox.rinne.com.br/core/v1/auth/me \
  --header 'Authorization: Bearer <token>'
{
  "user": {
    "id": "user123",
    "identifiers": [
      {
        "id": "id1",
        "type": "email",
        "value": "[email protected]",
        "verified": true,
        "created_at": "2024-01-01T00:00:00.000Z",
        "verified_at": "2024-01-01T01:00:00.000Z"
      }
    ],
    "primary_identifier": {
      "id": "id1",
      "type": "email",
      "value": "[email protected]",
      "verified": true,
      "created_at": "2024-01-01T00:00:00.000Z",
      "verified_at": "2024-01-01T01:00:00.000Z"
    },
    "auth_methods": [
      "password"
    ],
    "created_at": "2024-01-01T00:00:00.000Z",
    "updated_at": "2024-01-01T00:00:00.000Z",
    "roles": [
      {
        "id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2793",
        "name": "admin",
        "permissions": [
          "user.create",
          "user.read",
          "role.create"
        ],
        "created_at": "2024-01-01T00:00:00.000Z",
        "updated_at": "2024-01-01T00:00:00.000Z",
        "description": "Administrator role with full access",
        "company_id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2793",
        "organization_id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2794"
      }
    ],
    "first_name": "John",
    "last_name": "Doe",
    "suspended_at": "2024-01-01T00:00:00.000Z",
    "metadata": "<unknown>"
  },
  "auth": {
    "method": "jwt",
    "auth_method": "password",
    "current_company_id": "123e4567-e89b-12d3-a456-426614174000",
    "permissions": [
      "transaction.list",
      "user.view"
    ]
  },
  "impersonation": {
    "actor_email": "[email protected]",
    "target_organization_id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2794",
    "jti": "b1f8c2e0-5a3d-4e7c-9b1a-2c3d4e5f6a7b",
    "actor_name": "Joao Faria"
  }
}

Authorizations

Authorization
string
header
required

JWT token for user authentication

Response

User information retrieved successfully

user
object
auth
object
impersonation
object

Present only when the bearer is an admin impersonation JWT (ADR-0018). Carries the real operator identity and the target organization the JWT scopes to.