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

# Index a URL

> Add a domain/URL source to a knowledge base

<ParamField path="knowledge_base_id" type="string" required>
  Knowledge base ID.
</ParamField>

<ParamField body="url" type="string" required>
  URL to crawl and index.
</ParamField>

## SDK

<CodeGroup>
  ```typescript TypeScript theme={null}
  await client.knowledgeBases.addUrl(id, "https://docs.example.com");
  ```

  ```python Python theme={null}
  await client.knowledge_bases.add_url(knowledge_base_id, "https://docs.example.com")
  ```
</CodeGroup>
