DashboardApiV2User
List users
Retrieve a list of users. Use the current parameter to get only the authenticated user profile.
GET
/v2/usersAuthorizationBearer <token>
API key for authentication. Use format: Bearer YOUR_API_KEY
In: header
Query Parameters
current?boolean
Response Body
from tofupilot.v2 import TofuPilot
# Initialize the TofuPilot client
client = TofuPilot()
# Execute the operation
result = client.users.list(
limit=20,
current="true"
)
# Handle response
print(result)[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "john.doe@example.com",
"name": "John Doe",
"image": "https://example.com/user-avatar.jpg",
"banned": false
}
]{
"message": "Internal server error",
"code": "INTERNAL_SERVER_ERROR",
"issues": []
}How is this guide?