Collection of requests in Postman created during the learning process. Includes dynamic variables, tests, Postman environment.
App links : ClickUp, ClickUp API Docs
This README also documents some issues that I found during testing.
You can download Postman using this link. Postman is an API client that makes it easy to test HTTP requests.
Then you need to import collection and environment from this repository into Postman. Please clone the repo, select Import in your Postman's workspace and choose collection and environment files. You're all set!
Well.. almost 😉 Please read Authentication part of this README to start sending requests.
This collection interacts with following resources:
Attachments 🟣 Authorization 🟣 Checklists 🟣 Dependencies 🟣 Lists 🟣 Spaces 🟣 Tasks 🟣 Folders
Right now collection contains 66 requests. The whole run takes less than 30 seconds.
✅ you can run specific request, folder or the whole collection
✅ each folder creates its own test data and deletes them at the end
✅ environment variables are used to keep data related to environment (like url, API key)
✅ collection variables are used to keep resources data so they can be passed between requests
✅ each request is tested for response code and time. I decided not to write more specific tests (like comparing request body and response body data) in Postman. I believe there are better tools for that purpose.
ClickUp offers 2 ways of autentication:
- API Key
- Oauth 2.0
My Postman collection can be used either with API Key or Oauth 2.0 tokens.
To generate your API Key, login to ClickUp and navigate to Profile -> Apps. Then copy and paste the key as value of environment variable key
. After saving the environment all requests should be correctly authenticanted.
Generating Oauth 2.0 token is more complicated. Here are the steps:
- In ClickUp navigate to Integrations and select ClickUp API
- Enter App name of your choice and Redirect URI
https://oauth.pstmn.io/v1/browser-callback
- Copy and paste Client ID and Client Secret into matching environment variables
- You need also authorization code from the user (a.k.a. you) to get Oauth 2.0 token on their account. To get the code, paste in the browser
https://app.clickup.com/api?client_id={YOUR_CLIENT_ID}&redirect_uri=https://oauth.pstmn.io/v1/browser-callback
and select Connect workspace. When you approve, you will be redirected to success page and your code will be available in URL aftercode=
. Copy and paste it as value of environment variableauthorizationCode
- Finally, to get token, you need to send reqeust
Get Access Token
from Authorization folder. Token from the body will be automatically saved as environment variableoauthToken
. To start using Oauth 2.0 please change Authorization type on collection level. I set API Key auth as default one as it's easier to obtain.
ClickUp API V2 docs describes only POST attachment
. From the UI, user can also view, delete, change the attachment's name. After some digging I managed to include these methods in my collection as well. They have different base URL and don't use API Key or Oauth token to authenticate. It appears that they use token set by cu_jwt
cookie during login. Unfortunately I was not able to recreate login action in Postman due to usage of Recaptcha V3. If you want to run these 3 requests, please add your cu_jwt
cookie in collection variables.
For some requests you need to provide team ID. You will find it as part of the URL after login. This value should be copied and pasted in environment variable teamId
During creation of this collection I found several API bugs. I will not post here any details as I don't find it fair to the company. So far I reported 3 of them to ClickUp's Tech Support.