Skip to main content

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 Management. When a read-only API key makes a write request, the operation is automatically deferred for approval instead of being rejected.

How It Works

  1. Your agent makes a write request to any API endpoint using a read-only API key
  2. Instead of executing, the API returns a 403 with the request ID in the x-deferred-action-id header and an approval URL in the response body
  3. An authorized user approves or rejects the request via the approval URL
  4. If approved, the original request is executed and the result is available via the API

Example

Response:
The 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

When status is executed, the response includes a result field containing the response that the original API call would have returned: