limit
(integer, 1-100) - Number of results per page (default: 10)next
(string) - Pagination cursor for next pageteam
(string) - gigstack Connect: Target team ID
{
"message": "Users retrieved successfully",
"data": [
{
"id": "user_1234567890",
"email": "john.doe@example.com",
"name": "John Doe",
"role": "admin",
"created_at": 1677651234
},
{
"id": "user_9876543210",
"email": "jane.smith@example.com",
"name": "Jane Smith",
"role": "member",
"created_at": 1677651234
}
],
"has_more": false,
"total_results": 2
}
{
"email": "new.user@example.com",
"firstName": "New",
"lastName": "User",
"phone": "+52 55 1234 5678",
"company_role": "Developer",
"address": {
"country": "Mexico",
"street": "Av. Reforma",
"zip": "06500",
"city": "Ciudad de México",
"state": "CDMX",
"exterior": "456",
"municipality": "Cuauhtémoc",
"neighborhood": "Juárez"
}
}
{
"message": "User created successfully",
"data": {
"id": "user_new123456",
"email": "developer@company.com",
"name": "Carlos Rodriguez",
"role": "member",
"created_at": 1677651234,
"invitation_sent": true
}
}
{
"message": "User retrieved successfully",
"data": {
"id": "user_1234567890",
"email": "john.doe@example.com",
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"phone": "+52 55 1234 5678",
"company_role": "Manager",
"role": "admin",
"address": {
"country": "Mexico",
"street": "Av. Insurgentes Sur",
"zip": "03100",
"city": "Ciudad de México",
"state": "CDMX",
"exterior": "123",
"municipality": "Benito Juárez",
"neighborhood": "Del Valle"
},
"created_at": 1677651234,
"last_login": 1677737634,
"teams": [
{
"team_id": "team_1234567890",
"team_name": "Main Company",
"role": "admin"
},
{
"team_id": "team_0987654321",
"team_name": "Subsidiary",
"role": "viewer"
}
]
}
}
{
"firstName": "Jonathan",
"lastName": "Doe",
"phone": "+52 55 5555 5555",
"company_role": "Senior Manager",
"address": {
"zip": "03200",
"neighborhood": "Del Valle Sur"
}
}
{
"email": "user@example.com"
}
{
"message": "Password reset email sent",
"data": {
"email": "john.doe@example.com",
"reset_link_sent": true,
"expires_at": 1677655834
}
}
Field | Type | Description |
---|---|---|
id | string | Unique user identifier |
email | string | User's email address (unique) |
firstName | string | User's first name |
lastName | string | User's last name |
name | string | Full name (computed) |
phone | string | Contact phone number |
company_role | string | Position in company |
role | string | System role (admin/member/viewer) |
address | object | User's address information |
created_at | number | Unix timestamp of creation |
{
"country": "Mexico",
"street": "Street name",
"exterior": "123",
"interior": "4B",
"neighborhood": "Neighborhood",
"municipality": "Municipality",
"city": "City",
"state": "State",
"zip": "12345"
}
Role | Permissions | Description |
---|---|---|
admin | Full access | Can manage team and billing |
member | Read/Write | Can create and edit resources |
viewer | Read only | Can only view resources |
Action | Admin | Member | Viewer |
---|---|---|---|
View resources | ✅ | ✅ | ✅ |
Create invoices | ✅ | ✅ | ❌ |
Edit clients | ✅ | ✅ | ❌ |
Manage users | ✅ | ❌ | ❌ |
Change settings | ✅ | ❌ | ❌ |
Delete team | ✅ | ❌ | ❌ |
Manage billing | ✅ | ❌ | ❌ |
{
"message": "User creation failed",
"error": "Email address already registered"
}
{
"message": "Invalid request",
"error": "Email format is invalid"
}
{
"message": "User not found",
"error": "The specified user does not exist"
}
{
"message": "Access denied",
"error": "Admin role required to manage users"
}
{
"message": "Password reset failed",
"error": "No user found with that email address"
}