---
title: "Message your personal assistant"
---

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

# Message your personal assistant

Path: CloudRaker Workspace API › My assistant

`POST /me/assistant/messages`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Request body

_Required._

- `id` (`sendMyAssistantMessage.id`; string, required) — Your message id. A retry with the same id is a no-op.
  - pattern `^[A-Za-z0-9_-]{1,80}$`
- `text` (`sendMyAssistantMessage.text`; string, required)
  - minLength 1; maxLength 16000
- `replyTo` (`sendMyAssistantMessage.replyTo`; string, optional)
  - pattern `^[A-Za-z0-9_-]{1,80}$`
- `fileIds` (`sendMyAssistantMessage.fileIds`; array<string>, optional) — Files from your own files (`me:<userId>`) to attach.
  - minLength 1; maxLength 128

## Example request

```json
{
  "id": "string",
  "text": "string",
  "replyTo": "string",
  "fileIds": [
    "string"
  ]
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.cloudraker.com/me/assistant/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "string",
  "text": "string",
  "replyTo": "string",
  "fileIds": [
    "string"
  ]
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/me/assistant/messages';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({id: 'string', text: 'string', replyTo: 'string', fileIds: ['string']})
};

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/me/assistant/messages"

payload = {
    "id": "string",
    "text": "string",
    "replyTo": "string",
    "fileIds": ["string"]
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 202

Message your personal assistant

#### Example

```json
{
  "data": {
    "id": "string",
    "queued": true
  }
}
```

- `data` (`sendMyAssistantMessage.response.202.data`; object, required)
  - `id` (`sendMyAssistantMessage.response.202.data.id`; string, required)
  - `queued` (`sendMyAssistantMessage.response.202.data.queued`; boolean, required)

### 400

`reply_not_found`: the message you reply to is gone.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`sendMyAssistantMessage.response.400.error`; string, required) — The sentence a human reads.
- `error_code` (`sendMyAssistantMessage.response.400.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`sendMyAssistantMessage.response.400.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`sendMyAssistantMessage.response.400.issues.path`; string, required)
  - `code` (`sendMyAssistantMessage.response.400.issues.code`; string, required)
  - `message` (`sendMyAssistantMessage.response.400.issues.message`; string, required)

### 402

`credits_exhausted`: the organization has no credits left.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`sendMyAssistantMessage.response.402.error`; string, required) — The sentence a human reads.
- `error_code` (`sendMyAssistantMessage.response.402.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`sendMyAssistantMessage.response.402.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`sendMyAssistantMessage.response.402.issues.path`; string, required)
  - `code` (`sendMyAssistantMessage.response.402.issues.code`; string, required)
  - `message` (`sendMyAssistantMessage.response.402.issues.message`; string, required)

### 403

An active personal account is required.

### 404

The resource is unavailable to this user.

### 409

`request_conflict`: the message id was used for another message.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`sendMyAssistantMessage.response.409.error`; string, required) — The sentence a human reads.
- `error_code` (`sendMyAssistantMessage.response.409.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`sendMyAssistantMessage.response.409.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`sendMyAssistantMessage.response.409.issues.path`; string, required)
  - `code` (`sendMyAssistantMessage.response.409.issues.code`; string, required)
  - `message` (`sendMyAssistantMessage.response.409.issues.message`; string, required)

### 429

`queue_full`: wait for the assistant to catch up.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`sendMyAssistantMessage.response.429.error`; string, required) — The sentence a human reads.
- `error_code` (`sendMyAssistantMessage.response.429.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`sendMyAssistantMessage.response.429.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`sendMyAssistantMessage.response.429.issues.path`; string, required)
  - `code` (`sendMyAssistantMessage.response.429.issues.code`; string, required)
  - `message` (`sendMyAssistantMessage.response.429.issues.message`; string, required)


Source: https://docs.cloudraker.com/workspace/api/my-assistant/send-my-assistant-message/index.md
