> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-opensw-1774858546-a100bff.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Quip integration

> Integrate with the Quip document loader using LangChain Python.

> [Quip](https://quip.com) is a collaborative productivity software suite for mobile and Web. It allows groups of people to create and edit documents and spreadsheets as a group, typically for business purposes.

A loader for `Quip` docs.

Refer to the [Quip API authentication documentation](https://quip.com/dev/automation/documentation/current#section/Authentication/Get-Access-to-Quip's-APIs) for how to get a personal access token.

Specify a list `folder_ids` and/or `thread_ids` to load in the corresponding docs into Document objects, if both are specified, loader will get all `thread_ids` belong to this folder based on `folder_ids`, combine with passed `thread_ids`, the union of both sets will be returned.

* How to know folder\_id ?
  go to quip folder, right click folder and copy link, extract suffix from link as folder\_id. Hint:  `https://example.quip.com/<folder_id>`
* How to know thread\_id ?
  thread\_id is the document id. Go to quip doc, right click doc and copy link, extract suffix from link as thread\_id. Hint: `https://exmaple.quip.com/<thread_id>`

You can also set `include_all_folders` as `True` will fetch group\_folder\_ids and
You can also specify a boolean `include_attachments` to include attachments, this is set to False by default, if set to True all attachments will be downloaded and QuipLoader will extract the text from the attachments and add it to the Document object. Currently supported attachment types are: `PDF`, `PNG`, `JPEG/JPG`, `SVG`, `Word` and `Excel`. Also you can specify a boolean `include_comments` to include comments in document, this is set to False by default, if set to True all comments in document will be fetched and QuipLoader will add them to Document object.

Before using QuipLoader make sure you have the latest version of the quip-api package installed:

```python theme={null}
pip install -qU  quip-api
```

## Examples

### Personal access token

```python theme={null}
from langchain_community.document_loaders.quip import QuipLoader

loader = QuipLoader(
    api_url="https://platform.quip.com", access_token="change_me", request_timeout=60
)
documents = loader.load(
    folder_ids={"123", "456"},
    thread_ids={"abc", "efg"},
    include_attachments=False,
    include_comments=False,
)
```

***

<div className="source-links">
  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/document_loaders/quip.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>

  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>
</div>
