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

# API and MCP

> Read automations and their runs from code, or from Claude, Cursor, and other MCP clients.

Automations are read-only outside the app. Create and edit them in **Settings → Automations**.

## REST API

Create an [API key](https://docs.decimal.app/api-reference/authentication.md) with the `automations:read` scope, then call:

| Endpoint | Returns |
| - | - |
| `GET /v0/automations` | Every automation: name, instructions, on or off, trigger, tools, and next scheduled run |
| `GET /v0/automations/{id}` | One automation. The ID is the last part of its URL in Settings |
| `GET /v0/automations/{id}/runs` | Its runs, newest first, with status, error, trigger, ticket, and timings |

## MCP

Admins connected to the [Decimal MCP server](https://docs.decimal.app/api-reference/mcp.md) can use `list_automations`, `get_automation`, and `list_automation_runs` from Claude, Cursor, and other MCP clients. Ask things like "Which automations failed this week, and why?"


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