Welcome to the documentation for the Automation API. This documentation describes the functionality available only in the current versions of API methods. You can also review the documentation for all API methods for information about both current and deprecated API methods.
The Quip Automation API provides read/write access to Quip, enabling you to automate processes and integrate Quip with other products you or your company uses.
The Automation API is REST-based. Responses are JSON, and errors are reported via standard HTTP codes in addition to JSON-formatted error information in the HTTP response bodies of relevant requests. We use OAuth 2 for authentication and authorization.
Quip integrates documents and messages into a single unit that we call a thread. Most of the operations in the Quip Automation API operate on threads. Threads can simply be a list of messages, i.e., a chat thread, or they may have a document in addition to a list of messages. Each thread has a permanent 11 character id and a similar 12 character URL suffix that can be expired by the user. Apps receiving URLs should convert them to permanent ids using Get Thread before being used.
Quip documents are broken down into smaller units we call sections. Every paragraph in a document is a separate section, as is every item in a list or cell in a table. The Quip Automation API outputs documents as HTML for convenience, and the elements in the HTML have id attributes specifying their internal section ID. When you want to perform advanced transforms on a document, like modifying a checklist, you will need to use the section IDs. The official Python library contains a number of examples of parsing the HTML to get section IDs and using that data for edit operations.
Quip folders are not traditional file system folders. Quip folders are more like tags, i.e., a thread can be in multiple folders. When a thread is in a folder, it inherits the permissions of the folder, e.g., if you add a thread to a folder shared with three people, those three people will have access to the thread. Each user has special desktop and archive folders that cannot be deleted, shared, or renamed.
A Quip thread can be shared with a list of folders and individual users. A user can access the thread if they have access to any of the folders or if they are individually added to the thread.
We refer to the people in threads and folders as members throughout the API.
You can access Quip's APIs if your company uses any of these products:
Note: These Admin APIs are available only as add-on purchases: Events API and Governance API.
If you're a Virtual Private Cloud (VPC) customer, you can call Quip's APIs using URIs in which you replace: quip.com with customername.onquip.com or quip-customername.com.
For example, if your company is Acme and the URI is https://platform.quip.com/1/threads/edit-document, as a VPC customer, use one of these URIs instead depending on your company's assigned VPC URL:
Quip's APIs have rate limits to help ensure fair and reliable access to APIs for all of our customers.
When you call our APIs via integrations you build (including integrations using Process Builder and Flow), those calls are subject to our rate limits.
The Automation API is rate limited by number of requests per minute per user - with defaults of:
API responses include a few custom headers to help developers implement backoffs in their code. These headers are:
X-Ratelimit-Limit
: The number of requests per minute/hour the user can makeX-Ratelimit-Remaining
: The number of requests remaining this user can
make within the minute/hour. This number changes with each requestX-Ratelimit-Reset
: The UTC timestamp for when the rate limit resetsQuip's APIs are also subject to a per-company rate limit with a default of 600 requests per minute. The API responses include these custom headers to help developers implement backoffs in their code:
X-Company-RateLimit-Limit
: The number of requests per minute that your company can makeX-Company-RateLimit-Remaining
: The number of requests remaining for your company within the minuteX-Company-RateLimit-Reset
: The UTC timestamp for when the rate limit resetsX-Company-Retry-After
: The number of seconds after which your company can make API calls againWe recommend that you use the Automation API to automate user-level processes such as document copying and editing and to integrate Quip with your other systems. Use the Admin API for admin-level site-wide or security workflows such as activity monitoring or quarantining documents.
Quip's APIs integrate with Salesforce, Slack, Google Workspace, Github, Jira, Stripe, Dropbox, Box, Zendesk and more. You can connect nearly any application to Quip using our APIs, including your company's proprietary applications or systems. Browse our sample apps or download prebuilt apps on Salesforce AppExchange.
In the Quip Admin Console, create a placeholder user (not associated with an employee) or bot user for your integrations. That way, when you deprovision an employee's user account, the integration isn't affected. Additionally, this allows for a more clear separation of duties between an employee and an integration user.
Currently, there's no way for the API keys to change automatically. You can only create API keys manually.
All of your company's Admin and Automation API calls are counted in your rate limits, including calls you make via Process Builder and Flow. There are per-user and per-company rate limits for the Admin and Automation APIs.
If you need to call APIs more frequently than allowed by the Admin and Automation API rate limits, contact Quip Customer Support for help.
The responses in Quip's Admin and Automation APIs contain headers that provide information about your API usage.
Use the Events API to get information about Quip engagement. You can then feed that information into your engagement monitoring systems.
Consult our trusted partner for eDiscovery and eArchiving solutions at onna.com/quip.
You can export Quip documents or spreadsheets to PDF using the Create Export PDF Request API method.
Use the Get Recent Messages API method to retrieve the 25 most-recent comments in a Quip document. You can then export the response of your API call to your other systems.
The Disable User v1.1 or v2.0 API method allows you to deactivate a user account.
Read the release notes to find out about new Quip developer features. Subscribe to the Salesforce Developer newsletter to get developer news, tips, and best practices. You can also follow these social media channels: SalesforceDevs Twitter feed, SalesforceDevs LinkedIn page, SalesforceDevs Facebook page.
Ask other Quip developers on Salesforce Stack Exchange.
To improve the quality and performance of API methods, Quip periodically releases new versions and deprecates older versions. Examples of changes that sometimes require creating new versions are:
Versions are identified in the path for each API method. Examples:
We inform you in a release note at least one year before support for an API method ends. In addition, we update the reference documentation to identify the current and deprecated versions of an API method. Our REST APIs have two versions of reference documentation:
Update your integrations so that they point to the current version instead of a deprecated version before support for an API method ends. Example scenario:
As needed, for your integrations, you can download the OpenAPI Specification (OAS) files for current and all versions of each REST API.
Authentication gives you access to the Quip Admin and Automation APIs. You can build integrations that call our APIs. To access Quip's APIs, first create an API key. Then get an access token using the API key as described in Get Access to Quip's APIs. You can create additional API keys for your other integrations with the applicable scopes needed for the features in a specific integration. You can also get a personal access token to test our APIs.
Use an OAuth2-compatible mechanism for authentication. Quip's approach follows RFC 6749.
Our API endpoints accept authentication tokens as described in
RFC 6750.
In most cases, this means that when you call our API endpoints, you
can pass in an Authorization
header with content
"Bearer {{token}}". {{token}} is the value of an access token obtained
by following the steps described in
Get Access to Quip's APIs.
The only endpoints that don't require an Authorization header are these
Authentication endpoints:
Token Endpoint,
Authorization Endpoint,
Revoke a Token.
This table lists the URLs for Quip's Authentication endpoints that you can call when you build your integrations. In addition, this table describes available scopes for the Automation API. See the Domain Authentication section and the reference documentation linked to in this table for information about using the authentication endpoints.
Security Scheme Type | OAuth2 |
---|---|
authorizationCode OAuth Flow | Authorization URL: https://platform.quip.com/1/oauth/login Token URL: https://platform.quip.com/1/oauth/access_token Refresh URL: https://platform.quip.com/1/oauth/access_token Scopes:
|
Note: Before building applications, you must select your required scopes when you create the API keys. And ensure that your application users have the correct access to the content they'll use in your applications. For example, if users need to edit a Quip document using your application, they must have edit access on that document.
Here are some recommended practices to follow to protect your Quip data and improve your user experience:
USER_MANAGE
scope in the API key for that application.You can generate an access token that provides API access to your own, personal Quip account. This is useful for testing the API, automating tasks, or integrating with other services you use individually.
To generate a personal access token, visit this page: https://quip.com/dev/token
Whenever you generate a new token, all previous tokens are automatically invalidated.
Once you have a token, the easiest way to use it is via the Python Client Library, which makes most tasks a single line of code. All of the documentation below contains copy-and-paste Python code snippets to make it easier to get started.
To access to the Quip Admin and Automation APIs:
Note: These Admin APIs are available only as add-on purchases: Events API and Governance API.
To get access to the Quip Admin and Automation APIs, follow the process summarized in the diagram below. The process is described in detail in the Generate an OAuth Token section.
1. Create an API Key
a. In the Quip Admin Console create an API key and select the scopes that you need for the features in your integration.
b. Copy the client ID and client secret so you can use them to get an access token.
Note:
2. Get an Access Token
Use your preferred tool such as Postman or SoapUI to get an access token. This example uses Postman:
a. Create a request in Postman.
b. Click the Authorization tab.
c. From the Type dropdown list, select Oauth 2.0.
d. In the Configure New Token section, fill in the fields as described here:
https://platform.quip.com
https://platform.quip.com/1/oauth/login
If you're a
Virtual Private Cloud
(VPC) customer, use one of these URLs instead, depending on your
company's assigned VPC URL:https://platform.<customername>.onquip.com/1/oauth/login
orhttps://platform.quip-<customername>.com/1/oauth/login
https://platform.quip.com/1/oauth/access_token
If you're a VPC customer, use one of these URLs instead, depending
on your company's assigned VPC URL:https://platform.<customername>.onquip.com/1/oauth/access_token
orhttps://platform.quip-<customername>.com/1/oauth/access_token
e. Click Get New Access Token.
3. Get authorization from Quip
When prompted, use your admin email address and password to log into your Quip site and get an authorization token. This is required only the first time you get an access token.
4. Save the Token
In Postman, the token details are displayed. Click Use Token to save the provided token in your request and use it in your next API call.
Congratulations! You can now make Admin and Automation API calls. Follow these same instructions to get additional access tokens using API keys with the scopes required for the integrations you're building.
Note: Tokens expire every 30 days. Use the Token Endpoint to refresh your tokens before the 30-day expiration. That way your users have uninterrupted access to your integrations.
Now that you have access to our APIs, you can start building your integrations with Quip:
Questions? Ask the Quip developer community on Salesforce Stack Exchange.
Domain authentication is only available for Quip Enterprise administrators. To enable this for your company, contact us.
Domain authentication enables seamless integration for internal or pre-approved services at your company. Domain authentication is simply OAuth 2.0, but instead of end users individually approving access to each application, domain administrators pre-approve applications, and end users do not see additional authorization prompts during the OAuth authorization process.
To enable domain authentication for a third-party application:
/oauth/login
and the OAuth 2.0 token endpoint /oauth/access_token
.After you have obtained a verification code or refresh token, you can exchange it for an access token via a POST request to this endpoint.
grant_type required | string Enum: "refresh_token" "authorization_code" Either |
client_id required | string The client ID you created for your application. |
client_secret required | string The client secret you created for your application. |
refresh_token | string Required if |
code | string Required if |
redirect_uri | string Required if |
{- "access_token": "string",
- "expires_in": 0,
- "refresh_token": "string",
- "scope": "string",
- "token_type": "Bearer"
}
Revoke an access_token
or a refresh_token
.
client_id required | string The client ID you created for your application. |
client_secret required | string The client secret you created for your application. |
token required | string The token to revoke. |
{ }
This document provides sample calls for some common use cases for the Edit
a Document API method. In the examples below, we use the HTML format for
the document content. You can mix and match the examples based on your
business needs. See the Edit a Document
reference documentation for more details including a sample response and
information about the section_id
, location
, data-live-app-id
, and
document_range
fields.
Note: If you're a Virtual Private Cloud (VPC) customer, see the Access Rules for more information about URIs to use for your API calls.
In this example, the section_id
belongs to an item at the end (location
2) of a bulleted or numbered list or checklist.
POST https://platform.quip.com/1/threads/edit-document
Content-Type: application/json
Authorization: Bearer ABCSampleAccessToken
{
"thread_id": "vTYlBwL8UT85",
"format": "html",
"content": "<li>Expert recommendations</li>",
"section_id": "HcDACAX1iOK",
"location": 2
}
Here's how the list looks before and after the API call:
Before the call | After the call |
---|---|
|
|
In this example, the section_id
belongs to a paragraph before (location
3) which another paragraph is added.
POST https://platform.quip.com/1/threads/edit-document
Content-Type: application/json
Authorization: Bearer ABCSampleAccessToken
{
"thread_id": "XerkArZUfekP",
"format": "html",
"content": "<p>Here's the account information for Acme Company:</p>",
"section_id": "HcDACAwByNQ",
"location": 3
}
Here's how the paragraph looks before and after the API call:
Before the call | After the call |
---|---|
This customer is on the west coast. |
Here's the account information for Acme Company: This customer is on the west coast. |
In this example, the section_id
belongs to a paragraph after (location
2) which multiple paragraphs are added.
POST https://platform.quip.com/1/threads/edit-document
Content-Type: application/json
Authorization: Bearer ABCSampleAccessToken
{
"thread_id": "vTYlBwL8UT85",
"format": "html",
"content": "<p>Customers like Acme want more options.</p><p>They like personalized service.</p>",
"section_id": "HcDACAJZEQf",
"location": 2
}
Here's how the content looks before and after the API call:
Before the call | After the call |
---|---|
Here's the account information for Acme Company: This customer is on the west coast. |
Here's the account information for Acme Company: This customer is on the west coast. Customers like Acme want more options. They like personalized service. |
In this example, the section_id
belongs to the paragraph that's
edited/replaced (location 4). You can edit/replace a document range
instead, by passing 8 into the location field. See the Edit a
Document reference documentation for more
information about the document_range
field.
POST https://platform.quip.com/1/threads/edit-document
Content-Type: application/json
Authorization: Bearer ABCSampleAccessToken
{
"thread_id": "vTYlBwL8UT85",
"format": "html",
"content": "<p>Customers like Acme want more choices. They want a buffet experience.</p>",
"section_id": "HcDABAJZEQf",
"location": 4
}
Here's how the paragraph looks before and after the API call:
Before the call | After the call |
---|---|
Customers like Acme want more options. |
Customers like Acme want more choices. They want a buffet experience. |
In this example, the document_range
belongs to the content (heading title
Topic 2 - Prerequisites and content under that heading and its
subheadings) that's deleted (location 9).
POST https://platform.quip.com/1/threads/edit-document
Content-Type: application/json
Authorization: Bearer ABCSampleAccessToken
{
"thread_id": "vTYlBwL8UT85",
"location": 9,
"document_range": "Topic 2 - Prerequisites"
}
Here's how the content looks before and after the API call:
Before the call | After the call |
---|---|
Topic 1 - IntroductionContent under Topic 1. Topic 2 - PrerequisitesContent under Topic 2. Subtopic 2.1Content under Subtopic 2.1. Subtopic 2.1.1Content under Subtopic 2.1.1. Topic 3 - Acceptance CriteriaContent under Topic 3. |
Topic 1 - IntroductionContent under Topic 1. Topic 3 - Acceptance CriteriaContent under Topic 3. |
In this example, the document_range
belongs to the content (heading title
Topic 4 - Important Notes and content under that heading and its
subheadings) that's edited/replaced (location 8). You can add content
before or after a document range by passing 7 (before) or 6 (after) into
the location
field. See the Edit a
Document reference documentation for
more information about the document_range
field.
POST https://platform.quip.com/1/threads/edit-document
Content-Type: application/json
Authorization: Bearer ABCSampleAccessToken
{
"thread_id": "vTYlBwL8UT85",
"content": "<h2>Topic 4 - Considerations</h2><p>Our beta launch requires training users who speak multiple languages.</p>",
"location": 8,
"document_range": "Topic 4 - Important Notes"
}
Here's how the content looks before and after the API call:
Before the call | After the call |
---|---|
Topic 4 - Important NotesOur beta launch requires user training.
|
Topic 4 - ConsiderationsOur beta launch requires training users who speak multiple languages. |
In this example, the section_id
belongs to the row after (location 2)
which another row is added.
POST https://platform.quip.com/1/threads/edit-document
Content-Type: application/json
Authorization: Bearer ABCSampleAccessToken
{
"thread_id": "vTYlBwL8UT85",
"format": "html",
"content": "<tr><td>7</td><td>4,581</td><td>570</td></tr>",
"section_id": "temp:C:dabc38cb2d6f789b426a14f31946",
"location": 2
}
Here's how the spreadsheet looks before and after the API call:
Before the call | After the call | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
In this example, the section_id
belongs to the cell that's edited/replaced
(location 4).
POST https://platform.quip.com/1/threads/edit-document
Content-Type: application/json
Authorization: Bearer ABCSampleAccessToken
{
"thread_id": "vTYlBwL8UT85",
"format": "html",
"content": "98",
"section_id": "temp:s:HcDACAFj25V_temp:C:HcD5aa735cfd0dd58e3eee0e5ef0",
"location": 4
}
The table below shows how the spreadsheet looks before and after the API call. In this example, the first cell in the spreadsheet is edited:
Before the call | After the call | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
The data-live-app-id
mentioned in the content
field applies to the type of
live app that's added. In this example, the live app is a calendar and the
section_id
belongs to a paragraph after (location 2) which the calendar is
added. This scenario adds a calendar containing two events scheduled for 4
October 2021 and 18 October 2021.
POST https://platform.quip.com/1/threads/edit-document
Content-Type: application/json
Authorization: Bearer ABCSampleAccessToken
{
"thread_id": "vTYlBwL8UT85",
"format": "html",
"content": "<div data-live-app-id='AbNBjAC13no' \
data-live-app-payload='{\
\"events\":[\
{\
\"color\":\"GREEN\",\
\"dateRange\":{\"start\":\"2021-10-04\",\"end\":\"2021-10-04\"},\
\"content\":\"Kickoff Meeting\"\
},\
{\
\"color\":\"RED\",\
\"dateRange\":{\"start\":\"2021-10-18\",\"end\":\"2021-10-18\"},\
\"content\":\"Project Status\"\
}],\
\"displayMonth\":\"2021-10\"\
}'>\
</div>",
"section_id": "HcDACAxeuYo",
"location": 2
}
Here's how the content looks before and after the API call:
Before the call | After the call |
---|---|
Let's start a customer satisfaction project.
|
In this example, the section_id
belongs to the cell in the live app that's
edited/replaced (location 4). This scenario replaces the name of the
calendar event "Kickoff Meeting" with "Project Kickoff".
POST https://platform.quip.com/1/threads/edit-document
Content-Type: application/json
Authorization: Bearer ABCSampleAccessToken
{
"thread_id": "vTYlBwL8UT85",
"format": "html",
"content": "Project Kickoff",
"section_id": "temp:C:HcDe5a29801dd43ce5b7d68c43f3",
"location": 4
}
Here's how the content looks before and after the API call:
Before the call | After the call |
---|---|
Live App Type | Summary of Use Case | Sample HTML for Content Field |
---|---|---|
Salesforce Record | Add a Salesforce record |
|
Salesforce List | Add a Salesforce record list |
|
Salesforce List | Add a Salesforce related list |
|
Kanban Board | Add a Kanban board with three columns:
|
|
Project Tracker | Add a project tracker with five columns::
|
|
Edit a Document reference documentation
Shares a Quip thread (document, spreadsheet, or chat) with specified people (members) at your company and adds the thread to folders. This supports information-sharing and collaboration within and across teams.
Note:
See also: Share Documents and Folders
In this example, four people are added to a thread with the ID e3fs7B2leat8. The users are added with these access levels:
See the reference documentation for more information about the access levels.
POST https://platform.quip.com/1/threads/add-members
Content-Type: application/json
Authorization: Bearer {{ABCSampleAccessToken}}
{
"thread_id": "e3fs7B2leat8",
"member_ids_by_access_level”:
[
{"access_level": 0, "member_ids": ["ABC12341234"]},
{"access_level": 1, "member_ids": ["DEF45456789"]},
{"access_level": 2, "member_ids": ["LMN74856789"]},
{"access_level": 3, "member_ids": ["XYZEF454599"]}
]
}
}
In this example, two actions are taken on a thread with ID e3fs7B2leat8:
POST https://platform.quip.com/1/threads/add-members
Content-Type: application/json
Authorization: Bearer {{ABCSampleAccessToken}}
{
"thread_id": "e3fs7B2leat8",
"member_ids": {"abCsOFj2Ny3a","XYZJAEAck4vn"}
}
USER_MANAGE
) Content-Type | string Example: application/x-www-form-urlencoded |
thread_id required | string The ID or secret path of the thread to get information about. You can pass in either of these identifiers:
|
member_ids required | string A comma-separated list of folder IDs and user IDs. We add each user individually to the thread. We add the thread to each of the specified folder IDs. If you pass in a folder ID, use either of these folder identifiers:
The Note: For better performance, it’s recommended that you add no more than 1,000 items to a folder. There’s a maximum limit of 4,000 items per folder. Items include documents, spreadsheets, and subfolders. When your API call exceeds the suggested limit of 1,000 items, a warning message is returned in the API response. When your API call exceeds the maximum limit of 4,000 items, the request isn’t executed and the 400 error code is returned. For more information, see Folder Limits. |
{- "thread": {
- "id": "AVN9AAeqq5w",
- "author_id": "LJa9EAtQi98",
- "owning_company_id": "IMbAcASGu56",
- "thread_class": "document",
- "created_usec": 1519926805974011,
- "updated_usec": 1558224928731511,
- "title": "❗️ very important cat pics ❗️",
- "type": "document",
- "is_deleted": false,
- "is_template": false,
- "document_id": "KSRABARYWW9"
}, - "user_ids": [
- "UTUAEAiZl6B"
], - "shared_folder_ids": [
- "RKa9OAiGmsC"
], - "expanded_user_ids": [
- "PZF9EA0i0ef",
- "dHe9EABHRsb",
- "EHY9EAokwO3"
], - "invited_user_emails": [ ],
- "access_levels": {
- "PZF9EA0i0ef": {
- "access_level": "OWN"
}, - "dHe9EABHRsb": {
- "access_level": "VIEW"
}, - "EHY9EAokwO3": {
- "access_level": "EDIT"
}
}, - "html": "..."
}
Makes a copy of a thread (Quip document, spreadsheet, or template). This API method allows you to easily reuse existing content, automatically add members to the thread, and add the thread to a folder. For example, after a predefined step is completed, you can make a copy of a template and fill it in with your specified content.
Note: Quip has introduced a faster, more scalable version of this API method: Copy a Document or Template V2. You’re encouraged to modify your integrations to point to the latest versions of API methods. You can continue to access legacy versions of API methods until we announce when support for them ends.
See also: Folders (Quip), REST API Versioning FAQ
In this example, a template with ID e3fs7B2leat8 is copied and the new document is filled in based on the data in the values field. The new thread is also added to a folder with ID N5aaOTih0VYy.
POST https://platform.quip.com/1/threads/copy-document
Content-Type: application/json
Authorization: Bearer ABCSampleAccessToken
{
"thread_id": "e3fs7B2leat8",
"title": "Customer Welcome",
"folder_ids": "N5aaOTih0VYy",
"values": "{
"Customer": {"Age": 34, "Name": "Arnie"},
"Greeting": "Hello"
}",
"copy_annotations": "false"
}
USER_READ
USER_WRITE
) Content-Type | string Example: application/x-www-form-urlencoded |
thread_id required | string The ID or secret path of the document to be copied:
|
values | string If you want to make a copy of a template and fill it in with your specified content, pass a JSON dictionary into this field. In the JSON dictionary, the keys must be strings and the values must be either strings or dictionaries. Keys can contain only the characters A-Z, a-z, 0-9, .(period) and _(underscore). For example:
|
member_ids | string Comma-separated list of user IDs of people who can access the new
thread. If you don't pass in |
folder_ids | string Comma-separated list of identifiers of the folders you want to add
the new thread to. If you don't pass in
Note: For better performance, it’s recommended that you add no more than 1,000 items to a folder. There’s a maximum limit of 4,000 items per folder. Items include documents, spreadsheets, and subfolders. When your API call exceeds the suggested limit of 1,000 items, a warning message is returned in the API response. When your API call exceeds the maximum limit of 4,000 items, the request isn’t executed and the 400 error code is returned. For more information, see Folder Limits. |
title | string The name of the new thread. The title is used as the first line of a document.
We recommend that you pass in a |
copy_annotations | boolean Default: false Determines whether to copy comments in the original thread to the new thread. Possible values are:
|
{- "thread": {
- "id": "AVN9AAeqq5w",
- "author_id": "LJa9EAtQi98",
- "owning_company_id": "IMbAcASGu56",
- "thread_class": "document",
- "created_usec": 1519926805974011,
- "updated_usec": 1558224928731511,
- "title": "❗️ very important cat pics ❗️",
- "type": "document",
- "is_deleted": false,
- "is_template": false,
- "document_id": "KSRABARYWW9"
}, - "user_ids": [
- "UTUAEAiZl6B"
], - "shared_folder_ids": [
- "RKa9OAiGmsC"
], - "expanded_user_ids": [
- "PZF9EA0i0ef",
- "dHe9EABHRsb",
- "EHY9EAokwO3"
], - "invited_user_emails": [ ],
- "access_levels": {
- "PZF9EA0i0ef": {
- "access_level": "OWN"
}, - "dHe9EABHRsb": {
- "access_level": "VIEW"
}, - "EHY9EAokwO3": {
- "access_level": "EDIT"
}
}, - "html": "..."
}
Makes a copy of a Quip thread (document, spreadsheet, or template) and adds it to a folder. This API method allows you to easily reuse existing content. For example, after a predefined step is completed, copy a template and add your specified content. When you add the new thread to a folder, members can automatically access that thread. This supports information-sharing and collaboration within and across teams.
USER_READ
USER_WRITE
) threadIdOrSecretPath required | string [ 10 .. 32 ] characters The ID or secret path of the thread you want to modify. You can pass in either of these identifiers:
|
title | string The name of the new thread. The title is used as the first line of a document. We recommend that you pass in a title to clearly identify the new thread. If you don't pass in a title, the names of the original and new threads are the same. |
folder_id | string Identifier of the folder you want to add the new thread to. If you don't pass in a folder_id, the new thread is added to the private folder of the user who called this API method. You can pass in either of these identifiers:
Note: Copy a Document or Template V2 is faster and more lightweight, so you can pass in only one folder ID. Copy a Document or Template V1 allows you to pass in multiple folder IDs. |
mail_merge_values | object <= 1000 items If you want to make a copy of a template and fill it in with your specified content, pass a JSON dictionary into this field. In the JSON dictionary, the keys must be strings and the values must be either strings or dictionaries. Keys can contain only the characters A-Z, a-z, 0-9, .(period) and _(underscore). For example:
|
copy_annotations | boolean Default: false Determines whether to copy comments in the original thread to the new thread. Possible values are:
|
{- "title": "❗️ very important cat pics ❗️",
- "folder_id": "N5aaOTih0VYy",
- "mail_merge_values": {
- "Customer": {
- "Age": 34,
- "Name": "Arnie"
}, - "Greeting": "Hello"
}, - "copy_annotations": false
}
{- "thread": {
- "author_id": "LJa9EAtQi98",
- "created_usec": 1519926805974011,
- "id": "AVN9AAeqq5w",
- "is_template": false,
- "owning_company_id": "IMbAcASGu56",
- "secret_path": "klUsAqWxr8Ne",
- "title": "❗️ very important cat pics ❗️",
- "type": "DOCUMENT",
- "updated_usec": 1558224928731511
}
}
Deletes the thread with the specified ID or secret.
USER_MANAGE
) thread_id required | string The ID or secret path of the thread to delete. |
wipeout | boolean Default: false Whether to permanently delete the thread. |
{ }
Modifies the content of a thread (Quip document or spreadsheet). This API method allows you to mix and match content from different sources and automatically add it to the same thread whenever new data becomes available. Quip users can then collaborate on the thread or make any other changes to it. Sample content: project status updates, meeting minutes, support cases, event registrations, approvals, survey results, or payments.
USER_READ
USER_WRITE
) Content-Type | string Example: application/x-www-form-urlencoded |
thread_id required | string The ID or secret path of the thread whose document you want to edit:
|
format | string Default: "html" Enum: "html" "markdown" Format of the |
content | string The HTML or Markdown for the content that you want to add. There's a maximum limit of 1 MB of content per request.
You can add a live app by using a
Note: We support most of the Markdown tags. The exceptions are described in the differences in the Python-Markdown implementation. |
section_id | string The ID of the part of the thread where you want to add content. Each of these types of content has its
|
document_range | string The text of the heading of the document range you want to modify. The document range includes the heading and all subheadings below it up to the next heading of the same size or larger. Required if the
|
location | integer Default: 0 Enum: 1 2 3 4 5 6 7 8 9 Where we should insert the new content.
|
{- "thread": {
- "id": "AVN9AAeqq5w",
- "author_id": "LJa9EAtQi98",
- "owning_company_id": "IMbAcASGu56",
- "thread_class": "document",
- "created_usec": 1519926805974011,
- "updated_usec": 1558224928731511,
- "title": "❗️ very important cat pics ❗️",
- "type": "document",
- "is_deleted": false,
- "is_template": false,
- "document_id": "KSRABARYWW9"
}, - "user_ids": [
- "UTUAEAiZl6B"
], - "shared_folder_ids": [
- "RKa9OAiGmsC"
], - "expanded_user_ids": [
- "PZF9EA0i0ef",
- "dHe9EABHRsb",
- "EHY9EAokwO3"
], - "invited_user_emails": [ ],
- "access_levels": {
- "PZF9EA0i0ef": {
- "access_level": "OWN"
}, - "dHe9EABHRsb": {
- "access_level": "VIEW"
}, - "EHY9EAokwO3": {
- "access_level": "EDIT"
}
}, - "html": "...",
- "section_ids": [
- "string"
]
}
Exports your specified Quip document to a DOCX file.
USER_READ
) thread_id required | string The ID or secret path of the thread for the document you want to export. |
{- "error": "string",
- "error_code": 400,
- "error_description": "string"
}
Exports your specified Quip slide deck to PDF.
USER_READ
) thread_id required | string The ID or secret path of the thread for the document you want to export. |
{- "error": "string",
- "error_code": 400,
- "error_description": "string"
}
Returns the status and PDF URL after a request you made to export a Quip document or Quip spreadsheet to PDF using the Create Export PDF Request API method. You can use the PDF to mark an approval cycle as complete, take a record-keeping snapshot, or share information with your leadership or with customers.
Note:
USER_READ
) thread_id required | string ID of the thread whose document you requested a PDF export for using the Create Export PDF Request API method. |
request_id required | string ID returned by the Create Export PDF Request API method. Use this value to get the status and PDF URL after calling the Create Export PDF Request API method. |
{- "status": "SUCCESS",
- "message": "string"
}
Submits a request to asynchronously export a Quip document or Quip
spreadsheet to PDF. This call returns a request_id
. Pass that
request_id
into the Retrieve Export PDF Response call to get the PDF URL and request
status. Sample use cases: You can export a document or spreadsheet to
PDF to mark an approval cycle as complete, take a record-keeping
snapshot, or share the PDF with your leadership or with customers.
Note:
Depending on the size of a thread, it can take up to 10 minutes to complete the PDF export. If you call the Retrieve Export PDF Response API method and your PDF isn't available, wait a few minutes then make the call again.
You can use this API method to complete a PDF export of a standalone Quip spreadsheet, not a spreadsheet inserted into a Quip document. When you do a PDF export of a Quip document containing a spreadsheet, the spreadsheet appears in the PDF.
You can export a maximum of 40,000 cells in a spreadsheet to PDF.
Charts in spreadsheets are excluded from the exported PDF.
The appearance of the PDF exported using this API method is typically the same as if you exported a document or spreadsheet to PDF in the Quip application. Sometimes there are differences when you export via API. For example, in the PDF:
USER_READ
) thread_id required | string ID of the Quip document or spreadsheet that you want to export to PDF. |
destination_thread_id | string ID of the Quip document to which you want to attach the exported PDF. The PDF gets attached to the end of your specified document. |
salesforce_org_id | string ID of the Salesforce organization in which you want to attach the exported PDF. If you pass in a |
salesforce_record_id | string ID of the Salesforce record to which you want to attach the exported PDF. If you pass in a |
sheet_name | string If you're exporting a spreadsheet with multiple tabs, this field identifies the tab that you want to export to PDF. If you don't identify the tab, the first tab is exported. |
apply_print_options | boolean Default: false Determines whether to apply print options to the exported PDF. Allowable values are: * |
{- "request_id": "IAcAAAY7zCRAMXAEA8lSEj1644527357113",
- "status": "PROCESSING"
}
Exports your specified Quip spreadsheet to an XLSX file.
USER_READ
) thread_id required | string The ID or secret path of the thread for the document you want to export. |
{- "error": "string",
- "error_code": 400,
- "error_description": "string"
}
Returns the list of folders that a Quip thread (document, spreadsheet, or chat) is in. Use this API method to monitor information-sharing and improve folder organization on your Quip site.
USER_READ
) threadIdOrSecretPath required | string [ 10 .. 32 ] characters The ID or secret path of the thread to get information about. You can pass in either of these identifiers:
|
cursor | string A pointer to the next page of data to return. Use a cursor to
incrementally get additional pages of data. When you call this
API method for the first time, leave the |
limit | number The maximum number of items to return in the same call. |
{- "folders": [
- [
- {
- "folder_id": "XaABCAlgycE",
- "type": "SHARED"
}, - {
- "folder_id": "EGFAOAZ64Jg",
- "type": "PRIVATE"
}
]
], - "response_metadata": {
- "next_cursor": "Y3Vyc29yVG9OZXh0UGFnZQ=="
}
}
Returns basic information about a Quip thread (document, spreadsheet, or chat). This information includes things such as the ID, title, last time the thread was edited and the thread's link sharing settings.
USER_READ
) threadIdOrSecretPath required | string [ 10 .. 32 ] characters The ID or secret path of the thread to get information about. You can pass in either of these identifiers:
|
{- "thread": {
- "author_id": "LJa9EAtQi98",
- "created_usec": 1519926805974011,
- "id": "AVN9AAeqq5w",
- "is_template": false,
- "owning_company_id": "IMbAcASGu56",
- "secret_path": "klUsAqWxr8Ne",
- "title": "❗️ very important cat pics ❗️",
- "type": "DOCUMENT",
- "updated_usec": 1558224928731511
}
}
Get the body of the thread in html format.
If Mirrored Salesforce Permissions is enabled, data included in a document by using a Salesforce Data Mention is returned only if the data mention has been displayed to the requesting user.
USER_READ
) threadIdOrSecretPath required | string [ 10 .. 32 ] characters The ID or secret path of the thread you want to modify. You can pass in either of these identifiers:
|
cursor | string A pointer to the next page of data to return. Use a cursor to
incrementally get additional pages of data. When you call this
API method for the first time, leave the |
limit | number The maximum number of items to return in the same call. |
{- "html": "<h1 id='SUUACAWNxIJ'>Welcome to Quip</h1><p id='SUUACAxnYSJ' class='line'>Quip lets you do much more than just create and edit documents online. Try it out and see for yourself!</p>",
- "response_metadata": {
- "next_cursor": "Y3Vyc29yVG9OZXh0UGFnZQ=="
}
}
Returns the list of users who were invited via email to become direct members of a Quip thread (document, spreadsheet, or chat). Use this API method to monitor requests for collaboration with people outside of your Quip site.
Note: This API method doesn't return the list of users who are already direct members of a thread.
USER_READ
) threadIdOrSecretPath required | string [ 10 .. 32 ] characters The ID or secret path of the thread you want to modify. You can pass in either of these identifiers:
|
cursor | string A pointer to the next page of data to return. Use a cursor to
incrementally get additional pages of data. When you call this
API method for the first time, leave the |
limit | number The maximum number of items to return in the same call. |
{- "invited_members": [
- {
- "email": "abc@example.com",
- "access_level": "OWN",
- "id": "fONAVAw8BJX"
}, - {
- "email": "def@example.com",
- "access_level": "VIEW",
- "id": "SWJAVAhaLJ6"
}
], - "response_metadata": {
- "next_cursor": "Y3Vyc29yVG9OZXh0UGFnZQ=="
}
}
Lock or unlock edits to a thread.
USER_MANAGE
) Content-Type | string Example: application/x-www-form-urlencoded |
thread_id required | string The ID or secret path of the thread whose document you want to modify. |
edits_disabled required | boolean If true this will disable edits on this thread. If false, it will enable edits on this thread. |
{ }
Lock or unlock edits to a section.
USER_MANAGE
) Content-Type | string Example: application/x-www-form-urlencoded |
thread_id required | string The ID or secret path of the thread you want to modify. |
section_id required | string The ID for the section you want to lock or unlock. |
edits_disabled required | string If true this will disable edits for this section. If false, it will enable edits for this thread. |
{- "thread": {
- "id": "AVN9AAeqq5w",
- "author_id": "LJa9EAtQi98",
- "owning_company_id": "IMbAcASGu56",
- "thread_class": "document",
- "created_usec": 1519926805974011,
- "updated_usec": 1558224928731511,
- "title": "❗️ very important cat pics ❗️",
- "type": "document",
- "is_deleted": false,
- "is_template": false,
- "document_id": "KSRABARYWW9"
}, - "user_ids": [
- "UTUAEAiZl6B"
], - "shared_folder_ids": [
- "RKa9OAiGmsC"
], - "expanded_user_ids": [
- "PZF9EA0i0ef",
- "dHe9EABHRsb",
- "EHY9EAokwO3"
], - "invited_user_emails": [ ],
- "access_levels": {
- "PZF9EA0i0ef": {
- "access_level": "OWN"
}, - "dHe9EABHRsb": {
- "access_level": "VIEW"
}, - "EHY9EAokwO3": {
- "access_level": "EDIT"
}
}, - "html": "..."
}
Add a section to a document that tracks another section and can automatically update when the source section is updated.
We determine where to insert the new content based on the location
argument. Some location
values are relative to another section,
which is specified by destination_section_id
, enabling fine-grained
editing. For example, to add a section to the end of an existing
section, you would send the ID of the existing section in the list as
the destination_section_id
and send 2: AFTER_SECTION
as the
location
.
To get the IDs of sections in an existing document, parse the HTML
returned by the Get Thread.
Every paragraph, list item, and table cell will have an HTML id
attribute you can use in this method. Live Paste does not support
individual items in lists.
Alternatively the content of both the source and the destination
document can be referred to by document ranges. A document range is a
heading plus all sections underneath it up to the next heading of same
or larger size. The location
values 6
, 7
and 8
support
document ranges in combination with destination_document_range
for
the destination document. The is_document_range_source
parameter
supports document ranges for the source document when set to True
,
in combination with the source_document_range
parameter. Document
ranges are available for documents only, i.e. not for spreadsheets.
USER_READ
USER_WRITE
) Content-Type | string Example: application/x-www-form-urlencoded |
source_thread_id required | string The ID or secret path of the thread to copy from. |
destination_thread_id required | string The ID of the thread you want to modify. |
is_document_range_source | boolean Default: false If If |
source_section_ids | string A comma-separated list of sequential sections of the source thread to copy. Required if |
source_document_range | string The string of the heading in the source document that defines the document range you want to copy. The document range includes the header and all sections below it until the next heading of the same size or larger. This parameter is required if |
location | string Default: 0 Enum: 1 2 3 4 6 7 8 9 Where we should insert the new content.
( |
destination_section_id | string The ID or secret path of the thread to be modified. This cannot be the same as the |
destination_document_range | string The string of the header in the destination document that defines the document range you want to modify. Required for |
update_automatic | string Default: true If set to true, the destination section will update automatically when the source section changes. Live Pastes will not be able to update automatically if the admin has disabled automatic updates for Live Paste in the Admin Console. |
{- "thread": {
- "author_id": "HcLAEARatvR",
- "thread_class": "document",
- "id": "SIdAAANKtjW",
- "created_usec": 1588263820524431,
- "updated_usec": 1588264045370339,
- "title": "Test destination document",
- "type": "document",
- "document_id": "SIdABA4DG5G"
}, - "user_ids": [
- "HcLAEARatvR"
], - "shared_folder_ids": [ ],
- "expanded_user_ids": [
- "HcLAEARatvR"
], - "invited_user_emails": [ ],
- "html": "<h1 id='SIdACAn15zN'>Test destination document</h1>\n<p id='SIdACAAhXse' class='line'></p>\n<p id='SIdACAYNoUk' class='line'></p>\n"
}
Returns the list of users who are members of a Quip thread (document, spreadsheet, or chat) because they were added to it directly. Use this API method to monitor information-sharing on your Quip site.
Note: This API method doesn't return the list of users who were added via other means including:
USER_READ
) threadIdOrSecretPath required | string [ 10 .. 32 ] characters The ID or secret path of the thread to get information about. You can pass in either of these identifiers:
|
cursor | string A pointer to the next page of data to return. Use a cursor to
incrementally get additional pages of data. When you call this
API method for the first time, leave the |
limit | number The maximum number of items to return in the same call. |
{- "members": [
- {
- "access_level": "EDIT",
- "user_id": "LJa9EAtQi98",
- "id": "dAWAFAAarIo"
}, - {
- "access_level": "OWN",
- "user_id": "BfNAEA8gUaD",
- "id": "dAWAFAiFVnw"
}
], - "response_metadata": {
- "next_cursor": "Y3Vyc29yVG9OZXh0UGFnZQ=="
}
}
Bulk variant of the Get Thread endpoint.
Returns basic information about multiple Quip threads (documents, spreadsheets, or chats). This information for each thread includes things such as the ID, title, last time the thread was edited and the thread's link sharing settings.
USER_READ
) ids required | string The IDs or secret paths of the threads to get information about. You can pass in a maximum of 100 of either of these identifiers:
|
{- "klUsAqWxr8Ne": {
- "author_id": "LJa9EAtQi98",
- "created_usec": 1519926805974011,
- "id": "AVN9AAeqq5w",
- "is_template": false,
- "owning_company_id": "IMbAcASGu56",
- "secret_path": "klUsAqWxr8Ne",
- "title": "❗️ very important cat pics ❗️",
- "type": "DOCUMENT",
- "updated_usec": 1558224928731511
}, - "abcAAA78901": {
- "error_description": "Not found: 'abcAAA78901'"
}
}
Creates a chat room.
USER_WRITE
) Content-Type | string Example: application/x-www-form-urlencoded |
title required | string The title of the new chat room. Title length must not exceed 10 KB. |
message | string Plain text content of the new message that is posted by the author of the chat room. Content must not exceed 100KB. |
member_ids | string A comma-separated list of user IDs to add as members to the chat room. |
{- "thread": {
- "id": "AVN9AAeqq5w",
- "author_id": "LJa9EAtQi98",
- "owning_company_id": "IMbAcASGu56",
- "thread_class": "channel",
- "created_usec": 1519926805974011,
- "updated_usec": 1558224928731511,
- "title": "❗️ very important cat pics ❗️",
- "type": "chat",
- "is_deleted": false,
- "is_template": false,
- "document_id": "KSRABARYWW9"
}, - "user_ids": [
- "UTUAEAiZl6B"
], - "shared_folder_ids": [
- "RKa9OAiGmsC"
], - "expanded_user_ids": [
- "PZF9EA0i0ef",
- "dHe9EABHRsb",
- "EHY9EAokwO3"
], - "invited_user_emails": [ ],
- "access_levels": {
- "PZF9EA0i0ef": {
- "access_level": "OWN"
}, - "dHe9EABHRsb": {
- "access_level": "VIEW"
}, - "EHY9EAokwO3": {
- "access_level": "EDIT"
}
}, - "html": "..."
}
Creates a document or spreadsheet, returning the new thread in the same format as Get Thread.
This endpoint doesn't support slides anymore because they're retired as described in this article.
USER_WRITE
) Content-Type | string Example: application/x-www-form-urlencoded |
content required | string The HTML or Markdown content of the new document. The content length must not exceed 1MB. NOTE: When creating a spreadsheet, the content must be surrounded by
an HTML NOTE: In the current implementation, the parser treats |
format | string Default: "html" Enum: "html" "markdown" Format of the supplied document content. |
title | string The title of the new document. If not specified, we infer the title from the first content of the document, for example, the first heading. The title must not exceed 10 KB. |
member_ids | string A comma-separated list of folder IDs or user IDs. The document will be placed in the specified folders, and any individual users listed will be granted individual access to the document. If this argument is not given, the document is created in the authenticated user's Private folder. |
type | string Default: "document" Enum: "document" "spreadsheet" The type of document to create. |
{- "thread": {
- "id": "AVN9AAeqq5w",
- "author_id": "LJa9EAtQi98",
- "owning_company_id": "IMbAcASGu56",
- "thread_class": "document",
- "created_usec": 1519926805974011,
- "updated_usec": 1558224928731511,
- "title": "❗️ very important cat pics ❗️",
- "type": "document",
- "is_deleted": false,
- "is_template": false,
- "document_id": "KSRABARYWW9"
}, - "user_ids": [
- "UTUAEAiZl6B"
], - "shared_folder_ids": [
- "RKa9OAiGmsC"
], - "expanded_user_ids": [
- "PZF9EA0i0ef",
- "dHe9EABHRsb",
- "EHY9EAokwO3"
], - "invited_user_emails": [ ],
- "access_levels": {
- "PZF9EA0i0ef": {
- "access_level": "OWN"
}, - "dHe9EABHRsb": {
- "access_level": "VIEW"
}, - "EHY9EAokwO3": {
- "access_level": "EDIT"
}
}, - "html": "..."
}
Returns the most recent threads to have received messages, similar to the updates view in the Quip app. Results are returned in the same format as Get Thread.
USER_READ
) count | integer [ 1 .. 50 ] Default: 10 The number of threads to return. |
max_updated_usec | integer <int64> UNIX epoch timestamp. Searches only for threads that were last updates before or at this timestamp. |
include_hidden | boolean If true, response includes hidden threads. |
{- "property1": {
- "thread": {
- "id": "AVN9AAeqq5w",
- "author_id": "LJa9EAtQi98",
- "owning_company_id": "IMbAcASGu56",
- "thread_class": "document",
- "created_usec": 1519926805974011,
- "updated_usec": 1558224928731511,
- "title": "❗️ very important cat pics ❗️",
- "type": "document",
- "is_deleted": false,
- "is_template": false,
- "document_id": "KSRABARYWW9"
}, - "user_ids": [
- "UTUAEAiZl6B"
], - "shared_folder_ids": [
- "RKa9OAiGmsC"
], - "expanded_user_ids": [
- "PZF9EA0i0ef",
- "dHe9EABHRsb",
- "EHY9EAokwO3"
], - "invited_user_emails": [ ],
- "access_levels": {
- "PZF9EA0i0ef": {
- "access_level": "OWN"
}, - "dHe9EABHRsb": {
- "access_level": "VIEW"
}, - "EHY9EAokwO3": {
- "access_level": "EDIT"
}
}, - "html": "..."
}, - "property2": {
- "thread": {
- "id": "AVN9AAeqq5w",
- "author_id": "LJa9EAtQi98",
- "owning_company_id": "IMbAcASGu56",
- "thread_class": "document",
- "created_usec": 1519926805974011,
- "updated_usec": 1558224928731511,
- "title": "❗️ very important cat pics ❗️",
- "type": "document",
- "is_deleted": false,
- "is_template": false,
- "document_id": "KSRABARYWW9"
}, - "user_ids": [
- "UTUAEAiZl6B"
], - "shared_folder_ids": [
- "RKa9OAiGmsC"
], - "expanded_user_ids": [
- "PZF9EA0i0ef",
- "dHe9EABHRsb",
- "EHY9EAokwO3"
], - "invited_user_emails": [ ],
- "access_levels": {
- "PZF9EA0i0ef": {
- "access_level": "OWN"
}, - "dHe9EABHRsb": {
- "access_level": "VIEW"
}, - "EHY9EAokwO3": {
- "access_level": "EDIT"
}
}, - "html": "..."
}
}
Removes the given individuals from the given thread and/or removes the thread from the given folders. We return the updated thread in same format as Get Thread.
USER_MANAGE
) Content-Type | string Example: application/x-www-form-urlencoded |
thread_id required | string The ID or secret path of the thread from which you want to remove folders and users. |
member_ids required | string A comma-separated list of folder IDs and user IDs. We remove each user ID individually from the thread. We remove the thread from each of the specified folder IDs. |
{- "thread": {
- "id": "AVN9AAeqq5w",
- "author_id": "LJa9EAtQi98",
- "owning_company_id": "IMbAcASGu56",
- "thread_class": "document",
- "created_usec": 1519926805974011,
- "updated_usec": 1558224928731511,
- "title": "❗️ very important cat pics ❗️",
- "type": "document",
- "is_deleted": false,
- "is_template": false,
- "document_id": "KSRABARYWW9"
}, - "user_ids": [
- "UTUAEAiZl6B"
], - "shared_folder_ids": [
- "RKa9OAiGmsC"
], - "expanded_user_ids": [
- "PZF9EA0i0ef",
- "dHe9EABHRsb",
- "EHY9EAokwO3"
], - "invited_user_emails": [ ],
- "access_levels": {
- "PZF9EA0i0ef": {
- "access_level": "OWN"
}, - "dHe9EABHRsb": {
- "access_level": "VIEW"
}, - "EHY9EAokwO3": {
- "access_level": "EDIT"
}
}, - "html": "..."
}
Returns a list of threads whose content matches words in the given query. Threads are sorted from most to least relevant.
USER_READ
) query required | string Example: query=<query> A text string containing words delimited by spaces used to match thread content or titles. |
count | integer <= 50 Default: 10 The maximum number of results to return. |
only_match_titles | boolean Default: false If set to true, the search will match words in document titles rather than content. Typically much faster if you only want to get documents with a certain title. |
[- {
- "thread": {
- "updated_usec": 1497546190102488,
- "author_id": "QGPAEAHhrEM",
- "created_usec": 1497545872752906,
- "id": "NCSAAAVEZZE",
- "thread_class": "document",
- "type": "document",
- "title": "Expense Report Q2 FY18"
}
}, - {
- "thread": {
- "updated_usec": 1498163965704797,
- "author_id": "QGPAEAHhrEM",
- "created_usec": 1497545838650473,
- "id": "cRLAAA665U4",
- "thread_class": "document",
- "type": "document",
- "title": "Dreamforce expense report"
}
}, - {
- "thread": {
- "updated_usec": 1498507612435964,
- "author_id": "QGPAEAHhrEM",
- "created_usec": 1497545924280456,
- "sharing": {
- "company_mode": "VIEW",
- "company_id": "LbdAcAwVVIA"
}, - "id": "LFUAAAJTGNZ",
- "thread_class": "document",
- "type": "document",
- "title": "Expense reports for 2018 off-sites"
}
}
]
Gets an image or other blob from the Quip document or
spreadsheet associated with your specified thread_id
.
To find the blob_id
, inspect the Quip document or
spreadsheet in a browser and search for the blob_id
in the "sources".
In the case of success, the response is raw binary, so this endpoint can be used to display images.
In the case of failure, the response will return an object with an
error
field.
USER_READ
) thread_id required | string The ID or secret path of the thread the blob belongs to. |
blob_id required | string The ID of the blob to retrieve. |
If-None-Match | string Header containing a |
{- "error": "string",
- "error_code": 304,
- "error_description": "string"
}
Uploads an image or other blob to the given thread. Returns a url
that may be used in the content
field of
Edit Document
requests and an id
that may be used in the attachment
field of
Add a Message.
USER_WRITE
) thread_id required | string The ID or secret path of the thread the blob will be added to. |
blob required | string <binary> The image or blob binary. |
{- "id": "DiPp1ZQyC8QUtvBT4vojzM",
- "url": "/blob/LeSAAAqaCfc/DiPp1ZQyC8QUtvBT4vojzM"
}
Returns a list of the most recent messages for the given thread.
USER_READ
) thread_id required | string The ID of the thread to return recent messages for. |
count | integer [ 1 .. 100 ] Default: 25 Number of messages to return. |
max_created_usec | integer <int64> A UNIX timestamp in microseconds. If given, we return messages created at and before the given timestamp. The messages will be sorted by creation time in descending order if |
updated_since_usec | integer <int64> A UNIX timestamp in microseconds. If given, we return messages
last updated at and after the given timestamp. The messages will
be sorted by last update time in ascending order if |
last_updated_since_usec | integer <int64> A UNIX timestamp in microseconds. If given, we return messages
last updated before the given timestamp. The messages will
be sorted by last update time in ascending order if |
sorted_by | string Enum: "ASC" "DESC" Determines whether to sort messages in ascending or descending order. |
sort_by | string Enum: "ASC" "DESC" Alias for |
message_type | string Default: "message" Enum: "message" "edit" Determines the type of messages to return. If |
[- {
- "id": "FCKADA33rNg",
- "author_id": "UTUAEAiZl6B",
- "author_name": "Jane Doe",
- "created_usec": 1632348632519081,
- "updated_usec": 1632348632596233,
- "visible": true,
- "text": "string",
- "files": [
- {
- "hash": "vOTFW_A3Cp1zXNSjqsEIoA",
- "name": "hello.txt"
}
], - "annotation": {
- "id": "string",
- "highlighted_section_ids": [
- "string"
]
}, - "parts": [
- [
- "system",
- "HTML1"
], - [
- "status",
- "HTML2"
]
], - "apparent_user": {
- "user_id": "string"
}, - "diff_groups": [
- {
- "diffs": [
- {
- "rtml": "Cats are <diff class=\"insert\">sometimes</diff>\n<diff class=\"delete\">usually</diff> friendly.\n"
}
]
}
], - "like_user_ids": [
- "string"
], - "mention_user_ids": [
- "string"
]
}
]
Adds a required chat message, which can either be plain text content or contain attachments, to the given thread, posted as the authenticated user.
USER_WRITE
) Content-Type | string Example: application/x-www-form-urlencoded |
thread_id required | string The ID of the thread the message will be added to. |
frame | string Enum: "bubble" "card" "line" Adjusts the display type of the message. |
content | string Plain text content of the new message (ignored if |
silent | boolean Default: false If set to True, we do not send any push notifications or emails for the message. If set to False, we use the default notifications for users on the thread. |
parts | Array of Array of strings (message_parts_input) <= 20 items [ items 2 items ] A list of the rich content parts of this message. Each rich content part is represented as a two-item list. The first list item describes the style of the message. Possible values are:
The second list item is the content of the message part, in HTML. Rich content parts may also include user mentions. Users
can be mentioned with a link to their user ID appended to
the end of the Quip URL or with their email: For mentioning everyone in a document, a link to @everyone
is included: |
attachments | string A comma-separated list of blob IDs previously uploaded to this thread with Add a Blob. |
annotation_id | string The ID of a document comment. If provided, the message
will be placed in the comment. Only one of |
section_id | string If present, the message will be added as a comment on the document section with this ID. Only one of |
name | string The name of the apparent user if the authorized user of this request is a bot. This is for messages created from a Quip integration. |
user_id | string The Quip user ID of the apparent user if the authorized user of this request is a bot. This is for messages created from a integration. |
profile_picture | string The URL for the profile picture of the apparent user if the authorized user of this request is a bot. This is for messages created from a Quip integration. |
string The email of the apparent user if the authorized user of this request is a bot. This is for messages created from a Quip integration. | |
service_id | string An external service ID for the message if the authorized user of this request is a bot. This is for messages created from a Quip integration and is used to prevent integrations from duplicating messages. |
url | string An external URL linked from the message if the authorized user of this request is a bot. This is for messages created from a Quip integration. |
{- "id": "FCKADA33rNg",
- "author_id": "UTUAEAiZl6B",
- "author_name": "Jane Doe",
- "created_usec": 1632348632519081,
- "updated_usec": 1632348632596233,
- "visible": true,
- "text": "string",
- "files": [
- {
- "hash": "vOTFW_A3Cp1zXNSjqsEIoA",
- "name": "hello.txt"
}
], - "annotation": {
- "id": "string",
- "highlighted_section_ids": [
- "string"
]
}, - "parts": [
- [
- "system",
- "HTML1"
], - [
- "status",
- "HTML2"
]
], - "apparent_user": {
- "user_id": "string"
}, - "diff_groups": [
- {
- "diffs": [
- {
- "rtml": "Cats are <diff class=\"insert\">sometimes</diff>\n<diff class=\"delete\">usually</diff> friendly.\n"
}
]
}
], - "like_user_ids": [
- "string"
], - "mention_user_ids": [
- "string"
]
}
Shares the given folder with the given user IDs.
USER_MANAGE
) include_chats | boolean If |
Content-Type | string Example: application/x-www-form-urlencoded |
folder_id required | string The ID of the folder to update. |
member_ids required | string A comma-separated list of user IDs. |
{- "folder": {
- "title": "Quip",
- "creator_id": "KLf9EAPrxbs",
- "id": "RKH9OAELPKV",
- "created_usec": 1497474937520657,
- "updated_usec": 1558247457514983,
- "folder_type": "shared",
- "inherit_mode": "inherit",
- "sharing": {
- "company_mode": "EDIT",
- "company_id": "LbdAcAwVVIA"
}
}, - "member_ids": [
- "YNK9EAU71mc",
- "PEW9EAtTnrV",
- "aBd9EAl8R0H",
- "MVT9EACSny8",
- "LJa9EAtQi98",
- "ROS9EAGOj1u"
], - "children": [
- {
- "thread_id": "aXM9AASQOGr"
}, - {
- "thread_id": "cYX9AAfS6ma"
}, - {
- "thread_id": "WVD9AA1grdh"
}
]
}
Returns the given folder. To find your desktop or archive folder ID, see Get Authenticated User.
USER_READ
) id required | string ID of the folder whose information you want to get. |
include_chats | boolean If |
{- "folder": {
- "title": "Quip",
- "creator_id": "KLf9EAPrxbs",
- "id": "RKH9OAELPKV",
- "created_usec": 1497474937520657,
- "updated_usec": 1558247457514983,
- "folder_type": "shared",
- "inherit_mode": "inherit",
- "sharing": {
- "company_mode": "EDIT",
- "company_id": "LbdAcAwVVIA"
}
}, - "member_ids": [
- "YNK9EAU71mc",
- "PEW9EAtTnrV",
- "aBd9EAl8R0H",
- "MVT9EACSny8",
- "LJa9EAtQi98",
- "ROS9EAGOj1u"
], - "children": [
- {
- "thread_id": "aXM9AASQOGr"
}, - {
- "thread_id": "cYX9AAfS6ma"
}, - {
- "thread_id": "WVD9AA1grdh"
}
]
}
Identifies the link sharing settings for your specified folder.
In this example, we're getting the link sharing settings for a folder with ID XaABCAlgycE.
GET https://platform.quip.com/2/folders/XaABCAlgycE/link-sharing-settings
Authorization: Bearer ABCSampleAccessToken
USER_READ
) folderIdOrSecretPath required | string [ 10 .. 32 ] characters Identifier of the folder whose link sharing settings you want to get. You can pass in either of these identifiers:
|
[- {
- "link_sharing_enabled": true,
- "external_access_allowed": false
}
]
Modifies a Quip folder's link sharing settings. When you enable link sharing on a folder, everyone at your company can view, edit, and share the contents of that folder. You can also use this API method to enable or disable read-only access for people outside of your company.
For example, if you have a folder that contains data to be shared with your whole company, you can enable link sharing on the folder. That way, all employees can use the shareable link to automatically get access to any new or updated content in that folder. If you enable external access, people your employees collaborate with outside of your company also automatically get access to that content.
In this example, we're enabling link sharing on a folder with ID XaABCAlgycE.
PUT https://platform.quip.com/2/folders/XaABCAlgycE/link-sharing-settings
Content-Type: application/json
Authorization: Bearer ABCSampleAccessToken
{
"link_sharing_enabled": "True",
"external_access_allowed": "False"
}
USER_MANAGE
) folderIdOrSecretPath required | string [ 10 .. 32 ] characters Identifier of the folder whose link sharing settings you want to get. You can pass in either of these identifiers:
|
link_sharing_enabled required | boolean Determines whether to enable link sharing for your specified folder. Allowable values are:
|
external_access_allowed | boolean Determines whether people outside of your company can access your
specified folder. This field is required only if you set
|
[- {
- "link_sharing_enabled": true,
- "external_access_allowed": false
}
]
{- "error": "string",
- "error_code": 400,
- "error_description": "string"
}
Bulk variant of the Get Folder endpoint. Returns an object mapping IDs to folder objects.
USER_READ
) ids required | string Example: ids=BULAOADdLWL,CULAOADdLWL A comma-separated list of folder IDs. |
include_chats | boolean If |
{- "property1": {
- "folder": {
- "title": "Quip",
- "creator_id": "KLf9EAPrxbs",
- "id": "RKH9OAELPKV",
- "created_usec": 1497474937520657,
- "updated_usec": 1558247457514983,
- "folder_type": "shared",
- "inherit_mode": "inherit",
- "sharing": {
- "company_mode": "EDIT",
- "company_id": "LbdAcAwVVIA"
}
}, - "member_ids": [
- "YNK9EAU71mc",
- "PEW9EAtTnrV",
- "aBd9EAl8R0H",
- "MVT9EACSny8",
- "LJa9EAtQi98",
- "ROS9EAGOj1u"
], - "children": [
- {
- "thread_id": "aXM9AASQOGr"
}, - {
- "thread_id": "cYX9AAfS6ma"
}, - {
- "thread_id": "WVD9AA1grdh"
}
]
}, - "property2": {
- "folder": {
- "title": "Quip",
- "creator_id": "KLf9EAPrxbs",
- "id": "RKH9OAELPKV",
- "created_usec": 1497474937520657,
- "updated_usec": 1558247457514983,
- "folder_type": "shared",
- "inherit_mode": "inherit",
- "sharing": {
- "company_mode": "EDIT",
- "company_id": "LbdAcAwVVIA"
}
}, - "member_ids": [
- "YNK9EAU71mc",
- "PEW9EAtTnrV",
- "aBd9EAl8R0H",
- "MVT9EACSny8",
- "LJa9EAtQi98",
- "ROS9EAGOj1u"
], - "children": [
- {
- "thread_id": "aXM9AASQOGr"
}, - {
- "thread_id": "cYX9AAfS6ma"
}, - {
- "thread_id": "WVD9AA1grdh"
}
]
}
}
Creates a folder.
USER_MANAGE
) include_chats | boolean If |
title required | string The name of the folder. |
color | string Default: "manila" Enum: "manila" "red" "orange" "green" "blue" "purple" "dark_yellow" "light_red" "light_orange" "light_green" "light_blue" "light_purple" The color of the folder. |
member_ids | string A comma-separated list of user IDs to add as members of this folder. |
parent_id | string If given, we make the folder a child of the given folder. If not given, we create the folder in the authenticated user's Private folder. |
{- "folder": {
- "title": "Quip",
- "creator_id": "KLf9EAPrxbs",
- "id": "RKH9OAELPKV",
- "created_usec": 1497474937520657,
- "updated_usec": 1558247457514983,
- "folder_type": "shared",
- "inherit_mode": "inherit",
- "sharing": {
- "company_mode": "EDIT",
- "company_id": "LbdAcAwVVIA"
}
}, - "member_ids": [
- "YNK9EAU71mc",
- "PEW9EAtTnrV",
- "aBd9EAl8R0H",
- "MVT9EACSny8",
- "LJa9EAtQi98",
- "ROS9EAGOj1u"
], - "children": [
- {
- "thread_id": "aXM9AASQOGr"
}, - {
- "thread_id": "cYX9AAfS6ma"
}, - {
- "thread_id": "WVD9AA1grdh"
}
]
}
Removes the given User IDs from the given folder.
USER_MANAGE
) include_chats | boolean If |
folder_id required | string The ID of the folder to modify. |
member_ids required | string A comma-separated list of user IDs. |
{- "folder": {
- "title": "Quip",
- "creator_id": "KLf9EAPrxbs",
- "id": "RKH9OAELPKV",
- "created_usec": 1497474937520657,
- "updated_usec": 1558247457514983,
- "folder_type": "shared",
- "inherit_mode": "inherit",
- "sharing": {
- "company_mode": "EDIT",
- "company_id": "LbdAcAwVVIA"
}
}, - "member_ids": [
- "YNK9EAU71mc",
- "PEW9EAtTnrV",
- "aBd9EAl8R0H",
- "MVT9EACSny8",
- "LJa9EAtQi98",
- "ROS9EAGOj1u"
], - "children": [
- {
- "thread_id": "aXM9AASQOGr"
}, - {
- "thread_id": "cYX9AAfS6ma"
}, - {
- "thread_id": "WVD9AA1grdh"
}
]
}
Updates a folder.
USER_MANAGE
) include_chats | boolean If |
folder_id required | string The ID of the folder to update. |
title | string The new title of the folder. |
color | string Enum: "manila" "red" "orange" "green" "blue" "purple" "dark_yellow" "light_red" "light_orange" "light_green" "light_blue" "light_purple" The new color of the folder. |
{- "folder": {
- "title": "Quip",
- "creator_id": "KLf9EAPrxbs",
- "id": "RKH9OAELPKV",
- "created_usec": 1497474937520657,
- "updated_usec": 1558247457514983,
- "folder_type": "shared",
- "inherit_mode": "inherit",
- "sharing": {
- "company_mode": "EDIT",
- "company_id": "LbdAcAwVVIA"
}
}, - "member_ids": [
- "YNK9EAU71mc",
- "PEW9EAtTnrV",
- "aBd9EAl8R0H",
- "MVT9EACSny8",
- "LJa9EAtQi98",
- "ROS9EAGOj1u"
], - "children": [
- {
- "thread_id": "aXM9AASQOGr"
}, - {
- "thread_id": "cYX9AAfS6ma"
}, - {
- "thread_id": "WVD9AA1grdh"
}
]
}
Returns a list of contacts for the authenticated user.
USER_READ
) [ ]
Returns information about the authenticated user.
USER_READ
) sort_by | string Enum: "title" "created_usec" "updated_usec" Determines which field to sort the |
sort_order | string Default: "asc" Enum: "asc" "desc" Determines what order to sort the |
{- "id": "UTUAEAiZl6B",
- "name": "Jane Doe",
- "company_id": "IMbAcASGu56",
- "emails": [
- "jane@example1.com",
- "jane@example2.com"
], - "disabled": false,
- "created_usec": 1632022665732239,
- "is_robot": false,
- "affinity": 0.43,
- "chat_thread_id": "adHAAAKik9A",
- "desktop_folder_id": "AGWAOAhT3qk",
- "archive_folder_id": "BGWAOAhT3qk",
- "starred_folder_id": "CGWAOAhT3qk",
- "private_folder_id": "DGWAOAhT3qk",
- "trash_folder_id": "EGWAOAhT3qk",
- "shared_folder_ids": [
- "FGWAOAhT3qk",
- "GGWAOAhT3qk"
], - "group_folder_ids": [
- "HGWAOAhT3qk",
- "IGWAOAhT3qk"
]
}
Returns information about Quip threads owned by the current user. Threads include: documents and spreadsheets, chats (2-person and group), Slack channel conversations linked to Quip (also called "channels"), and slides. You can use the returned information for eDiscovery and eArchiving purposes. For example, you can pass the returned thread IDs into another API call to export the threads to .docx or PDF files. Then you can save the exported files in your archiving system.
In this first example, we're getting a list of the first 50 threads
owned by the current user. Since the user owns more that 50 threads,
we'll get a next_cursor
value in the response and pass that value
into the next call in step 2.
GET https://platform.quip.com/1/users/current/threads?limit=50
Authorization: Bearer {{ABCSampleAccessToken}}
In this example, we're getting a list of the next 50 threads owned
by a user with ID ABCEAmpgev at a company with ID DEFAcAV4DT7.
We're passing in the next_cursor
value returned by the previous
call from step 1.
GET https://platform.quip.com/1/users/current/threads?limit=50&cursor=bmV4dCBjdXJzb3I
Authorization: Bearer {{ABCSampleAccessToken}}
USER_READ
) threads_meta | boolean Default: false Determines whether to include basic thread data in the response. Allowable values for this field are:
|
include_deleted | boolean Default: false Determines whether to return threads that the current user has been removed from. Allowable values for this field are:
|
thread_ids | string Example: thread_ids=UcZ9AAhvqrc,AVN9AAeqq5w Comma-separated list of thread IDs owned by the current user. You can pass in either of these identifiers:
|
limit | integer The maximum number of threads to return. You can pass in a maximum limit of 1,000. If you leave the limit field blank, this call returns a maximum of 1,000 threads. |
cursor | string A pointer to the next page of thread data to return. Use a cursor
to incrementally get the next set of thread data. When you call
this API method for the first time, leave the cursor field blank.
For all calls after that first one, pass in the Note: Each |
{- "threads": {
- "property1": { },
- "property2": { }
}, - "response_metadata": {
- "next_cursor": "Y3Vyc29yVG9OZXh0UGFnZQ=="
}
}
Returns the user with the specified ID.
USER_READ
) id required | string The ID or email address of the user to get information for. Note: Email-based lookups return information about a user from only the same company as the caller. That's the company of the person who created the API key associated with your provided access token. |
sort_by | string Enum: "title" "created_usec" "updated_usec" Determines which field to sort the |
sort_order | string Default: "asc" Enum: "asc" "desc" Determines what order to sort the |
{- "id": "UTUAEAiZl6B",
- "name": "Jane Doe",
- "company_id": "IMbAcASGu56",
- "emails": [
- "jane@example1.com",
- "jane@example2.com"
], - "disabled": false,
- "created_usec": 1632022665732239,
- "is_robot": false,
- "affinity": 0.43,
- "chat_thread_id": "adHAAAKik9A",
- "desktop_folder_id": "AGWAOAhT3qk",
- "archive_folder_id": "BGWAOAhT3qk",
- "starred_folder_id": "CGWAOAhT3qk",
- "private_folder_id": "DGWAOAhT3qk",
- "trash_folder_id": "EGWAOAhT3qk",
- "shared_folder_ids": [
- "FGWAOAhT3qk",
- "GGWAOAhT3qk"
], - "group_folder_ids": [
- "HGWAOAhT3qk",
- "IGWAOAhT3qk"
]
}
Bulk variant of the Get User endpoint. Returns an object with the passed in user IDs or emails as properties and user objects as values. If a user ID or email is not found, then its value will be an error message instead.
USER_READ
) ids required | string A comma-separated list of either emails or user IDs. Must not exceed 1000 emails or user IDs. Note: Email-based lookups return information about a user from only the same company as the caller. That's the company of the person who created the API key associated with your provided access token. |
sort_by | string Default: "asc" Enum: "title" "created_usec" "updated_usec" Determines which field to sort the |
sort_order | string Enum: "asc" "desc" Determines what order to sort the |
{- "UTUAEAiZl6B": {
- "name": "John Doe",
- "emails": [
- "john.doe@example.com"
], - "id": "UTUAEAiZl6B",
- "created_usec": 1631916773945747,
- "is_robot": false,
- "affinity": 0,
- "disabled": false
}, - "jane.doe@example.com": {
- "name": "Jane Doe",
- "id": "TTUAEAiZl6B",
- "is_robot": false,
- "affinity": 0.36
}
}
Gets the read-only status of users.
USER_READ
) user_ids | Array of strings [ 1 .. 1000 ] items Example: user_ids=SSSAEAOPHIA,QUEAEAENBEY A comma separated list of user IDs. |
{- "read_only": [
- "string"
], - "non_read_only": [
- "string"
], - "not_found": [
- "string"
]
}
Updates the provided user. If the authenticated user is a bot user, users of the same company can be updated. Otherwise, only the authenticated user can be updated. Currently only supports updating the user's profile picture.
USER_MANAGE
) Content-Type | string Example: application/x-www-form-urlencoded |
user_id | string The ID or email address of the user to update. If not provided, the authorized user's ID is used by default. |
picture | string <binary> The picture to use as the user's profile picture. One of
|
picture_url | string The URL to the picture to use as the user's profile
picture. One of |
sort_by | string Default: "asc" Enum: "title" "created_usec" "updated_usec" Determines which field to sort the |
sort_order | string Enum: "asc" "desc" Determines what order to sort the |
{- "id": "UTUAEAiZl6B",
- "name": "Jane Doe",
- "company_id": "IMbAcASGu56",
- "emails": [
- "jane@example1.com",
- "jane@example2.com"
], - "disabled": false,
- "created_usec": 1632022665732239,
- "is_robot": false,
- "affinity": 0.43,
- "chat_thread_id": "adHAAAKik9A",
- "desktop_folder_id": "AGWAOAhT3qk",
- "archive_folder_id": "BGWAOAhT3qk",
- "starred_folder_id": "CGWAOAhT3qk",
- "private_folder_id": "DGWAOAhT3qk",
- "trash_folder_id": "EGWAOAhT3qk",
- "shared_folder_ids": [
- "FGWAOAhT3qk",
- "GGWAOAhT3qk"
], - "group_folder_ids": [
- "HGWAOAhT3qk",
- "IGWAOAhT3qk"
]
}
Returns a websocket URL to connect to. The URL may expire if no connection is initiated within 60 seconds.
Each event sent through the websocket is a JSON object with a type indicating what happened.
type
- What type of event this packet represents. The list of
types include the following:
message
- A new message was sent, includes message, user, and
thread.heartbeat
- Periodically sent to keep the connection open.alive
- Reply sent if the client sends {"type": "heartbeat"}.error
- Sent in response to any unrecognized command, includes
debug.message
- A Quip message in the format described in
Get Recent Messages.
user
- An object containing the ID and name of the user who sent
the message.
thread
- An object containing the ID and title (if any) of the
thread the message was sent on.
debug
- A string with additional debug information.
{
"type": "heartbeat"
}
{
"type": "alive"
}
{
"type": "error",
"debug": "Unsupported command."
}
USER_READ
) {- "url": "wss://listen0.quip.com:443/platform/listen/0?t=1",
- "user_id": "KaDAEAinU0V"
}