Overview
Agent Requests let AI agents and automated systems make changes through the Slash API with human approval. Write operations are not executed immediately — they create a pending request that must be approved before taking effect.Setup
To use agent requests, create a read-only API key from the Slash dashboard under Settings > API Keys. When a read-only API key makes a write request, the operation is automatically deferred for approval instead of being rejected.How It Works
- Your agent makes a write request to any API endpoint using a read-only API key
- Instead of executing, the API returns a
403with the request ID in thex-deferred-action-idheader and an approval URL in the response body - An authorized user approves or rejects the request via the approval URL
- If approved, the original request is executed and the result is available via the API
Example
x-deferred-action-id header contains the request ID. The error message includes a URL where an authorized user can review and approve the request.
Checking Request Status
Status Values
| Status | Description |
|---|---|
pending | Awaiting approval |
approved | Approved, execution starting |
running | Currently executing |
executed | Successfully executed |
rejected | Rejected by approver |
expired | Expired before approval |
failed | Execution failed |
executed, the response includes a result field containing the response that the original API call would have returned: