---
title: "createMyAssistantConnection"
---

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

# createMyAssistantConnection

Path: CloudRaker Workspace API › My assistant

`POST /me/assistant/connections`

## Authentication

- `bearerAuth`, http, header `Authorization`

## Request body

_Required._

- `type` (`createMyAssistantConnection.type`; string, required)
  - one of `"remote_mcp"`, `"authenticated_http"`, `"openapi"`, `"slack"`
- `name` (`createMyAssistantConnection.name`; string, required)
  - minLength 1; maxLength 200
- `slug` (`createMyAssistantConnection.slug`; string, optional)
  - minLength 1; maxLength 64; pattern `^[a-z0-9]+(-[a-z0-9]+)*$`
- `config` (`createMyAssistantConnection.config`; map<unknown>, optional)
- `operationPolicy` (`createMyAssistantConnection.operationPolicy`; string, optional) — A connection only becomes write-capable when a builder opts in.
  - one of `"read_only"`, `"all"`; default `"read_only"`

## Example request

```json
{
  "type": "remote_mcp",
  "name": "string",
  "slug": "string",
  "config": {
    "property1": null,
    "property2": null
  },
  "operationPolicy": "read_only"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.cloudraker.com/me/assistant/connections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "remote_mcp",
  "name": "string",
  "slug": "string",
  "config": {
    "property1": null,
    "property2": null
  },
  "operationPolicy": "read_only"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/me/assistant/connections';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    type: 'remote_mcp',
    name: 'string',
    slug: 'string',
    config: {property1: null, property2: null},
    operationPolicy: 'read_only'
  })
};

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/connections"

payload = {
    "type": "remote_mcp",
    "name": "string",
    "slug": "string",
    "config": {
        "property1": None,
        "property2": None
    },
    "operationPolicy": "read_only"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 201

Private integration

#### Example

```json
{
  "data": {
    "id": "string",
    "slug": "slack-acme",
    "scope": "space",
    "spaceId": "string",
    "ownerUserId": "string",
    "type": "remote_mcp",
    "name": "Slack (Acme)",
    "config": {
      "property1": null,
      "property2": null
    },
    "credentialRef": "string",
    "definitionId": "string",
    "operationPolicy": "read_only",
    "authStatus": "connected",
    "authErrorCode": "string",
    "authErrorMessage": "string",
    "authCheckedAt": "string",
    "tokenExpiresAt": "string",
    "verificationStatus": "ready",
    "verificationMessage": "string",
    "verificationCheckedAt": "string",
    "installedActionId": "string",
    "enabled": true,
    "createdBy": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "deletedAt": "string",
    "contract": {
      "schemaVersion": 1,
      "connectionType": "string",
      "driver": "remote_mcp",
      "capabilities": [
        "mcp_tools"
      ],
      "verification": {
        "strategy": "mcp_discovery",
        "live": true
      },
      "permissions": {
        "read": true,
        "write": true
      },
      "provenance": "builtin"
    }
  }
}
```

- `data` (`createMyAssistantConnection.response.201.data`; object, required)
  - `id` (`createMyAssistantConnection.response.201.data.id`; string, required)
  - `slug` (`createMyAssistantConnection.response.201.data.slug`; string, required)
    - example `"slack-acme"`
  - `scope` (`createMyAssistantConnection.response.201.data.scope`; string, required)
    - one of `"space"`, `"user"`
  - `spaceId` (`createMyAssistantConnection.response.201.data.spaceId`; string, required)
  - `ownerUserId` (`createMyAssistantConnection.response.201.data.ownerUserId`; string | null, required)
  - `type` (`createMyAssistantConnection.response.201.data.type`; string, required)
    - example `"remote_mcp"`
  - `name` (`createMyAssistantConnection.response.201.data.name`; string, required)
    - example `"Slack (Acme)"`
  - `config` (`createMyAssistantConnection.response.201.data.config`; map<unknown>, required) — Plaintext, non-secret settings. A credential is never stored here — secrets live in the encrypted secret store.
  - `credentialRef` (`createMyAssistantConnection.response.201.data.credentialRef`; string | null, required) — An opaque reference to the stored secret — never a secret value.
  - `definitionId` (`createMyAssistantConnection.response.201.data.definitionId`; string | null, required)
  - `operationPolicy` (`createMyAssistantConnection.response.201.data.operationPolicy`; string, required)
    - one of `"read_only"`, `"all"`
  - `authStatus` (`createMyAssistantConnection.response.201.data.authStatus`; string, required)
    - one of `"connected"`, `"needs_reauth"`, `"missing_scopes"`, `"setup_incomplete"`, `"unknown"`
  - `authErrorCode` (`createMyAssistantConnection.response.201.data.authErrorCode`; string | null, required)
  - `authErrorMessage` (`createMyAssistantConnection.response.201.data.authErrorMessage`; string | null, required)
  - `authCheckedAt` (`createMyAssistantConnection.response.201.data.authCheckedAt`; string | null, required)
  - `tokenExpiresAt` (`createMyAssistantConnection.response.201.data.tokenExpiresAt`; string | null, required)
  - `verificationStatus` (`createMyAssistantConnection.response.201.data.verificationStatus`; string, required)
    - one of `"ready"`, `"configured"`, `"needs_authorization"`, `"misconfigured"`, `"degraded"`, `"unknown"`
  - `verificationMessage` (`createMyAssistantConnection.response.201.data.verificationMessage`; string | null, required)
  - `verificationCheckedAt` (`createMyAssistantConnection.response.201.data.verificationCheckedAt`; string | null, required)
  - `installedActionId` (`createMyAssistantConnection.response.201.data.installedActionId`; string | null, required) — The auto-provisioned `conn-<slug>` installed action, set only when the contract permits writes — that action is how a write reaches the approval gate.
  - `enabled` (`createMyAssistantConnection.response.201.data.enabled`; boolean, required)
  - `createdBy` (`createMyAssistantConnection.response.201.data.createdBy`; string, required)
  - `createdAt` (`createMyAssistantConnection.response.201.data.createdAt`; string, required)
  - `updatedAt` (`createMyAssistantConnection.response.201.data.updatedAt`; string, required)
  - `deletedAt` (`createMyAssistantConnection.response.201.data.deletedAt`; string | null, required)
  - `contract` (`createMyAssistantConnection.response.201.data.contract`; object, required) — What this connection can do, derived purely from its type and configuration. `permissions.write` is the whole gate: it is true only when the builder opted into writes, and it is what makes the connection appear as an approval-gated action instead of a read-only agent tool.
    - `schemaVersion` (`createMyAssistantConnection.response.201.data.contract.schemaVersion`; number, required)
    - `connectionType` (`createMyAssistantConnection.response.201.data.contract.connectionType`; string, required)
    - `driver` (`createMyAssistantConnection.response.201.data.contract.driver`; string, required)
      - one of `"remote_mcp"`, `"authenticated_http"`, `"channel"`, `"configuration"`
    - `capabilities` (`createMyAssistantConnection.response.201.data.contract.capabilities`; array<string>, required)
      - one of `"mcp_tools"`, `"typed_operations"`, `"authenticated_fetch"`, `"channel_send"`
    - `verification` (`createMyAssistantConnection.response.201.data.contract.verification`; object, required)
      - `strategy` (`createMyAssistantConnection.response.201.data.contract.verification.strategy`; string, required)
        - one of `"mcp_discovery"`, `"http_configuration"`, `"slack_auth"`, `"credential_configuration"`
      - `live` (`createMyAssistantConnection.response.201.data.contract.verification.live`; boolean, required)
    - `permissions` (`createMyAssistantConnection.response.201.data.contract.permissions`; object, required)
      - `read` (`createMyAssistantConnection.response.201.data.contract.permissions.read`; boolean, required)
      - `write` (`createMyAssistantConnection.response.201.data.contract.permissions.write`; boolean, required)
    - `provenance` (`createMyAssistantConnection.response.201.data.contract.provenance`; string, required)
      - one of `"builtin"`, `"imported"`

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`createMyAssistantConnection.response.400.success`; boolean, required)
  - one of `false`
- `error` (`createMyAssistantConnection.response.400.error`; array<unknown>, required)
- `data` (`createMyAssistantConnection.response.400.data`; unknown, required)


Source: https://docs.cloudraker.com/workspace/api/my-assistant/create-my-assistant-connection/index.md
