API commands for this page

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

Current account

curl -q -LSsf -H 'Authorization: Bearer YOUR_TOKEN' 'https://api.casjay.coffee/api/v1/auth/me'

API tokens

curl -q -LSsf -H 'Authorization: Bearer YOUR_TOKEN' 'https://api.casjay.coffee/api/v1/auth/tokens'

Update account

curl -q -LSsf -X PUT -H 'Content-Type: application/json' --data-raw '{"name":"Your Name"}' -H 'Authorization: Bearer YOUR_TOKEN' 'https://api.casjay.coffee/api/v1/auth/update'

Todos

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

Notes

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

Shortened URLs

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