---
title: "Read one automation"
---

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

# Read one automation

Path: CloudRaker Workspace API › Org Automations

`GET /organization/automations/{automationId}`

Reads one automation, reconciling its runtime status against the live run first (so an automation parked on an approval reads `needs_input`, and flips to `success` the moment the approval is granted in the thread). Authorization: any organization member.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `automationId` (`getAutomation.path.automationId`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/organization/automations/<automationId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/organization/automations/<automationId>';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/organization/automations/<automationId>"

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

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

print(response.text)
```

## Responses

### 200

The automation.

#### Example

```json
{
  "automation": {
    "_id": "string",
    "name": "string",
    "description": "string",
    "kind": "agent_task",
    "enabled": true,
    "playbookId": "string",
    "prompt": "string",
    "fileIds": [
      "string"
    ],
    "spaceId": "string",
    "threadId": "string",
    "threadPolicy": "reuse",
    "runAs": "string",
    "createdBy": "string",
    "organizationId": "string",
    "schedule": {
      "kind": "cron",
      "expression": "0 9 * * 1-5",
      "timezone": "Europe/Paris"
    },
    "nextRunAt": "string",
    "lastFiredAt": "string",
    "lastRunStatus": "started",
    "lastRunId": "string",
    "trigger": {
      "enabled": true,
      "secretPreview": "whsec_…9f3a",
      "secretRotatedAt": "string"
    },
    "originThreadId": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "runtimeStatus": "idle",
    "cadence": "string",
    "triggerRef": "string"
  }
}
```

- `automation` (`getAutomation.response.200.automation`; object, required)
  - `_id` (`getAutomation.response.200.automation._id`; string, required)
  - `name` (`getAutomation.response.200.automation.name`; string, required)
  - `kind` (`getAutomation.response.200.automation.kind`; string, required)
    - one of `"agent_task"`
  - `enabled` (`getAutomation.response.200.automation.enabled`; boolean, required)
  - `playbookId` (`getAutomation.response.200.automation.playbookId`; string, required)
  - `prompt` (`getAutomation.response.200.automation.prompt`; string, required)
  - `spaceId` (`getAutomation.response.200.automation.spaceId`; string, required)
  - `threadPolicy` (`getAutomation.response.200.automation.threadPolicy`; string, required)
    - one of `"reuse"`, `"new"`
  - `runAs` (`getAutomation.response.200.automation.runAs`; string, required)
  - `createdBy` (`getAutomation.response.200.automation.createdBy`; string, required)
  - `organizationId` (`getAutomation.response.200.automation.organizationId`; string, required)
  - `schedule` (`getAutomation.response.200.automation.schedule`; one of, required)
    - one of:
      - `object`
        - `kind` (`getAutomation.response.200.automation.schedule.1.kind`; string, required)
        - `expression` (`getAutomation.response.200.automation.schedule.1.expression`; string, required)
          - example `"0 9 * * 1-5"`
        - `timezone` (`getAutomation.response.200.automation.schedule.1.timezone`; string, required)
          - example `"Europe/Paris"`
      - `object`
        - `kind` (`getAutomation.response.200.automation.schedule.2.kind`; string, required)
        - `at` (`getAutomation.response.200.automation.schedule.2.at`; string, required)
          - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`; example `"2026-08-14T15:00:00.000Z"`
      - `object`
        - `kind` (`getAutomation.response.200.automation.schedule.3.kind`; string, required)
  - `nextRunAt` (`getAutomation.response.200.automation.nextRunAt`; string | null, required)
  - `trigger` (`getAutomation.response.200.automation.trigger`; object, required)
    - `enabled` (`getAutomation.response.200.automation.trigger.enabled`; boolean, required)
    - `secretPreview` (`getAutomation.response.200.automation.trigger.secretPreview`; string, required)
      - example `"whsec_…9f3a"`
    - `secretRotatedAt` (`getAutomation.response.200.automation.trigger.secretRotatedAt`; string, optional)
  - `createdAt` (`getAutomation.response.200.automation.createdAt`; string, required)
  - `updatedAt` (`getAutomation.response.200.automation.updatedAt`; string, required)
  - `runtimeStatus` (`getAutomation.response.200.automation.runtimeStatus`; string, required)
    - one of `"idle"`, `"disabled"`, `"needs_input"`, `"blocked"`, `"error"`
  - `cadence` (`getAutomation.response.200.automation.cadence`; string, required)
  - `triggerRef` (`getAutomation.response.200.automation.triggerRef`; string, required)
  - `description` (`getAutomation.response.200.automation.description`; string, optional)
  - `fileIds` (`getAutomation.response.200.automation.fileIds`; array<string>, optional)
  - `threadId` (`getAutomation.response.200.automation.threadId`; string, optional)
  - `lastFiredAt` (`getAutomation.response.200.automation.lastFiredAt`; string, optional)
  - `lastRunStatus` (`getAutomation.response.200.automation.lastRunStatus`; string, optional)
    - one of `"started"`, `"success"`, `"busy"`, `"needs_input"`, `"blocked"`, `"error"`
  - `lastRunId` (`getAutomation.response.200.automation.lastRunId`; string, optional)
  - `originThreadId` (`getAutomation.response.200.automation.originThreadId`; string, optional)


Source: https://docs.cloudraker.com/workspace/api/org-automations/get-automation/index.md
