ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiUsers

Get all users with pagination (Admin/Moderator)

GET
/api/v1/users

Retrieves a paginated list of users. Use page and limit query parameters to control pagination. Requires Admin or Moderator role.

Authorization

bearer

Query Parameters

page?number

Page number (default: 1)

limit?number

Items per page (default: 10)

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Response Body

Return all users with pagination.

response?unknownapplication/json
Example Request
curl -X GET 'http://localhost:3001/api/v1/users'
Example Response200
{  "status": "success",  "statusCode": 200,  "message": "Users fetched successfully",  "data": [    {      "id": "6dd9ca2a-4a9f-4155-ad34-4cf6a575eebe",      "email": "john.doe@example.com",      "firstName": "John",      "lastName": "Doe",      "isActive": true,      "createdAt": "2026-01-27T10:23:22.983Z",      "updatedAt": "2026-01-27T10:23:22.983Z"    }  ],  "meta": {    "total": 25,    "count": 10,    "page": 2,    "limit": 10,    "total_pages": 3,    "has_next": true,    "has_previous": true,    "timestamp": "2026-01-27T10:28:36.014Z"  },  "timestamp": "2026-01-27T10:28:36.014Z",  "path": "/api/v1/users"}