> ## Documentation Index
> Fetch the complete documentation index at: https://api.scalysis.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List agents

> See every agent on your account and its ID.

Returns all your agents, most recently edited first. Use `id` as `scriptId` when you [trigger a call](https://api.scalysis.com/api-reference/calls/trigger.md) or [create a campaign](https://api.scalysis.com/api-reference/campaigns/create.md).

The list is not paged. All agents come back in one response, including ones you no longer use. Pick by `name` or `updatedAt`.

```bash cURL theme={null}
curl https://app.scalysis.com/api/v1/scripts \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json 200 theme={null}
{
  "success": true,
  "scripts": [
    {
      "id": 2207,
      "name": "COD Confirmation",
      "description": "",
      "isWriteAI": false,
      "contentPreview": "# IDENTITY - You are Priya, a female agent from Demo Store...",
      "createdAt": "2026-10-12T06:30:00.000Z",
      "updatedAt": "2026-10-20T07:17:00.000Z"
    }
  ]
}
```

## Response

**scripts\[].id** `number`

Agent ID. Send it as `scriptId`.

**scripts\[].name** `string`

Agent name, as shown in the dashboard.

**scripts\[].contentPreview** `string`

The first few words of the agent's instructions.

**scripts\[].isWriteAI** `boolean`

`true` if the instructions were written with Scalysis AI.

**scripts\[].updatedAt** `string`

When the agent was last edited.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.