> This page is for Referencia de la API.

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

# Test

POST https://signalcore.ai/v1/agents/{agent_id}/automations/{name}/test

A dry run of it, answered when it ends.

Reference: https://signalcore.ai/docs/referencia/automatizaciones/test

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `agent_id` (string, required)
- `name` (string, required)

## Response

### 200

Successful Response

- `id` (string, required)
- `agent_id` (string, required)
- `automation` (string, required)
- `title` (string, required)
- `by` (enum, required)
  - Allowed values: `schedule`, `webhook`, `event`, `platform`, `agent`, `test`
- `conversation_id` (string, required, nullable)
- `status` (enum, required)
  - Allowed values: `running`, `waiting`, `done`, `failed`, `skipped`
- `summary` (string, required, nullable)
- `error` (string, required, nullable)
- `dry` (boolean, required)
- `started_at` (datetime, required)
- `ended_at` (datetime, required, nullable)
- `tokens_in` (integer, required)
- `tokens_out` (integer, required)
- `opened` (list of string, required)
- `decision` (AppRunsDecisionOut, optional, nullable) — What a handler decided of a message (`sc.answer`, `sc.hold`, `sc.ignore`).

## Errors

### 422 Automations Test Request Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### AppRunsDecisionOut

What a handler decided of a message (`sc.answer`, `sc.hold`, `sc.ignore`).

- `kind` (enum, required)
  - Allowed values: `answer`, `hold`, `ignore`
- `reason` (string, required)

### ValidationError

- `loc` (list of ValidationErrorLocItem, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (map from string to any, optional)

### ValidationErrorLocItem

## Examples

**Response**

```json
{
  "id": "id",
  "agent_id": "agent_id",
  "automation": "automation",
  "title": "title",
  "by": "schedule",
  "conversation_id": "conversation_id",
  "status": "running",
  "summary": "summary",
  "error": "error",
  "dry": true,
  "started_at": "2024-01-15T09:30:00Z",
  "ended_at": "2024-01-15T09:30:00Z",
  "tokens_in": 1,
  "tokens_out": 1,
  "opened": [
    "opened"
  ],
  "decision": {
    "kind": "answer",
    "reason": "reason"
  }
}
```

**SDK Code**

```python
import requests

url = "https://signalcore.ai/v1/agents/agent_id/automations/name/test"

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

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

print(response.json())
```