stripe_create_refund is configured to require sign-off, the Worker pauses and emits a Review. Your app notifies a support lead, captures their decision, and sends it back—unblocking the refund immediately.
Review types
The Factory API supports three Review types today under/v1/rooms/{roomId}/reviews:
Detecting pending Reviews
When a Worker requests a Review, its status switches towaiting until the request is resolved. You can discover pending Reviews in two ways:
- Push (recommended): subscribe to
reviews.approvals.created,reviews.questions.created, andreviews.connect_apps.createdvia Subscriptions. - Poll: call
GET /v1/rooms/{roomId}/reviewsto list pending requests for the Room, oldest first (optionally filtered byworkerIdandkind).
Resolving a Review from your app
- Approval
- Question
- Connect an app
Send The decision applies to every tool call listed in
approve or deny for the pending requestId:calls. For security, the request exposes tool names and input field names rather than raw input values.200 OK with requestId and workerId, and the Worker resumes immediately.
Who can resolve a Review
Reviews aren’t locked to a single surface—the first valid response wins:- Your application, via the Factory API using the factory’s API key.
- Your team in the Worklayer web app (the owner and authorized factory members).
- Your team in Slack, when the task originated from a Slack Channel.
409 Conflict.
Handling requestId updates
Always use the latestrequestId returned by GET /v1/rooms/{roomId}/reviews or your webhook payload. If the pending tool calls or questions change before someone responds, Worklayer issues a new requestId. Submitting an outdated requestId returns 409 Conflict with Request has changed.—simply re-fetch the pending Reviews and present the updated request.
Errors
Workers
Inspect the status and live output of the Worker waiting on Review.
Subscriptions
Receive instant webhooks whenever a Review is created.