> This page is for Workspace app.

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

# Run your personal routine now

POST https://api.cloudraker.com/me/assistant/routines/{routineId}/fire

Reference: https://docs.cloudraker.com/workspace/api/my-assistant/fire-my-assistant-routine

## Authentication

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

## Request

### Path parameters

- `routineId` (string, required)

## Response

### 202

Run your personal routine now

- `data` (AssistantRoutine, required)

## Errors

### 400 Bad Request Error

Validation Error

- `success` (boolean, required)
- `error` (list of any, required)
- `data` (any, required)

### 402 Payment Required Error

`credits_exhausted`: the organization has no credits left.

- `error` (string, required) — The sentence a human reads.
- `error_code` (string, required) — The stable snake_case branch key.
- `issues` (list of ErrorEnvelopeIssuesItems, optional) — Per-field detail, present only on a validation failure.

### 403 Forbidden Error

An active personal account is required.

- `any`

### 404 Not Found Error

The resource is unavailable to this user.

- `any`

### 409 Conflict Error

`routine_disabled`: turn the routine on first.

- `error` (string, required) — The sentence a human reads.
- `error_code` (string, required) — The stable snake_case branch key.
- `issues` (list of ErrorEnvelopeIssuesItems, optional) — Per-field detail, present only on a validation failure.

## Types

### AssistantRoutine

- `id` (string, required)
- `tier` (enum, required)
  - Allowed values: `cloudraker`, `company`, `user`
- `name` (string, required)
- `schedule` (string, required)
- `instruction` (string, required)
- `enabled` (boolean, required)
- `markdown` (string, required)
- `nextRunAt` (string, required, nullable)
- `lastRunAt` (string, required, nullable)
- `lastOutcome` (enum, required, nullable)
  - Allowed values: `queued`, `running`, `completed`, `failed`, `refused`, `conflict`, `disabled`

### ErrorEnvelopeIssuesItems

- `path` (string, required)
- `code` (string, required)
- `message` (string, required)

## Examples

**Response**

```json
{
  "data": {
    "id": "string",
    "tier": "cloudraker",
    "name": "string",
    "schedule": "string",
    "instruction": "string",
    "enabled": true,
    "markdown": "string",
    "nextRunAt": "2026-10-08T09:00:00-04:00",
    "lastRunAt": "2026-10-08T09:00:00-04:00",
    "lastOutcome": "queued"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.cloudraker.com/me/assistant/routines/routineId/fire"

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

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

print(response.json())
```

```javascript
const url = 'https://api.cloudraker.com/me/assistant/routines/routineId/fire';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.cloudraker.com/me/assistant/routines/routineId/fire"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.cloudraker.com/me/assistant/routines/routineId/fire")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.cloudraker.com/me/assistant/routines/routineId/fire")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.cloudraker.com/me/assistant/routines/routineId/fire', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.cloudraker.com/me/assistant/routines/routineId/fire");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.cloudraker.com/me/assistant/routines/routineId/fire")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```