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

# cody

> Cody AI Assistant

**Server path:** `/cody` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                                      | Description                  |
| ------------------------------------------------------------------------- | ---------------------------- |
| [`cody_create_conversation`](#cody_create_conversation)                   | Create Conversation          |
| [`cody_create_document`](#cody_create_document)                           | Create Document              |
| [`cody_create_document_from_file`](#cody_create_document_from_file)       | Create Document from File    |
| [`cody_create_document_from_webpage`](#cody_create_document_from_webpage) | Create Document from Webpage |
| [`cody_create_folder`](#cody_create_folder)                               | Create Folder                |
| [`cody_delete_conversation`](#cody_delete_conversation)                   | Delete Conversation          |
| [`cody_delete_document`](#cody_delete_document)                           | Delete Document              |
| [`cody_get_conversation`](#cody_get_conversation)                         | Get Conversation             |
| [`cody_get_document`](#cody_get_document)                                 | Get Document                 |
| [`cody_get_folder`](#cody_get_folder)                                     | Get Folder                   |
| [`cody_get_message`](#cody_get_message)                                   | Get Message                  |
| [`cody_get_uploads_signed_url`](#cody_get_uploads_signed_url)             | Get Upload URL               |
| [`cody_list_bots`](#cody_list_bots)                                       | List Bots                    |
| [`cody_list_conversations`](#cody_list_conversations)                     | List Conversations           |
| [`cody_list_documents`](#cody_list_documents)                             | List Documents               |
| [`cody_list_folders`](#cody_list_folders)                                 | List Folders                 |
| [`cody_list_messages`](#cody_list_messages)                               | List Messages                |
| [`cody_send_message`](#cody_send_message)                                 | Send Message                 |
| [`cody_send_message_for_stream`](#cody_send_message_for_stream)           | Send Message for Stream      |
| [`cody_update_conversation`](#cody_update_conversation)                   | Update Conversation          |
| [`cody_update_folder`](#cody_update_folder)                               | Update Folder                |

***

## cody\_create\_conversation

Create Conversation

**Parameters:**

| Parameter      | Type      | Required | Default | Description                                                                                                                                                                       |
| -------------- | --------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `bot_id`       | string    | Yes      | —       | Bot Id                                                                                                                                                                            |
| `document_ids` | string\[] | No       | —       | Only documents that exist in the folders the bot has access to are allowed. You can give bot access to all folders if you wish to limit documents from your whole knowledge base. |
| `name`         | string    | Yes      | —       | The name value                                                                                                                                                                    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "bot_id": {
        "type": "string",
        "description": "Bot Id"
      },
      "document_ids": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Only documents that exist in the folders the bot has access to are allowed. You can give bot access to all folders if you wish to limit documents from your whole knowledge base."
      },
      "name": {
        "type": "string",
        "description": "The name value"
      }
    },
    "required": [
      "PCID",
      "bot_id",
      "name"
    ]
  }
  ```
</Expandable>

***

## cody\_create\_document

Create Document

**Parameters:**

| Parameter   | Type   | Required | Default | Description    |                                    |
| ----------- | ------ | -------- | ------- | -------------- | ---------------------------------- |
| `content`   | string | null     | Yes     | —              | Up to 768 KB of text or html only. |
| `folder_id` | string | Yes      | —       | Folder Id      |                                    |
| `name`      | string | Yes      | —       | The name value |                                    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "content": {
        "type": [
          "string",
          "null"
        ],
        "description": "Up to 768 KB of text or html only."
      },
      "folder_id": {
        "type": "string",
        "description": "Folder Id"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      }
    },
    "required": [
      "PCID",
      "content",
      "folder_id",
      "name"
    ]
  }
  ```
</Expandable>

***

## cody\_create\_document\_from\_file

Create Document from File

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                         |
| ----------- | ------ | -------- | ------- | ------------------------------------------------------------------- |
| `folder_id` | string | No       | —       | Folder Id                                                           |
| `key`       | string | Yes      | —       | The key you receive after uploading a file. See /uploads/signed-url |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "folder_id": {
        "type": "string",
        "description": "Folder Id"
      },
      "key": {
        "type": "string",
        "description": "The key you receive after uploading a file. See [/uploads/signed-url](/operation/operation-get-uploads-signed-url)"
      }
    },
    "required": [
      "PCID",
      "key"
    ]
  }
  ```
</Expandable>

***

## cody\_create\_document\_from\_webpage

Create Document from Webpage

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                |
| ----------- | ------ | -------- | ------- | ------------------------------------------ |
| `folder_id` | string | No       | —       | Folder Id                                  |
| `url`       | string | Yes      | —       | Valid and publicly accessible webpage URL. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "folder_id": {
        "type": "string",
        "description": "Folder Id"
      },
      "url": {
        "type": "string",
        "description": "Valid and publicly accessible webpage URL."
      }
    },
    "required": [
      "PCID",
      "url"
    ]
  }
  ```
</Expandable>

***

## cody\_create\_folder

Create Folder

**Parameters:**

| Parameter | Type   | Required | Default | Description    |
| --------- | ------ | -------- | ------- | -------------- |
| `name`    | string | Yes      | —       | The name value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      }
    },
    "required": [
      "PCID",
      "name"
    ]
  }
  ```
</Expandable>

***

## cody\_delete\_conversation

Delete Conversation

**Parameters:**

| Parameter | Type   | Required | Default | Description            |
| --------- | ------ | -------- | ------- | ---------------------- |
| `id`      | string | Yes      | —       | Id of the conversation |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "string",
        "description": "Id of the conversation"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## cody\_delete\_document

Delete Document

**Parameters:**

| Parameter | Type   | Required | Default | Description  |
| --------- | ------ | -------- | ------- | ------------ |
| `id`      | string | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "string",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## cody\_get\_conversation

Get Conversation

**Parameters:**

| Parameter  | Type   | Required | Default | Description                                        |
| ---------- | ------ | -------- | ------- | -------------------------------------------------- |
| `id`       | string | Yes      | —       | Id of the conversation                             |
| `includes` | string | No       | —       | Lists document ids the conversation is focused on. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "string",
        "description": "Id of the conversation"
      },
      "includes": {
        "type": "string",
        "description": "Lists document ids the conversation is focused on.",
        "enum": [
          "document_ids"
        ]
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## cody\_get\_document

Get Document

**Parameters:**

| Parameter | Type   | Required | Default | Description  |
| --------- | ------ | -------- | ------- | ------------ |
| `id`      | string | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "string",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## cody\_get\_folder

Get Folder

**Parameters:**

| Parameter | Type   | Required | Default | Description  |
| --------- | ------ | -------- | ------- | ------------ |
| `id`      | string | Yes      | —       | The id value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "string",
        "description": "The id value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## cody\_get\_message

Get Message

**Parameters:**

| Parameter  | Type   | Required | Default | Description                                          |
| ---------- | ------ | -------- | ------- | ---------------------------------------------------- |
| `id`       | string | Yes      | —       | The id value                                         |
| `includes` | string | No       | —       | Extra message attributes to include in the response. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "string",
        "description": "The id value"
      },
      "includes": {
        "type": "string",
        "description": "Extra message attributes to include in the response.",
        "enum": [
          "sources",
          "usage"
        ]
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## cody\_get\_uploads\_signed\_url

Get Upload URL

**Parameters:**

| Parameter      | Type   | Required | Default | Description                                                             |
| -------------- | ------ | -------- | ------- | ----------------------------------------------------------------------- |
| `content_type` | string | No       | —       | MIME content type of the file.                                          |
| `file_name`    | string | No       | —       | Original file name you want to upload, must contain the file extension. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "content_type": {
        "type": "string",
        "description": "MIME content type of the file."
      },
      "file_name": {
        "type": "string",
        "description": "Original file name you want to upload, must contain the file extension."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## cody\_list\_bots

List Bots

**Parameters:**

| Parameter | Type   | Required | Default | Description                                                                                  |
| --------- | ------ | -------- | ------- | -------------------------------------------------------------------------------------------- |
| `keyword` | string | No       | —       | Keyword to filter the list of bots to only those that at least partially match the bot name. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "keyword": {
        "type": "string",
        "description": "Keyword to filter the list of bots to only those that at least partially match the bot name."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## cody\_list\_conversations

List Conversations

**Parameters:**

| Parameter  | Type   | Required | Default | Description                                                                                                    |
| ---------- | ------ | -------- | ------- | -------------------------------------------------------------------------------------------------------------- |
| `bot_id`   | string | No       | —       | Id of the bot to filter the list of conversations to only those that are using the selected bot.               |
| `keyword`  | string | No       | —       | Keyword to filter the list of conversations to only those that at least partially match the conversation name. |
| `includes` | string | No       | —       | Lists document ids the conversation is focused on.                                                             |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "bot_id": {
        "type": "string",
        "description": "Id of the bot to filter the list of conversations to only those that are using the selected bot."
      },
      "keyword": {
        "type": "string",
        "description": "Keyword to filter the list of conversations to only those that at least partially match the conversation name."
      },
      "includes": {
        "type": "string",
        "description": "Lists document ids the conversation is focused on.",
        "enum": [
          "document_ids"
        ]
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## cody\_list\_documents

List Documents

**Parameters:**

| Parameter         | Type   | Required | Default | Description                                                                   |
| ----------------- | ------ | -------- | ------- | ----------------------------------------------------------------------------- |
| `folder_id`       | string | No       | —       | Id of the folder to list documents for.                                       |
| `conversation_id` | string | No       | —       | Id of the conversation to only list documents the conversation is focused on. |
| `keyword`         | string | No       | —       | Keyword to filter the list to documents that partially match the name.        |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "folder_id": {
        "type": "string",
        "description": "Id of the folder to list documents for."
      },
      "conversation_id": {
        "type": "string",
        "description": "Id of the conversation to only list documents the conversation is focused on."
      },
      "keyword": {
        "type": "string",
        "description": "Keyword to filter the list to documents that partially match the name."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## cody\_list\_folders

List Folders

**Parameters:**

| Parameter | Type   | Required | Default | Description                                                          |
| --------- | ------ | -------- | ------- | -------------------------------------------------------------------- |
| `keyword` | string | No       | —       | Keyword to filter the list to folders that partially match the name. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "keyword": {
        "type": "string",
        "description": "Keyword to filter the list to folders that partially match the name."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## cody\_list\_messages

List Messages

**Parameters:**

| Parameter         | Type   | Required | Default | Description                                                                      |
| ----------------- | ------ | -------- | ------- | -------------------------------------------------------------------------------- |
| `conversation_id` | string | No       | —       | Id of the conversation to filter the list of messages to only that conversation. |
| `includes`        | string | No       | —       | Extra message attributes to include in the response.                             |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "conversation_id": {
        "type": "string",
        "description": "Id of the conversation to filter the list of messages to only that conversation."
      },
      "includes": {
        "type": "string",
        "description": "Extra message attributes to include in the response.",
        "enum": [
          "sources",
          "usage"
        ]
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## cody\_send\_message

Send Message

**Parameters:**

| Parameter         | Type   | Required | Default | Description       |
| ----------------- | ------ | -------- | ------- | ----------------- |
| `content`         | string | Yes      | —       | The content value |
| `conversation_id` | string | Yes      | —       | Conversation Id   |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "content": {
        "type": "string",
        "description": "The content value"
      },
      "conversation_id": {
        "type": "string",
        "description": "Conversation Id"
      }
    },
    "required": [
      "PCID",
      "content",
      "conversation_id"
    ]
  }
  ```
</Expandable>

***

## cody\_send\_message\_for\_stream

Send Message for Stream

**Parameters:**

| Parameter         | Type    | Required | Default | Description                                                                                                                                          |
| ----------------- | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `content`         | string  | Yes      | —       | Content can be upto 2000 characters.                                                                                                                 |
| `conversation_id` | string  | Yes      | —       | Conversation Id                                                                                                                                      |
| `redirect`        | boolean | No       | —       | By default, your request will be redirected to another url that will be a SSE stream. You can disable that and get the url in a json object instead. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "content": {
        "type": "string",
        "description": "Content can be upto 2000 characters."
      },
      "conversation_id": {
        "type": "string",
        "description": "Conversation Id"
      },
      "redirect": {
        "type": "boolean",
        "description": "By default, your request will be redirected to another url that will be a SSE stream. You can disable that and get the url in a json object instead."
      }
    },
    "required": [
      "PCID",
      "content",
      "conversation_id"
    ]
  }
  ```
</Expandable>

***

## cody\_update\_conversation

Update Conversation

**Parameters:**

| Parameter      | Type      | Required | Default | Description                                                                                                                                                                       |
| -------------- | --------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`           | string    | Yes      | —       | Id of the conversation                                                                                                                                                            |
| `bot_id`       | string    | Yes      | —       | Bot Id                                                                                                                                                                            |
| `document_ids` | string\[] | No       | —       | Only documents that exist in the folders the bot has access to are allowed. You can give bot access to all folders if you wish to limit documents from your whole knowledge base. |
| `name`         | string    | Yes      | —       | The name value                                                                                                                                                                    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "string",
        "description": "Id of the conversation"
      },
      "bot_id": {
        "type": "string",
        "description": "Bot Id"
      },
      "document_ids": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Only documents that exist in the folders the bot has access to are allowed. You can give bot access to all folders if you wish to limit documents from your whole knowledge base."
      },
      "name": {
        "type": "string",
        "description": "The name value"
      }
    },
    "required": [
      "PCID",
      "id",
      "bot_id",
      "name"
    ]
  }
  ```
</Expandable>

***

## cody\_update\_folder

Update Folder

**Parameters:**

| Parameter | Type   | Required | Default | Description    |
| --------- | ------ | -------- | ------- | -------------- |
| `id`      | string | Yes      | —       | The id value   |
| `name`    | string | No       | —       | The name value |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "string",
        "description": "The id value"
      },
      "name": {
        "type": "string",
        "description": "The name value"
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>
