Skip to navigation

Create or continue a chat with an agent

Beta
Create or continue a chat with an agent

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Headers

EARLY-ACCESSstringOptional

Set to true to access beta operations via /api/v3.

Request

This endpoint expects an object.
inputlist of objectsRequired
Ordered list of user message blocks.
chatIdstring or nullOptional

Existing chat ID to append to; omit to start a new chat.

connectorsobjectOptional

Connector selection for this request. Omitting this field is equivalent to {“mode”: “none”}. Only available when “sources” are omitted.

editingTargetobjectOptional

Benchling object (e.g. entry) to edit via a new chat. Not allowed when “chatId” is specified.

sourceslist of objectsOptional
Data sources the agent may use.

Response

Task started
pollingUristringOptional
taskIdstringOptional

Errors

400
Bad Request Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error