First authenticate against the API:
curl -si $HOST:$CHERRY_PORT/login' -H 'Accept: application/json' -H 'Content-type: application/json' -d "{"username": "$USER", "password": "$PASS", "eauth": "pam"}"
Request data from Salt Mine using the token given by the login:
curl -sS -i -H "Accept: application/json" -H "Content-type: application/json" -H "X-Auth-Token: $TOKEN" -d "[{"username": "$USER", "password": "$PASS", "eauth": "pam", "client": "runner", "fun": "mine.get", "tgt": "*", "kwargs": {"tgt": "db9svc*", "fun": "grains.items"}}]" $HOST:$CHERRY_PORT