This API provides endpoints for managing user accounts, authentication, and user data.
All API requests require authentication using a bearer token in the Authorization header.
Authorization: Bearer YOUR_API_TOKEN
Retrieve a list of all users.
{
"users": [
{
"id": "123",
"name": "John Doe",
"email": "john@example.com"
}
],
"total": 100,
"page": 1
}
Create a new user account.
{
"name": "Jane Smith",
"email": "jane@example.com",
"password": "secure_password"
}
{
"id": "124",
"name": "Jane Smith",
"email": "jane@example.com",
"created_at": "2024-01-01T00:00:00Z"
}
Retrieve a specific user by ID.
Update user information.
Delete a user account.
API requests are limited to 1000 requests per hour per API key.
curl -X POST https://api.example.com/api/users \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"John Doe","email":"john@example.com","password":"secret"}'
curl https://api.example.com/api/users?page=1&limit=10 \
-H "Authorization: Bearer YOUR_TOKEN"