Documentation Index Fetch the complete documentation index at: https://writechoice-8439b44d-mintlify-78019799.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
This guide walks you through the core TaskFlow workflow: creating a project,
adding a task, updating its status, and deleting it when done.
Step 1 — Create a project
curl -X POST "https://test-writechoice.onrender.com/projects" \
-H "Authorization: Bearer tf-live-4a8f2c1e9b3d7e6a" \
-H "Content-Type: application/json" \
-d '{
"name": "My First Project",
"description": "Testing the TaskFlow API."
}'
Response:
{
"project_id" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
"name" : "My First Project" ,
"description" : "Testing the TaskFlow API." ,
"created_at" : "2025-05-12T10:30:00.000Z"
}
Save the project_id — you’ll need it to create tasks.
Step 2 — Create a task
curl -X POST "https://test-writechoice.onrender.com/tasks" \
-H "Authorization: Bearer tf-live-4a8f2c1e9b3d7e6a" \
-H "Content-Type: application/json" \
-d '{
"project_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"title": "Write introduction page",
"description": "Draft the overview and getting started sections."
}'
Response:
{
"task_id" : "f9e8d7c6-b5a4-3210-fedc-ba9876543210" ,
"project_id" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
"title" : "Write introduction page" ,
"description" : "Draft the overview and getting started sections." ,
"status" : "pending" ,
"created_at" : "2025-05-12T10:35:00.000Z" ,
"updated_at" : "2025-05-12T10:35:00.000Z"
}
Step 3 — Update the task status
curl -X PATCH "https://test-writechoice.onrender.com/tasks/f9e8d7c6-b5a4-3210-fedc-ba9876543210" \
-H "Authorization: Bearer tf-live-4a8f2c1e9b3d7e6a" \
-H "Content-Type: application/json" \
-d '{"status": "in_progress"}'
Step 4 — List all tasks
curl -X GET "https://test-writechoice.onrender.com/projects/a1b2c3d4-e5f6-7890-abcd-ef1234567890/tasks" \
-H "Authorization: Bearer tf-live-4a8f2c1e9b3d7e6a"
Step 5 — Delete a task
curl -X DELETE "https://test-writechoice.onrender.com/tasks/f9e8d7c6-b5a4-3210-fedc-ba9876543210" \
-H "Authorization: Bearer tf-live-4a8f2c1e9b3d7e6a"
API Reference See all endpoints in detail.
Error Handling Understand error responses.