Palbase ai · API
POST
/ai/workflows/runs/{run_id}/steps/{step_key}Record or replay a memoized workflow step
Idempotently record a workflow step's output or return the previously memoized result when already completed.
Called by your server, with the project's secret key.
Path
run_idstring · requiredWorkflow run identifierstep_keystring · requiredDeterministic step keyRequest body
kindstring · optionalstatusstring · optionalinputobject · optionaloutputobject · optionalerrorstring · optionalsleep_secondsinteger · optionaltimeout_secondsinteger · optionalmatch_topicstring · optionalmatch_filterobject · optionalapproval_idstring · optionalcurl
curl -X POST "https://<your-ref>.palbase.studio/ai/workflows/runs/<run_id>/steps/<step_key>" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"kind":"do","status":"string","input":{},"output":{},"error":"string","sleep_seconds":0,"timeout_seconds":0,"match_topic":"string","match_filter":{},"approval_id":"string"}'Responses
200Memoized workflow step
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 RecordWorkflowStep of ai's contract.