curl --request GET \
--url https://api.example.com/users \
--header 'Authorization: <authorization>'{
"data": [
{
"userId": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"externalRef": "auth_ext_abc123",
"email": "john@example.com",
"firstName": "John",
"lastName": "Doe",
"locale": "en-US",
"lastSignInAt": "2026-03-25T10:00:00.000Z",
"emailVerified": true,
"createdAt": "2026-01-15T10:00:00.000Z"
}
],
"meta": {
"page": 1,
"limit": 10,
"totalItems": 150,
"totalPages": 15
}
}
Recuperar uma lista paginada de todos os usuarios com opcoes de busca e ordenacao.
curl --request GET \
--url https://api.example.com/users \
--header 'Authorization: <authorization>'{
"data": [
{
"userId": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"externalRef": "auth_ext_abc123",
"email": "john@example.com",
"firstName": "John",
"lastName": "Doe",
"locale": "en-US",
"lastSignInAt": "2026-03-25T10:00:00.000Z",
"emailVerified": true,
"createdAt": "2026-01-15T10:00:00.000Z"
}
],
"meta": {
"page": 1,
"limit": 10,
"totalItems": 150,
"totalPages": 15
}
}
users:read.createdAt:desc).{
"data": [
{
"userId": "019525fd-56a8-7db4-8c3e-2a1b4d6f8e0c",
"externalRef": "auth_ext_abc123",
"email": "john@example.com",
"firstName": "John",
"lastName": "Doe",
"locale": "en-US",
"lastSignInAt": "2026-03-25T10:00:00.000Z",
"emailVerified": true,
"createdAt": "2026-01-15T10:00:00.000Z"
}
],
"meta": {
"page": 1,
"limit": 10,
"totalItems": 150,
"totalPages": 15
}
}
curl https://api.awsales.io/admin/users?page=1&limit=20 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
| Status | Codigo | Descricao |
|---|---|---|
400 | validation_error | Entrada invalida ou campos obrigatorios ausentes |
401 | unauthorized | Autenticacao ausente ou invalida |
403 | forbidden | Permissoes insuficientes |
500 | internal_server_error | Ocorreu um erro inesperado |