Skip to content

Call Vexly with curl

curl -sS https://api.vexly.io/api/v1/public/agent/runs \
  -H "Authorization: Bearer $VEXLY_ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"prompt":"Reply with exactly: hello from curl"}'

Poll a run:

curl -sS "https://api.vexly.io/api/v1/public/agent/runs/$RUN_ID" \
  -H "Authorization: Bearer $VEXLY_ACCESS_TOKEN"