Inspect

Get automation

Retrieve a single automation by ID.

Base URL
GET
/api/v2/automations/{automation_id}

Retrieve a single automation by ID.

Authorization

bearerAuth automations:read
headerAuthorizationBearer <token>

API key authentication. Use your API key as the bearer token.

Scope: automations:read

Path Parameters

automation_id*string

Response Body

Automation details

application/json
  1. response
data*
Example Request
curl -X GET 'https://app.inspect.com/api/v2/automations/k3v8n2w6q9ts'
Example Response
{  "data": {    "id": "k3v8n2w6q9ts",    "name": "Triage failing CI on main",    "description": "Investigates failing checks on main and opens a pull request with a fix.",    "prompt": "Investigate the failing {{check_name}} check on main for the {{service}} service and open a pull request with a fix.",    "repositories": [      "web"    ],    "triggers": [      {        "id": "m4p7x2c9d5hf",        "type": "cron",        "schedule_expression": "Every weekday at 9am",        "cron_expression": "0 9 * * 1-5",        "timezone": "America/New_York",        "enabled": true      }    ],    "slack_channel_id": "C03KH3AGN2G",    "post_to_slack_on_start": true,    "slack_mention_users": [      {        "type": "user",        "id": "U04QZ8K2M7N",        "name": "Jane Doe",        "avatar_url": "https://avatars.slack-edge.com/2024-03-12/6801234567890_3f9a1b2c4d5e6f708192_192.jpg"      }    ],    "notify_collaborators_on_merge": false,    "run_as": "owner",    "owner": {      "id": "Vq3kZ8xN2pLm7RtY4wHc9JbF6sDg1aEu",      "name": "Jane Doe",      "email": "jane@acme.com",      "avatar_url": "https://avatars.githubusercontent.com/u/5831047?v=4"    },    "collaborators": [      {        "id": "Vq3kZ8xN2pLm7RtY4wHc9JbF6sDg1aEu",        "name": "Jane Doe",        "email": "jane@acme.com",        "avatar_url": "https://avatars.githubusercontent.com/u/5831047?v=4"      }    ],    "model_id": "claude-opus-5-5",    "agent_id": "h2w9c4m7k1xz",    "autofix_ci_failures": true,    "auto_address_pull_request_reviews_policy": {      "enabled": true,      "reviewer_categories": {        "human": true,        "bot": false      },      "identity_rules": [        {          "selector": "bot:49699333",          "rule_type": "block"        }      ],      "review_buddy": {        "enabled": true,        "enabled_finding_types": [          "critical",          "warning"        ]      }    },    "template_variables": {      "service": {        "label": "Service",        "value_type": "text",        "default_value": "web",        "options": [          "web",          "api",          "worker"        ]      }    },    "enabled": true,    "last_run_at": "2026-10-29T13:00:04.512Z",    "next_run_at": "2026-10-30T13:00:00.000Z",    "archived_at": null,    "created_at": "2026-10-28T15:42:11.204Z",    "updated_at": "2026-10-28T16:05:37.918Z",    "viewer_can_edit": true  }}