Getting Started
Welcome to the TaskSocial API. TaskSocial provides a REST API for creating accounts, authenticating users, and creating and managing accountability tasks. This guide walks you through the basic flow of using the API.API Base URL
During local development, the API runs at:/api/v1 path.
For example:
What You Can Do
With the TaskSocial API, you can:- Create a user account
- Log in and authenticate
- Create tasks
- View your tasks
- View the shared task feed
- Update your tasks
- Delete your tasks
- Log out
Typical API Flow
A typical session looks like this:1. Create an Account
First, register a new user using:2. Log In
After creating an account, log in using:tokenName cookie.
You don’t need to manually create an API key.
3. Use Protected Endpoints
After logging in, authenticated requests use thetokenName cookie.
For example:
4. Create a Task
Once authenticated, you can create a task:5. Manage Your Tasks
You can then use the task endpoints to:- Get your tasks
- View the shared task feed
- Update a task
- Delete a task
6. Log Out
When you’re finished, use:What’s Next?
Now that you understand the basic API flow, continue with:- Authentication — understand how JWT authentication and HttpOnly cookies work.
- Creating Your First Task — create and manage a task step by step.
- API Testing — test the API using Postman.