Interactive API Explorer
RESTful API for managing users, authentication, and profiles. Base URL: https://api.example.com/v1
/users
Retrieve a list of all users with pagination support
page
integer
optional
Page number (default: 1)
limit
integer
optional
Items per page (default: 10)
{
"data": [
{
"id": 1,
"name": "John Doe",
"email": "john@example.com",
"role": "admin",
"created_at": "2024-01-15T10:30:00Z"
},
{
"id": 2,
"name": "Jane Smith",
"email": "jane@example.com",
"role": "user",
"created_at": "2024-01-14T08:20:00Z"
}
],
"pagination": {
"page": 1,
"limit": 5,
"total": 2,
"total_pages": 1
}
}
curl -X GET "https://api.example.com/v1/users?page=1&limit=5" \ -H "Authorization: Bearer YOUR_API_KEY"
/users/:id
Retrieve a specific user by ID
id
integer
required
User ID
/users
Create a new user
/users/:id
Update an existing user
/users/:id
Delete a user