Users
Create User
Endpoint:
POST /usersDescription: Create a new user account.
Request Body:
email: User's email address.name: User's name.password: User's password.
Response: User object containing user account details.
curl -X POST \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "name": "John Doe", "password": "password123"}' \
https://api.pagepeek.com/v1/users{
"userId": "user123",
"email": "[email protected]",
"name": "John Doe",
"createdAt": "2023-10-01T12:00:00Z",
"updatedAt": "2023-10-01T12:00:00Z"
}Get User
Endpoint:
GET /users/:user_idDescription: Retrieve the details of a specific user.
Response: User object containing user account details.
curl -X GET \
-H "Authorization: Bearer your_api_key_here" \
https://api.pagepeek.com/v1/users/user123{
"userId": "user123",
"email": "[email protected]",
"name": "John Doe",
"createdAt": "2023-10-01T12:00:00Z",
"updatedAt": "2023-10-01T12:00:00Z"
}Update User
Endpoint:
PUT /users/:user_idDescription: Update the details of a specific user.
Request Body:
email: Updated email address (optional).name: Updated name (optional).password: Updated password (optional).
Response: User object containing updated user account details.
curl -X PUT \
-H "Authorization: Bearer your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "name": "John Smith"}' \
https://api.pagepeek.com/v1/users/user123{
"userId": "user123",
"email": "[email protected]",
"name": "John Smith",
"updatedAt": "2023-10-02T12:00:00Z"
}Last updated