Declarative configuration with files

sure...

export zt_session=$(curl -sk -H "Content-Type: application/json" \
    https://${ZITI_EDGE_CTRL_ADVERTISED}/authenticate?method=password \
    -d "{\"username\":\"${ZITI_USER}\",\"password\":\"${ZITI_PWD}\"}" \
    | jq -j .data.token)

Referenced from this thread (with a video if interested) from a few days ago: Issues with enrolling on windows desktop edge && 3rd Party CA issues - #2 by TheLumberjack

Then you use it how you wish, like listing /cas as in that post:

curl -sk \
    -H "Content-Type: application/json" \
    -H "zt-session: ${zt_session}" \
    "https://${ZITI_EDGE_CTRL_ADVERTISED}/edge/management/v1/cas"