Skip to content

Recipe: Script#

Not verified yet. Needs only a host and an agent key (no vendor account). The same calls are covered by the curl block in Connect and by the probe scripts/tw_recipe_claude_probe.py, which speaks plain HTTP.

Expected shape:

curl -i https://<api-host>/torii/door
curl -X POST https://<api-host>/auth/agent/connect -H 'Content-Type: application/json' -d '{"agent_name":"my-bot"}'
KEY=<the api_key it returned>
curl -X POST 'https://<api-host>/mcp?profile=full' -H "X-NW-User-Key: $KEY" -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"mandate_offers","arguments":{}}}'

Send an Idempotency-Key on writes you may retry. First three calls: see Claude.