Skip to main content
POST
/
api
/
v1
/
assistant
/
{assistant_id}
/
data_source
/
{datasource_id}
Add Datasource To Assistant
curl --request POST \
  --url 'https://api.example.com/api/v1/assistant/{assistant_id}/data_source/{datasource_id}?api_key='
{
  "message": "Data created successfully",
  "meta": {},
  "data": {
    "assistant_type": "simple",
    "llm_model": "gpt-4-0125-preview",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "description": "<string>",
    "attributes": {},
    "system_prompt": "",
    "voice": false,
    "custom_voice": false,
    "voice_languages": [
      "en-US",
      "de-DE",
      "mr-IN",
      "hi-IN"
    ],
    "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "show_images": false,
    "hide_ds": false,
    "webhook_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "has_human_agent": false,
    "use_tools": false,
    "conversation_flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

api_key
string
query
required

Your API key for authentication. You can generate it from the Settings page. Format: starts with in-.

Path Parameters

datasource_id
string<uuid>
required
assistant_id
string<uuid>
required

The UUID id of the assistant

Response

Successful Response

message
string | null
default:Data created successfully
meta
Meta · object
data
IAssistantRead · object