{
  "opencollection": "1.0.0",
  "info": {
    "name": "WorkOS admin-portal pipes API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "pipes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Authorization URL",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.workos.com/data-integrations/:slug/authorize",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path",
                "description": "The slug identifier of the provider (e.g., `github`, `slack`, `notion`)."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Generates an OAuth authorization URL to initiate the connection flow for a user. Redirect the user to the returned URL to begin the OAuth flow with the third-party provider."
        },
        {
          "info": {
            "name": "Get an Access Token for a Connected Account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.workos.com/data-integrations/:slug/token",
            "params": [
              {
                "name": "slug",
                "value": "",
                "type": "path",
                "description": "The identifier of the integration."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Fetches a valid OAuth access token for a user's connected account. WorkOS automatically handles token refresh, ensuring you always receive a valid, non-expired token."
        }
      ]
    }
  ],
  "bundled": true
}