This should do the trick:
TOKEN="FIXME"
CONTENT="I'm a task"
NOTE="I'm a note"
curl --header "Content-Type: application/json" \
--request POST \
--data "{\"token\":\"${TOKEN}\",\"content\":\"${CONTENT}\",\"note\":\"${NOTE}\"}" \
https://dynalist.io/api/v1/inbox/add