palbaseDocs

Palbase ai · API

POST/ai/triggers/{trigger_id}/test

Dry-run or test-fire a trigger

Evaluate a trigger's filter and render its prompt template with sample payload; optionally fire it.

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

Path

trigger_idstring · requiredTrigger identifier

Request body

payloadobject · optional
executeboolean · optional
curl
curl -X POST "https://<your-ref>.palbase.studio/ai/triggers/<trigger_id>/test" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"payload":{},"execute":false}'

Responses

200Trigger test result

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 TestTrigger of ai's contract.