{
  "opencollection": "1.0.0",
  "info": {
    "name": "ClickUp OAuth API",
    "version": "2.0"
  },
  "items": [
    {
      "info": {
        "name": "OAuth",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get access token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.clickup.com/api/v2/oauth/token",
            "params": [
              {
                "name": "client_id",
                "value": "",
                "type": "query",
                "description": "The OAuth app client ID."
              },
              {
                "name": "client_secret",
                "value": "",
                "type": "query",
                "description": "The OAuth app client secret."
              },
              {
                "name": "code",
                "value": "",
                "type": "query",
                "description": "The authorization code received from the authorization step."
              }
            ]
          },
          "docs": "Exchanges an authorization code for an access token. This is the second step in the OAuth 2.0 authorization code flow. The client ID, client secret, and authorization code must be provided."
        }
      ]
    },
    {
      "info": {
        "name": "Authorization",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get authorized user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.clickup.com/api/v2/user",
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieves information about the currently authenticated user, including their ID, username, email, and profile picture. This endpoint requires a valid access token."
        }
      ]
    }
  ],
  "bundled": true
}