Skip to main content
Every cody.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Bots

list

bots.list Get all bots with optional keyword filtering Risk: read
Input Output

Conversations

create

conversations.create Create a new conversation with a specified bot and optional focus mode documents Risk: write
Input Output

delete

conversations.delete Delete a conversation by its ID Risk: write
Input Output

get

conversations.get Fetch a conversation by its ID from Cody AI Risk: read
Input Output

list

conversations.list Get all conversations with optional filtering by bot, keyword, or includes Risk: read
Input Output

update

conversations.update Update a conversation by its ID including name, bot_id, and document_ids Risk: write
Input Output

Documents

create

documents.create Create a new document with text or HTML content in Cody AI Risk: write
Input Output

createFromFile

documents.createFromFile Create a document by uploading a file (up to 100 MB) Risk: write
Input Output

createFromWebpage

documents.createFromWebpage Create a document from a publicly accessible webpage URL Risk: write
Input Output

delete

documents.delete Delete a document by id Risk: write
Input Output

get

documents.get Retrieve a specific document by its identifier from Cody AI Risk: read
Input Output

list

documents.list Retrieve all documents from Cody AI account with optional filtering Risk: read
Input Output

Folders

create

folders.create Create a new folder in Cody AI for organizing content Risk: write
Input Output

get

folders.get Retrieve a specific folder by its identifier Risk: read
Input Output

list

folders.list Retrieve all folders with optional keyword filtering Risk: read
Input Output

update

folders.update Update a folder by its ID Risk: write
Input Output

Messages

get

messages.get Fetch a specific message by its ID from Cody AI Risk: read
Input Output

list

messages.list Retrieve a paginated list of messages from Cody, optionally filtered by conversation Risk: read
Input Output

send

messages.send Send a message to Cody AI and receive an AI-generated response Risk: write
Input Output

sendForStream

messages.sendForStream Send a message to Cody AI and receive a Server-Sent Events (SSE) stream URL for the AI response Risk: write
Input Output

Uploads

getSignedUrl

uploads.getSignedUrl Get an AWS S3 signed upload URL for file uploads Risk: read
Input Output