Skip to content

Examples

Common requests, ready to copy. Replace the placeholder key with your own.

Create a task
curl -X POST https://app.agent-task.com/api/v1/tasks \
  -H "Authorization: Bearer amk_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"title":"Write the launch post","status":"todo"}'
Update a task status
curl -X PATCH https://app.agent-task.com/api/v1/tasks/TASK_ID \
  -H "Authorization: Bearer amk_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"status":"in_progress"}'
Search tasks
curl "https://app.agent-task.com/api/v1/search?q=launch" \
  -H "Authorization: Bearer amk_xxxxxxxxxxxxxxxxxxxxxxxx"
Add a comment
curl -X POST https://app.agent-task.com/api/v1/tasks/TASK_ID/comments \
  -H "Authorization: Bearer amk_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"body":"Picked this up."}'