Skip to main content

Creating Your First Task

Once you have registered and logged in, you can start creating accountability tasks. A task belongs to the authenticated user who creates it. The basic flow is:

Before you start

You need a registered TaskSocial account and an active login session. If you haven’t authenticated yet, follow the Authentication guide first.

1. Create a task

Create a task using:
Example request:
The request uses the authentication cookie created during login. The backend identifies the authenticated user and associates the new task with that user.

2. View your tasks

After creating a task, you can retrieve the tasks belonging to your account:
The backend uses your authentication cookie to identify your account and returns your tasks. This endpoint only returns tasks associated with the authenticated user.

3. View the shared task feed

TaskSocial also provides a shared task feed through:
This lets users see tasks from the wider TaskSocial community. The feed is different from my-tasks because it is intended to show shared task activity rather than only tasks belonging to the current user.

4. Update a task

To update a task, send a request to:
Replace :id with the ID of the task you want to update. For example:
Example request body:
The backend verifies the authenticated user before updating the task. A user cannot update another user’s task.

5. Delete a task

To delete a task, use:
Replace :id with the ID of the task you want to delete. The backend checks the authenticated user and verifies task ownership before deleting it.

Task ownership

Every task is associated with the user who created it. For protected task operations, the backend follows this flow:
This ownership check is important for operations such as updating and deleting tasks. Authentication tells the backend who you are. Authorization determines whether you are allowed to modify the requested task.

Task endpoints

For complete request schemas, responses, and interactive examples, see the API Reference.

What’s next?

You can test the complete TaskSocial API flow using Postman. Continue with API Testing to test registration, authentication, and task operations.