Users
Operations related to users
Retrieves a paginated list of users for the tenant with optional filters. Use metadata=[campo=valor] format for metadata filtering.
Autorizaciones
x-api-keystringRequerido
Parámetros de consulta
pagenumberOpcionalExample:
Page number for pagination (default: 1)
1limitnumberOpcionalExample:
Number of items per page (default: 10)
10phonestringOpcionalExample:
Filter by phone (partial match)
+1234567890Respuestas
200Éxito
application/json
401
Unauthorized - missing or invalid API key
get
/api/v1/usersGET /api/v1/users HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Accept: */*
{
"statusCode": 200,
"count": 1,
"error": "text",
"data": [
{
"id": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d",
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"phone": "+1234567890",
"position": "Sales Manager",
"metadata": {
"salesRegion": "North",
"customerId": "12345"
},
"personId": "5516cd47-2bd0-4f4f-adc2-22524e54ba4d"
}
]
}Updates the metadata for a specific user
Autorizaciones
x-api-keystringRequerido
Parámetros de ruta
idstringRequerido
Cuerpo
metadataobjectRequeridoExample:
Metadata fields to update for the user
{"salesRegion":"South","customerId":"67890"}Respuestas
200Éxito
application/json
401
Unauthorized - missing or invalid API key
put
/api/v1/users/{id}/metadataPUT /api/v1/users/{id}/metadata HTTP/1.1
Host: api.salescaling.com
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"metadata": {
"salesRegion": "South",
"customerId": "67890"
}
}{
"statusCode": 200,
"count": 1,
"error": "text",
"data": {
"salesRegion": "South",
"customerId": "67890"
}
}Última actualización
