palbaseDocs

Palbase ai · API

POST/ai/waits/{wait_id}/cancel

Cancel a wait

Cancel an open zero-compute wait and notify its waiting run.

Called by your server, with the project's secret key.

Path

wait_idstring · requiredWait identifier
curl
curl -X POST "https://<your-ref>.palbase.studio/ai/waits/<wait_id>/cancel" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200Wait canceled

400The request is malformed, or names what this module does not offer (the error names which)

401No valid credential

403A publishable key or a user's session: everything here is the project's server's, called with the secret key

404No such response, job or provider in this project

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation CancelWait of ai's contract.