- Wait Mode (
wait: true): Will keep the connection open until the spell returns. Best for spells that run quickly (< 60s). - Polling Mode (
wait: false): Will return a spell run ID for you to poll for results.
Endpoints
Run Spell
The Run Spell endpoint lets you call your spell programmatically. We have two modes you can use:
The spell run results will be returned as JSON in the response body:
The spell run ID will be returned as JSON in the response body:
You can use the spell run ID to poll for results:
The spell run results will be returned as JSON in the response body once the run is successful:

