Skip to main content
GET
/
users
curl -X GET https://api.arca.example.com/users \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
[
  {
    "id_User": "123e4567-e89b-12d3-a456-426614174000",
    "nome": "John Doe",
    "email": "[email protected]",
    "roleId": 2,
    "role": {
      "id_Role": 2,
      "role": "Manager",
      "descricao": "Can manage users and view reports"
    }
  },
  {
    "id_User": "987fcdeb-51a2-43f7-b456-123456789abc",
    "nome": "Jane Smith",
    "email": "[email protected]",
    "roleId": 3,
    "role": {
      "id_Role": 3,
      "role": "User",
      "descricao": "Standard user access"
    }
  }
]
Retrieve a list of all users that you have permission to view.

Authentication

Requires a valid JWT token in the Authorization header:
Authorization: Bearer {token}

Authorization

You can only view users with a role level equal to or lower than your own.

Response

Returns an array of user objects.
id_User
string
The user’s unique identifier (UUID).
nome
string
The user’s name.
email
string
The user’s email address.
roleId
number
The user’s role ID.
role
object
The user’s role information.
curl -X GET https://api.arca.example.com/users \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"
[
  {
    "id_User": "123e4567-e89b-12d3-a456-426614174000",
    "nome": "John Doe",
    "email": "[email protected]",
    "roleId": 2,
    "role": {
      "id_Role": 2,
      "role": "Manager",
      "descricao": "Can manage users and view reports"
    }
  },
  {
    "id_User": "987fcdeb-51a2-43f7-b456-123456789abc",
    "nome": "Jane Smith",
    "email": "[email protected]",
    "roleId": 3,
    "role": {
      "id_Role": 3,
      "role": "User",
      "descricao": "Standard user access"
    }
  }
]

Build docs developers (and LLMs) love