> This is a page from the ElevenLabs documentation. For a complete page index, fetch https://elevenlabs.io/docs/llms.txt. For the full documentation in a single file, fetch https://elevenlabs.io/docs/llms-full.txt. # Get knowledge base summaries GET https://api.elevenlabs.io/v1/convai/knowledge-base/summaries Gets multiple knowledge base document summaries by their IDs. Reference: https://elevenlabs.io/docs/api-reference/knowledge-base/get-summaries ## Servers - `https://api.elevenlabs.io` (Production, default) - `https://api.us.elevenlabs.io` (Production US) - `https://api.eu.residency.elevenlabs.io` (Production EU) - `https://api.in.residency.elevenlabs.io` (Production India) - `https://api.sg.residency.elevenlabs.io` (Production Singapore) ## Request ### Query parameters - `document_ids` (list of string, required) — The ids of knowledge base documents. ## Response ### 200 Successful Response - `map from string to V1ConvaiKnowledgeBaseSummariesGetResponsesContentApplicationJsonSchema` ## Errors ### 422 Unprocessable Entity Error Validation Error - `detail` (list of ValidationError, optional) ## Types ### V1ConvaiKnowledgeBaseSummariesGetResponsesContentApplicationJsonSchema - `status`: `success` (KnowledgeBaseSummaryBatchSuccessfulResponseModel) - `data` (V1ConvaiKnowledgeBaseSummariesGetResponsesContentApplicationJsonSchemaDiscriminatorMappingSuccessData, required) - `status`: `failure` (BatchFailureResponseModel) - `error_code` (integer, required) - `error_message` (string, required) - `error_status` (string, required) ### ValidationError - `loc` (list of ValidationErrorLocItems, required) - `msg` (string, required) - `type` (string, required) ### V1ConvaiKnowledgeBaseSummariesGetResponsesContentApplicationJsonSchemaDiscriminatorMappingSuccessData - `type`: `file` (GetKnowledgeBaseSummaryFileResponseModel) - `access_info` (ResourceAccessInfo, required) - `id` (string, required) - `metadata` (KnowledgeBaseDocumentMetadataResponseModel, required) - `name` (string, required) - `supported_usages` (list of enum, required) - Allowed values: `prompt`, `auto` - `dependent_agents` (list of V1ConvaiKnowledgeBaseSummariesGetResponsesContentApplicationJsonSchemaDiscriminatorMappingSuccessDataDiscriminatorMappingFileDependentAgentsItems, required, deprecated) — This field is deprecated and will be removed in the future, use the separate endpoint to get dependent agents instead. - `auto_sync_info` (AutoSyncInfo, optional, nullable) - `external_sync_info` (ExternalFileSyncInfo, optional, nullable) — Tracks the link back to the original file in an external source. - `folder_parent_id` (string, optional, nullable) — The ID of the parent folder, or null if the document is at the root level. - `folder_path` (list of KnowledgeBaseFolderPathSegmentSummaryResponseModel, optional) — The folder path segments leading to this entity, from root to parent folder. - `is_frozen` (boolean, optional, default: false) - `refresh_status` (FileRefreshStatus, optional, nullable) — In-flight/last refresh state for an externally-synced KB file. - `type`: `folder` (GetKnowledgeBaseSummaryFolderResponseModel) - `access_info` (ResourceAccessInfo, required) - `children_count` (integer, required) - `document_count` (integer, required) — Number of non-folder documents anywhere in this folder's subtree (recursive). Counting stops past 1000; - `id` (string, required) - `metadata` (KnowledgeBaseDocumentMetadataResponseModel, required) - `name` (string, required) - `supported_usages` (list of enum, required) - Allowed values: `prompt`, `auto` - `dependent_agents` (list of V1ConvaiKnowledgeBaseSummariesGetResponsesContentApplicationJsonSchemaDiscriminatorMappingSuccessDataDiscriminatorMappingFolderDependentAgentsItems, required, deprecated) — This field is deprecated and will be removed in the future, use the separate endpoint to get dependent agents instead. - `auto_sync_info` (AutoSyncInfo, optional, nullable) - `external_sync_info` (ExternalFolderSyncInfo, optional, nullable) — Metadata for a KB folder that mirrors an external source folder. - `folder_parent_id` (string, optional, nullable) — The ID of the parent folder, or null if the document is at the root level. - `folder_path` (list of KnowledgeBaseFolderPathSegmentSummaryResponseModel, optional) — The folder path segments leading to this entity, from root to parent folder. - `is_frozen` (boolean, optional, default: false) - `type`: `text` (GetKnowledgeBaseSummaryTextResponseModel) - `access_info` (ResourceAccessInfo, required) - `id` (string, required) - `metadata` (KnowledgeBaseDocumentMetadataResponseModel, required) - `name` (string, required) - `supported_usages` (list of enum, required) - Allowed values: `prompt`, `auto` - `dependent_agents` (list of V1ConvaiKnowledgeBaseSummariesGetResponsesContentApplicationJsonSchemaDiscriminatorMappingSuccessDataDiscriminatorMappingTextDependentAgentsItems, required, deprecated) — This field is deprecated and will be removed in the future, use the separate endpoint to get dependent agents instead. - `folder_parent_id` (string, optional, nullable) — The ID of the parent folder, or null if the document is at the root level. - `folder_path` (list of KnowledgeBaseFolderPathSegmentSummaryResponseModel, optional) — The folder path segments leading to this entity, from root to parent folder. - `type`: `url` (GetKnowledgeBaseSummaryURLResponseModel) - `access_info` (ResourceAccessInfo, required) - `id` (string, required) - `metadata` (KnowledgeBaseDocumentMetadataResponseModel, required) - `name` (string, required) - `supported_usages` (list of enum, required) - Allowed values: `prompt`, `auto` - `url` (string, required) - `dependent_agents` (list of V1ConvaiKnowledgeBaseSummariesGetResponsesContentApplicationJsonSchemaDiscriminatorMappingSuccessDataDiscriminatorMappingUrlDependentAgentsItems, required, deprecated) — This field is deprecated and will be removed in the future, use the separate endpoint to get dependent agents instead. - `auto_sync_info` (AutoSyncInfo, optional, nullable) - `folder_parent_id` (string, optional, nullable) — The ID of the parent folder, or null if the document is at the root level. - `folder_path` (list of KnowledgeBaseFolderPathSegmentSummaryResponseModel, optional) — The folder path segments leading to this entity, from root to parent folder. ### ValidationErrorLocItems ### ResourceAccessInfo - `is_creator` (boolean, required) — Whether the user making the request is the creator of the agent - `creator_name` (string, required) — Name of the agent's creator - `creator_email` (string, required) — Email of the agent's creator - `role` (enum, required) — The role of the user making the request - Allowed values: `admin`, `editor`, `commenter`, `viewer` - `anonymous_access_level_override` (enum, optional, nullable) — The access level for anonymous users. If None, the resource is not shared publicly. - Allowed values: `admin`, `editor`, `commenter`, `viewer` - `access_source` (enum, optional, nullable) — Why the requesting user has access to this resource. 'creator' = caller is the owner. 'explicit' = caller (or one of their workspace groups) is listed in role_to_group_ids beyond the workspace-wide everyone group. 'workspace_default' = the workspace-wide everyone group is listed in role_to_group_ids (every non-anon workspace member, including admins, sees this resource). 'workspace_admin' = caller is a workspace admin and the admin seat is the *only* path to access; reserved for docs nobody else can see. Lets the UI disclose why an admin-bypass viewer sees a doc that wasn't explicitly shared with them. - Allowed values: `creator`, `explicit`, `workspace_admin`, `workspace_default` ### KnowledgeBaseDocumentMetadataResponseModel - `created_at_unix_secs` (integer, required) - `last_updated_at_unix_secs` (integer, required) - `size_bytes` (integer, required) ### V1ConvaiKnowledgeBaseSummariesGetResponsesContentApplicationJsonSchemaDiscriminatorMappingSuccessDataDiscriminatorMappingFileDependentAgentsItems - `type`: `available` (DependentAvailableAgentIdentifier) - `access_level` (enum, required) - Allowed values: `admin`, `editor`, `commenter`, `viewer` - `created_at_unix_secs` (integer, required) - `id` (string, required) - `name` (string, required) - `referenced_resource_ids` (list of string, optional) — If the agent is a transitive dependent, contains IDs of the resources that the agent depends on directly. - `type`: `unknown` (DependentUnknownAgentIdentifier) - `id` (string, required) - `referenced_resource_ids` (list of string, optional) — If the agent is a transitive dependent, contains IDs of the resources that the agent depends on directly. ### AutoSyncInfo - `minimum_frequency_days` (integer, optional, default: 7) — Minimum frequency (in days) at which the document is refreshed. The actual interval may be shorter, never longer. - `auto_remove` (boolean, optional, default: false) — Whether to remove the document if the URL becomes unavailable - `auto_discover` (boolean, optional, default: false) — Whether new pages discovered during a refresh are crawled and added. Set from the owning crawl job at creation; the crawl job remains the source of truth for the discovery logic. - `consec_failures` (integer, optional, default: 0) — Number of consecutive sync failures - `next_refresh_by` (integer, optional, nullable) — Unix timestamp for the next scheduled sync or None (in case of folders) ### ExternalFileSyncInfo Tracks the link back to the original file in an external source. - `type` (enum, required) — Provider identifier - Allowed values: `google_drive` - `source_entity_id` (string, required) — Entity ID in the external system - `integration_connection_id` (string, required) — Integration connection instance ID - `source_parent_entity_id` (string, required) — Folder ID in the external system this file was synced from - `source_mime_type` (string, required) — Original MIME type in the external system - `source_modified_time` (string, required) — Last modified time from the external system - `root_folder_id` (string, optional, nullable) — KB folder ID of the sync root, used to query all entities under a sync tree ### KnowledgeBaseFolderPathSegmentSummaryResponseModel - `id` (string, required) ### FileRefreshStatus In-flight/last refresh state for an externally-synced KB file. - `status` (enum, optional, default: queued) - Allowed values: `queued`, `processing`, `succeeded`, `failed`, `skipped`, `cancelled` - `enqueued_at` (integer, optional, nullable) - `started_at` (integer, optional, nullable) - `completed_at` (integer, optional, nullable) - `last_synced_at` (integer, optional, nullable) - `error_message` (string, optional, nullable) ### V1ConvaiKnowledgeBaseSummariesGetResponsesContentApplicationJsonSchemaDiscriminatorMappingSuccessDataDiscriminatorMappingFolderDependentAgentsItems - `type`: `available` (DependentAvailableAgentIdentifier) - `access_level` (enum, required) - Allowed values: `admin`, `editor`, `commenter`, `viewer` - `created_at_unix_secs` (integer, required) - `id` (string, required) - `name` (string, required) - `referenced_resource_ids` (list of string, optional) — If the agent is a transitive dependent, contains IDs of the resources that the agent depends on directly. - `type`: `unknown` (DependentUnknownAgentIdentifier) - `id` (string, required) - `referenced_resource_ids` (list of string, optional) — If the agent is a transitive dependent, contains IDs of the resources that the agent depends on directly. ### ExternalFolderSyncInfo Metadata for a KB folder that mirrors an external source folder. - `type` (enum, required) — Provider identifier - Allowed values: `google_drive` - `source_entity_id` (string, required) — Entity ID in the external system - `integration_connection_id` (string, required) — Integration connection instance ID - `root_folder_id` (string, optional, nullable) — KB folder ID of the sync root. None means this folder is the root. - `sync_cursor` (string, optional, nullable) — Opaque cursor for incremental sync, interpreted by the provider - `last_sync_at` (integer, optional, nullable) — Unix timestamp of last completed sync ### V1ConvaiKnowledgeBaseSummariesGetResponsesContentApplicationJsonSchemaDiscriminatorMappingSuccessDataDiscriminatorMappingTextDependentAgentsItems - `type`: `available` (DependentAvailableAgentIdentifier) - `access_level` (enum, required) - Allowed values: `admin`, `editor`, `commenter`, `viewer` - `created_at_unix_secs` (integer, required) - `id` (string, required) - `name` (string, required) - `referenced_resource_ids` (list of string, optional) — If the agent is a transitive dependent, contains IDs of the resources that the agent depends on directly. - `type`: `unknown` (DependentUnknownAgentIdentifier) - `id` (string, required) - `referenced_resource_ids` (list of string, optional) — If the agent is a transitive dependent, contains IDs of the resources that the agent depends on directly. ### V1ConvaiKnowledgeBaseSummariesGetResponsesContentApplicationJsonSchemaDiscriminatorMappingSuccessDataDiscriminatorMappingUrlDependentAgentsItems - `type`: `available` (DependentAvailableAgentIdentifier) - `access_level` (enum, required) - Allowed values: `admin`, `editor`, `commenter`, `viewer` - `created_at_unix_secs` (integer, required) - `id` (string, required) - `name` (string, required) - `referenced_resource_ids` (list of string, optional) — If the agent is a transitive dependent, contains IDs of the resources that the agent depends on directly. - `type`: `unknown` (DependentUnknownAgentIdentifier) - `id` (string, required) - `referenced_resource_ids` (list of string, optional) — If the agent is a transitive dependent, contains IDs of the resources that the agent depends on directly. ## Examples **Response** ```json {} ``` **SDK Code** ```python import requests url = "https://api.elevenlabs.io/v1/convai/knowledge-base/summaries" querystring = {"document_ids":"[\"21m00Tcm4TlvDq8ikWAM\",\"31n11Udm5UmwEr9jkXBN\"]"} response = requests.get(url, params=querystring) print(response.json()) ``` ```javascript const url = 'https://api.elevenlabs.io/v1/convai/knowledge-base/summaries?document_ids=%5B%2221m00Tcm4TlvDq8ikWAM%22%2C%2231n11Udm5UmwEr9jkXBN%22%5D'; const options = {method: 'GET'}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.elevenlabs.io/v1/convai/knowledge-base/summaries?document_ids=%5B%2221m00Tcm4TlvDq8ikWAM%22%2C%2231n11Udm5UmwEr9jkXBN%22%5D" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://api.elevenlabs.io/v1/convai/knowledge-base/summaries?document_ids=%5B%2221m00Tcm4TlvDq8ikWAM%22%2C%2231n11Udm5UmwEr9jkXBN%22%5D") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.elevenlabs.io/v1/convai/knowledge-base/summaries?document_ids=%5B%2221m00Tcm4TlvDq8ikWAM%22%2C%2231n11Udm5UmwEr9jkXBN%22%5D") .asString(); ``` ```php request('GET', 'https://api.elevenlabs.io/v1/convai/knowledge-base/summaries?document_ids=%5B%2221m00Tcm4TlvDq8ikWAM%22%2C%2231n11Udm5UmwEr9jkXBN%22%5D'); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.elevenlabs.io/v1/convai/knowledge-base/summaries?document_ids=%5B%2221m00Tcm4TlvDq8ikWAM%22%2C%2231n11Udm5UmwEr9jkXBN%22%5D"); var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let request = NSMutableURLRequest(url: NSURL(string: "https://api.elevenlabs.io/v1/convai/knowledge-base/summaries?document_ids=%5B%2221m00Tcm4TlvDq8ikWAM%22%2C%2231n11Udm5UmwEr9jkXBN%22%5D")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` > ElevenLabs provides APIs and SDKs for text to speech, voice cloning, speech to text, sound effects, voice isolator, voice changer, and conversational AI agents. Build voice-enabled applications with lifelike audio generation.