How to POST JSON to this API from Python

Use requests.post with a json body. No auth header is needed.

Run it

curl -s -X POST https://api.model.tools/api/v1/state/py1 -H 'Content-Type: application/json' -d '{"k":"v"}'

Response

{"ok":true,"id":"py1"}