MarketSupport← Back to app

Webhooks & Callbacks

97AI.PRO currently uses a polling model for asynchronous results.

Current behavior

Webhook callbacks are not available yet
The relay does not send outbound webhook/callback requests today, and there is no callBackUrl parameter or signature header to verify. Ignore any third-party docs that describe an X-Webhook-Signature flow — that does not apply here.

How to get results

Start a task, then poll the task endpoint until it reaches a terminal state:

cURL
# 1) create the task
curl -X POST "https://97ai.97claude.com/api/generate" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": "google/nano-banana", "input": { "prompt": "a cat" } }'
# → { "taskId": "task_123", "state": "waiting" }

# 2) poll every few seconds until state is success or fail
curl "https://97ai.97claude.com/api/generate/task_123" \
  -H "Authorization: Bearer $API_KEY"

See Get Task Details for the full response shape. Chat requests (POST /api/chat) are synchronous and need no polling.

Roadmap

If webhook callbacks are added in the future, this page will document the exact payload, headers, and signature-verification steps. Until then, polling is the supported integration path.