In this guide, we’ll use both Quip’s Automation API and Admin API to edit a section of a document.
This guide shows how to find and edit a specific section of a Quip document (like a table cell) using Quip's APIs and Postman, a free tool for testing API calls. You'll first use the Automation API to locate the section, then use the Admin API to edit it.
The Automation API uses a personal access token tied to your own Quip user and is limited to content your user can already access.
Step 1 - Create a new Quip document with a table. In one of the cells, place the word "Before".
Step 2 - Examine the URL of your new document. The value in the URL is the document's secret path, not its Thread ID — the two are different identifiers. In this example, the secret path is bseaAILH8Pt9. You'll use this secret path with the "Get a thread" endpoint of Quip's Automation API to retrieve the document's actual Thread ID.
Step 3 - To make Automation API calls, you'll need to generate a personal access token that provides API access to your own Quip account. Do this by visiting https://quip.com/dev/token.
Step 4 - Click Get Personal Access Token to generate a token. Copy this token — you'll need it in Step 6. Never share this token with anyone — not even a Salesforce or Quip representative.
Step 5 - Download Postman. In Postman, click New and select Request. If prompted, you can name the request "Get a thread".
Step 6 - Configure the request:
At the top, next to GET, paste in the URL https://platform.quip.com/1/threads/ID — replace ID with your document's secret path from Step 2.
In the Authorization tab, set Type to OAuth 2.0.
Set Add Authorization data to to Request Headers.
For Access Token, paste in your token from Step 4.
Step 7 - Click the blue Send button to submit your API query. Quip's response will show below, including the document's actual Thread ID, the author's ID, the document type (document vs. sheet), various timestamps, and the full HTML body of the document. Note this Thread ID — you'll need it in Step 16, not the secret path from Step 2.
Step 8 - Click the magnifying glass icon and search for the word "Before" — this is the specific table cell in your document. Note the section ID of the cell (a Quip-specific identifier for that piece of content). In the example, the section ID is s:TbUACAI6LgB_TbUACAWHjs6. You'll need this in Step 16.
You just used the Automation API to retrieve a document (called a "thread"). Now that you know your document's Thread ID and the section ID of some text, you can use a second Quip API query to change this text from "Before" to "After". While this edit is possible with the Automation API, this guide uses the Admin API instead, to illustrate the difference between the two.
The Automation API leverages a token tied to your Quip user to make API calls, and is limited to doing things your user can already do. The Admin API uses an API key created by an admin of your Quip site, so you can use it to access content your individual Quip user may not normally have access to. The Admin API also includes additional endpoints that the Automation API doesn't have, such as Delete Message.
Step 9 - Have an admin of your Quip site create an API key by accessing the Quip Admin Console, then going to Settings → Integrations → New API Key. For your testing key, you can enable all permitted scopes. After creating the key, click View next to it to see your Client ID and Client Secret — you'll need these in Step 14.
Step 10 - Your Quip admin will also need to go to Settings → Site Settings and note the Company ID at the top of the page — you'll need it in Step 16.
Step 11 - Scroll down on this same page to the Admin API Users section and click Grant Access. Follow the steps to grant Admin API access to your Quip user.
Step 12 - In Postman, click New and select Request. If prompted, you can name the request "Admin: Edit a thread".
Step 13 - At the top, change GET to POST. Then paste in the URL:
https://platform.quip.com/1/admin/threads/edit-document
Step 14 - In the Authorization tab, set Type to OAuth 2.0. Set Add authorization data to to Request Headers. Expand Configure New Token and fill it out:
Token Name: Postman
Grant Type: Authorization Code
Callback URL: Check the checkbox Authorize using browser
Auth URL: https://platform.quip.com/1/oauth/login
Access Token URL: https://platform.quip.com/1/oauth/access_token
Client ID: Paste this from Step 9.
Client Secret: Paste this from Step 9.
Scope: Leave blank.
State: Leave blank.
Client Authorization: Send credentials in body.
Step 15 - Click Get New Access Token. You'll be redirected to your web browser to authenticate with Quip. Eventually, you should land on a Manage Access Tokens screen. From here, click the Use Token button.
Step 16 - Click into the Body sub-tab and input the required fields to build your API request. Be sure to use your own company_id from Step 10, thread_id from Step 7 (the actual Thread ID, not the secret path from Step 2), and section_id from Step 8.
Step 17 - Click the blue Send button to submit your API query. Quip's response will show below. If all of your inputs are correct, your document should reflect the change. If you encounter any issues, please contact Quip Support and we'll help you through the finish line.
000392356

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.