Athena

API Playground

Practical request templates for testing Athena endpoints.

Use these examples with your own Athena runtime.

Variables

export ATHENA_URL="http://localhost:4052"
export ATHENA_CLIENT="athena_logging"
export ATHENA_KEY="<api-key>"
export ATHENA_ADMIN_KEY="<admin-key>"

Gateway Fetch

curl -X POST "$ATHENA_URL/gateway/fetch" \
  -H "content-type: application/json" \
  -H "x-athena-client: $ATHENA_CLIENT" \
  -H "x-athena-key: $ATHENA_KEY" \
  -d '{"table":"gateway_operation_log","limit":5}'

SQL Query

curl -X POST "$ATHENA_URL/query/sql" \
  -H "content-type: application/json" \
  -H "x-athena-client: $ATHENA_CLIENT" \
  -H "x-athena-key: $ATHENA_KEY" \
  -d '{"driver":"postgresql","query":"select now()"}'

Pipeline Simulate

curl -X POST "$ATHENA_URL/pipelines/simulate" \
  -H "content-type: application/json" \
  -H "x-athena-client: $ATHENA_CLIENT" \
  -H "x-athena-key: $ATHENA_KEY" \
  -d '{"source":{"table_name":"gateway_operation_log","limit":10}}'

Cluster Health

curl "$ATHENA_URL/health/cluster"

Backup Jobs (Admin)

curl "$ATHENA_URL/admin/backups/jobs" \
  -H "x-athena-client: $ATHENA_CLIENT" \
  -H "x-athena-admin-key: $ATHENA_ADMIN_KEY"