---
title: "Run an automation now"
---

> 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.

# Run an automation now

Path: CloudRaker Workspace API › Org Automations

`POST /organization/automations/{automationId}/run`

Fires the automation immediately, exactly as its schedule would: same thread, same approval gate, same run history row. Entitlement is checked at fire time. A run already live in the thread answers `busy` (no second parallel run); one parked on an approval answers `needs_input`. Authorization: organization admin.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

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

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/organization/automations/<automationId>/run';
const options = {method: 'POST', 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>/run"

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

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

print(response.text)
```

## Responses

### 200

The fire outcome.

#### Example

```json
{
  "automationRunId": "string",
  "status": "started",
  "threadId": "string",
  "runId": "string",
  "message": "string"
}
```

- `automationRunId` (`runAutomationNow.response.200.automationRunId`; string, required)
- `status` (`runAutomationNow.response.200.status`; string, required)
  - one of `"started"`, `"success"`, `"busy"`, `"needs_input"`, `"blocked"`, `"error"`
- `threadId` (`runAutomationNow.response.200.threadId`; string, optional)
- `runId` (`runAutomationNow.response.200.runId`; string, optional)
- `message` (`runAutomationNow.response.200.message`; string, optional)


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