Run an agent per customer task
A typed answer, by webhook
Your backend starts one session per customer request with an API key, and Rush posts the result to your webhook when the turn ends.
Best for
- Products that run an agent for each customer request
- Work with no repository: research, drafting, analysis
Uses
- An API key
- A webhook endpoint on your server
From your code
POST /o/{org}/sessions{
"agent": "claude",
"input": "Draft a reply to this support ticket from the attached thread. Keep it under 150 words."
}{
"execution_id": "7c1e9a4f-2b6d-4f83-a5c0-9e3d1b8f6a24",
"org_id": "acme",
"status": "queued",
"harness": "claude",
"created_at": "2026-10-09T00:56:44.205Z"
}Watch it work, then read what comes back
GET /o/{org}/sessions/{session}/eventsevent: thinkingThe customer asked about a refund window.event: messageDrafted a 120-word reply.event: resultturn endedPOST your webhook · run.completed- type
run.completed- data.status
completed- data.result
Thanks for reaching out. Your order is within the 30-day window…- data.total_cost_usd
0.06
Steps
- 01
Create a key
Create a key on the console's Developers page. Store the
rk_live_…secret on your server asRUSH_API_KEY. - 02
Give the key a webhook
Set a public
httpsendpoint on the key. The response carries thewhsec_…signing secret once. - 03
Start one session per task
POST /o/{org}/sessionswithagentandinput. Without a repository it runs in a sandbox of its own, with a computer and a browser. - 04
Verify and store the result
Each finished turn posts
run.completed,run.failedorrun.cancelled, signed per Standard Webhooks. Check the signature, then storedata.result.
In the API and the docs
Related
All use casesProduce a report or file, no repo
A file you download
Send a request with no repository; the agent works in its own computer and returns a file as one of the session's artifacts.
Open the recipeReview every pull request
A review on the PR
Each pull request gets an agent that checks it out in its own sandbox, runs the tests and posts a review with the evidence.
Open the recipe