Declarative configuration with files

are you looking to use curl exclusively or are you looking to leverage our golang code/sdks?

If you want to use curl, you can gert the zt-session a few ways... On this thread I made a comment about making//using a new identity. you can also use ziti edge login and then get the token:

ziti edge login "${ZITI_CTRL_EDGE_ADVERTISED_ADDRESS}:${ZITI_CTRL_EDGE_ADVERTISED_PORT}" -u "${ZITI_USER-}" -p "${ZITI_PWD}" -y
Token: d579cae7-042e-4edf-b491-2f0c513a3e79
Saving identity 'default' to /home/ubuntu/.config/ziti/ziti-cli.json

If you're looking to use golang code, I'd have a look at how I did ziti ops verify-traffic

That give you enough to go on?