Task Manager API
API for managing users, tasks, and authentication in a productivity app.
/auth/register
Authentication
Registers a new user with the provided email, password, and name.
Headers
Request Body
Request body for registering a new user
Responses
User registered successfully
Invalid input
/auth/login
Authentication
Logs in an existing user with the provided email and password.
Headers
Request Body
Request body for logging in a user
Responses
Login successful
Unauthorized
/users/me
Users
Retrieves the profile of the currently authenticated user.
Security
bearerAuth
Responses
User profile
Unauthorized
/tasks
Tasks
Retrieves a list of tasks, with optional filtering by status and pagination.
Security
bearerAuth
Query Parameters
Filter tasks by status
Number of tasks to return
Pagination offset
Responses
List of tasks
Unauthorized
/tasks
Tasks
Creates a new task with the provided title and optional description and due date.
Security
bearerAuth
Headers
Request Body
Request body for creating a new task
Responses
Task created
Invalid input
/tasks/{taskId}
Tasks
Retrieves a specific task by its ID.
Security
bearerAuth
Path Parameters
The ID of the task to retrieve
Responses
Task details
Task not found
/tasks/{taskId}
Tasks
Updates an existing task with the provided ID.
Security
bearerAuth
Headers
Path Parameters
The ID of the task to update
Request Body
Request body for updating a task
Responses
Task updated
Invalid input
Task not found
/tasks/{taskId}
Tasks
Deletes a task with the specified ID.
Security
bearerAuth
Path Parameters
The ID of the task to delete
Responses
Task deleted
Task not found