Your Todos

No todos available. You have 0 todos.

Create your first todo using the form above.

API commands for this page

Run these examples from a terminal. Replace sample values and add your bearer token where required.

List todos

curl -q -LSsf -H 'Authorization: Bearer YOUR_TOKEN' 'https://api.casjay.coffee/api/v1/data/todos/list'

Create todo

curl -q -LSsf -X POST -H 'Content-Type: application/json' --data-raw '{"title":"Example task","description":"Task details"}' -H 'Authorization: Bearer YOUR_TOKEN' 'https://api.casjay.coffee/api/v1/data/todos/create'

Update todo

curl -q -LSsf -X PUT -H 'Content-Type: application/json' --data-raw '{"title":"Updated task"}' -H 'Authorization: Bearer YOUR_TOKEN' 'https://api.casjay.coffee/api/v1/data/todos/YOUR_TODO_ID'

Toggle todo

curl -q -LSsf -X PATCH -H 'Content-Type: application/json' --data-raw '{}' -H 'Authorization: Bearer YOUR_TOKEN' 'https://api.casjay.coffee/api/v1/data/todos/YOUR_TODO_ID/toggle'

Delete todo

curl -q -LSsf -X DELETE -H 'Authorization: Bearer YOUR_TOKEN' 'https://api.casjay.coffee/api/v1/data/todos/YOUR_TODO_ID'