Under the hood

curl -X POST "$OPENTODO/api/v1/tasks" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title":"Renew passport","priority":1}'

ot add "Renew passport" --priority 1 --due tomorrow

Read the code.

OpenTodo on GitHub