We built an API for our agents. It creates sessions that figure things out and solve problems by writing code. Your tools call the API, get a URL back, and the agent gets to work. Having an API for this opens all sorts of possibilities for your overall workflows.
Cased’s API includes the ability to directly start agent sessions, or to trigger Cased’s pre-built workflows.
Example
Your monitoring system detects a problem. It calls our API with a promptt and context and sends back a session ID and URL
curl -X POST https://app.cased.com/api/v1/agent-sessions \
-H "Authorization: Bearer $CASED_API_KEY" \
-d '{
"prompt": "Take look at this failed deployment",
"context": "Deployment failed on production.
Error: Cannot connect to database
Time: 2025-08-18 03:14:22 UTC
Service: api-gateway
Region: us-east-1
Last deploy: 3 hours ago (commit abc123)
Full stack trace:
psycopg2.OperationalError: FATAL: remaining connection slots are reserved
File /app/db.py, line 47, in connect
File /app/handlers.py, line 122, in process_request
[... 200 more lines of logs ...]"
}'
Open the returned URL and the agent is already at work, building graphs, checking logs, finding underlying causes.
Real Use Cases
GitHub webhooks: PR created → session created → agent reviews code and comments link
PagerDuty incidents: Alert fires → session created → agent investigating before you wake up
Slack commands: @cased check out issue #210
→ session created → whole team can follow the work
Deployment pipelines: Deploy starts → session created → watch metrics and rollback if needed
Context Is Everything
Pass context when creating sessions:
- Error messages
- Recent deployments
- System state
- Whatever helps!
The agent starts with this loaded, so there’s no copy-pasting or explaining.
What You Could Build
Runbooks that create sessions for each step. Cost dashboards that spawn daily optimization sessions. On-call tools that pre-investigate every alert. The possibilities are interesting once you think how to augment your existing flows.
Live today
The API is live, give it a try.