> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.jelliu.co/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.jelliu.co/_mcp/server.

# List held actions waiting for (or decided by) a person

GET https://api.jelliu.co/api/agent-approvals

The approval tray: writes an agent asked for that the workspace's approval policy held, and
actions the platform itself holds for a person (registering a confirmed payment in the ERP).
Newest first. The clocks are applied on read: a `pending` row past `expires_at` is returned
as `expired`, and an `executing` row stuck for more than 10 minutes as `execution_unknown`.

Every row held since 2026-09-23 carries `summary`, the request as one Spanish sentence
("Crear nota en HubSpot (Ana Gómez)", "Registrar pago de $ 150.000 COP de Juan Pérez en
Alegra, aplicado a la factura FV-120. …"). It is built from the tool, its app and the person
the conversation serves — never from the arguments. Older rows have `summary: null`.
`params` are the arguments, redacted. The raw arguments are never returned.

**Access**
- **Required role:** `admin` (a person, or a key with `full` scope).
- **Rate limit:** Audit routes limit. See [Rate limits](/rate-limits).
- **Plan:** Available on every plan.


Reference: https://developer.jelliu.co/api-reference/agents/get-agent-approvals

## Authentication

- `Authorization` header (bearer token, required) — Workspace API key: `jl_` followed by 64 lowercase hex characters, created by the workspace owner in the dashboard (**Settings → API Keys**) and sent as `Authorization: Bearer jl_...`. The plaintext is shown once, at creation; Jelliu stores only a SHA-256 hash. A workspace can hold up to 25 active keys. | Scope | GET / HEAD | POST / PUT / PATCH / DELETE | Admin-only routes | | --- | --- | --- | --- | | `read` | Yes | No | No | | `write` | Yes | Yes | No | | `full` | Yes | Yes | Yes | Operations restricted to admins or owners reject keys without the `full` scope with `403`, and say so in their description. No key, whatever its scope, can mint or revoke API keys or rotate a webhook secret — that requires a signed-in owner session. A revoked key stops authenticating within about 10 seconds. See [Authentication](/authentication).

## Request

### Query parameters

- `status` (enum, optional)
  - Allowed values: `pending`, `executing`, `executed`, `execution_failed`, `execution_unknown`, `approved`, `rejected`, `expired`
- `agentId` (string, optional)
- `limit` (integer, optional, default: 50)
- `offset` (integer, optional, default: 0)

## Response

### 200

The held actions.

- `data` (list of ApiAgentApprovalsGetResponsesContentApplicationJsonSchemaDataItems, required)

## Errors

### 400 Bad Request Error

Invalid query parameters.

- `error` (ErrorResponseError, required) — The error object. Always has `code` and `message`.

## Types

### ApiAgentApprovalsGetResponsesContentApplicationJsonSchemaDataItems

- `id` (string, required)
- `summary` (string, required, nullable) — The request as a Spanish sentence for the approver. Null on rows held before 2026-09-23.
- `tool_name` (string, required)
- `tool_source` (string, required) — Which executor runs it on approval (`composio`, `erp_payment`; `mcp_gateway` for record-only rows).
- `expires_at` (datetime, required)
- `status` (enum, required)
  - Allowed values: `pending`, `executing`, `executed`, `execution_failed`, `execution_unknown`, `approved`, `rejected`, `expired`
- `executable` (boolean, required) — Whether approving this row runs it. Approving without executing is always possible.
- `execution_note` (string, required) — What approving does
- `agent_id` (string, optional, nullable)
- `agent_name_at_time` (string, optional, nullable) — Who asked. `Jelliu` for actions the platform holds itself.
- `conversation_id` (string, optional, nullable)
- `call_id` (string, optional, nullable)
- `toolkit` (string, optional, nullable)
- `reversibility` (enum, optional)
  - Allowed values: `reversible`, `compensable`, `irreversible`
- `matched_rule` (string, optional) — Why it was held (`class`, `tool`, `unreadable_policy`, or `platform` for a hold the platform raises itself).
- `params` (ApiAgentApprovalsGetResponsesContentApplicationJsonSchemaDataItemsParams, optional, nullable) — The arguments
- `requested_at` (datetime, optional)
- `expired_by_clock` (boolean, optional)
- `decided_by` (string, optional, nullable)
- `decided_at` (datetime, optional, nullable)
- `decision_note` (string, optional, nullable)
- `executed_at` (datetime, optional, nullable)
- `execution_action_id` (string, optional, nullable)
- `execution_error` (string, optional, nullable)

### ErrorResponseError

The error object. Always has `code` and `message`.

- `code` (string, required) — Stable machine-readable error code (for example `VALIDATION_FAILED`, `PAYLOAD_TOO_LARGE`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `BILLING_ERROR`, `COMPLIANCE_BLOCKED`, `RATE_LIMIT_EXCEEDED`, `INTERNAL_ERROR`). Switch on this, not on `message`. See [Errors](/errors).
- `message` (string, required) — Human-readable explanation. English or Spanish depending on the route; may change without notice.
- `details` (ErrorResponseErrorDetails, optional) — Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields); * for a rejected multipart upload (file in an unexpected field, too many files), a list with the upload error `code` (for example `LIMIT_UNEXPECTED_FILE`) and the `field` name. Absent when the value was rejected outside the route's own validation: a malformed id, number or date the database could not read, or a JSON body that does not parse.
- `metadata` (map from string to any, optional) — Structured detail exposed for a small allowlist of codes only — for example `BILLING_ERROR` carries `limit`, `current` and `tier` (resource caps), `tier` alone (feature gates), or `tier` = `none` with `kind` = `subscription_required` when the workspace has no active subscription. See [Errors](/errors).

### ApiAgentApprovalsGetResponsesContentApplicationJsonSchemaDataItemsParams

The arguments

### ErrorResponseErrorDetails

Present on `VALIDATION_FAILED` only. Its shape depends on how the route validates: * a field map, either Zod's `flatten()` output (`{ "formErrors": [], "fieldErrors": { "name": ["..."] } }`) or just its `fieldErrors` part (`{ "name": ["..."] }`); * an issue list, where each issue has at least `path`, `message` and `code`. `path` is a dot-separated string on routes that let the schema throw, and an array of keys on routes that forward Zod's raw issues (those also carry Zod's extra issue fields); * for a rejected multipart upload (file in an unexpected field, too many files), a list with the upload error `code` (for example `LIMIT_UNEXPECTED_FILE`) and the `field` name. Absent when the value was rejected outside the route's own validation: a malformed id, number or date the database could not read, or a JSON body that does not parse.

- Field map: Field map
- Issue list: list of ErrorResponseErrorDetailsOneOf1Items

### Field map

- `formErrors` (list of string, optional)
- `fieldErrors` (map from string to list of string, optional)

### ErrorResponseErrorDetailsOneOf1Items

- `path` (ErrorResponseErrorDetailsOneOf1ItemsPath, optional) — Dot-separated string, or an array of keys.
- `message` (string, optional)
- `code` (string, optional) — Zod issue code, for example `invalid_type`.

### ErrorResponseErrorDetailsOneOf1ItemsPath

Dot-separated string, or an array of keys.

- string
- list of ErrorResponseErrorDetailsOneOf1ItemsPathOneOf1Items

### ErrorResponseErrorDetailsOneOf1ItemsPathOneOf1Items

- string
- integer

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "3f2a9c1e-5b7d-4e8a-9c6b-1d2e3f4a5b6c",
      "summary": "Crear nota en HubSpot (Ana Gómez)",
      "tool_name": "HUBSPOT_CREATE_NOTE",
      "tool_source": "composio",
      "expires_at": "2026-09-23T16:00:00Z",
      "status": "pending",
      "executable": true,
      "execution_note": "Aprobar la ejecuta una sola vez, tal como la pidió el agente. También se puede aprobar sin ejecutar.",
      "agent_id": "8b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
      "agent_name_at_time": "Cobros",
      "conversation_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "call_id": null,
      "toolkit": "hubspot",
      "reversibility": "reversible",
      "matched_rule": "tool",
      "params": {
        "hs_note_body": "[REDACTED]"
      },
      "requested_at": "2026-09-23T15:00:00Z",
      "expired_by_clock": false,
      "decided_by": null,
      "decided_at": null,
      "decision_note": null,
      "executed_at": null,
      "execution_action_id": null,
      "execution_error": null
    }
  ]
}
```

**SDK Code**

```python Agents_getAgentApprovals_example
import requests

url = "https://api.jelliu.co/api/agent-approvals"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Agents_getAgentApprovals_example
const url = 'https://api.jelliu.co/api/agent-approvals';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Agents_getAgentApprovals_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.jelliu.co/api/agent-approvals"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Agents_getAgentApprovals_example
require 'uri'
require 'net/http'

url = URI("https://api.jelliu.co/api/agent-approvals")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Agents_getAgentApprovals_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.jelliu.co/api/agent-approvals")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Agents_getAgentApprovals_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.jelliu.co/api/agent-approvals', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Agents_getAgentApprovals_example
using RestSharp;

var client = new RestClient("https://api.jelliu.co/api/agent-approvals");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Agents_getAgentApprovals_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.jelliu.co/api/agent-approvals")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```