Skip to main content
This guide explains how to set up OAuth 2.1 authentication for general-purpose MCP access to the Inflection platform.

About This Guide

Scope of This Documentation

This guide covers general-purpose OAuth 2.1 authentication for:
  • Custom integrations and applications
  • Third-party automation tools (n8n, Zapier, Make, etc.)
  • API testing tools (Postman, Insomnia, etc.)
  • Custom scripts and internal tooling
  • Calling the Inflection Developer API

MCP Authentication (Claude, ChatGPT, etc.)

If you’re looking to connect Inflection with AI assistants via MCP (Model Context Protocol), such as:
  • Claude (Anthropic)
  • ChatGPT (OpenAI)
Please refer to the specific MCP Integration Guide for ChatGPT and Claude

Overview

Inflection uses OAuth 2.1 with PKCE (Proof Key for Code Exchange) for secure API authentication. This modern authentication standard provides enhanced security for both web and native applications.

Key Features

When to Use This Authentication Method

Prerequisites

Before you begin, ensure you have:
  • Access to the Inflection Settings panel
  • A redirect URL for your application (can be localhost for testing)
  1. Log in to your Inflection account
  2. Navigate to SettingsConnected Apps
  3. Click Create App Credentials
  4. Fill in the required fields:
  1. Click Connect to create the app

Important: Save Your Credentials

After creating the app, you will receive:
  • Client ID - A public identifier for your app
  • Client Secret - A confidential key (keep this secure!)
Store these credentials securely. The Client Secret will not be shown again.
Use these endpoints for authentication (you can also discover these via the well-known endpoint):
OAuth 2.1 requires PKCE for enhanced security. Here’s how the flow works:

3.1 Generate PKCE Parameters

Before starting the flow, generate these values:
  1. Code Verifier: A cryptographically random string (43-128 characters)
  2. Code Challenge: Base64-URL encoded SHA256 hash of the code verifier
Example (JavaScript):

3.2 Request Authorization

Direct the user to the authorization URL:

3.3 Handle the Callback

After the user authorizes your app, they will be redirected to your redirect URL with an authorization code:

3.4 Exchange Code for Tokens

Make a POST request to exchange the authorization code for tokens:

3.5 Token Response

A successful response returns:
Include the access token in the Authorization header for all API requests:
The same token works on the Developer API, and it acts as the user who authorized the app (see Authentication):
When your access token expires, use the refresh token to get a new one:
  1. Create a new request in Postman
  2. Go to the Authorization tab
  3. Select OAuth 2.0 as the type
  4. Configure with these settings:
  1. Click Get New Access Token
  2. Complete the login in your browser
  3. Use the token to make API requests
Note: Ensure the Callback URL (https://oauth.pstmn.io/v1/browser-callback) is added as a Redirect URL in your Connected App settings.
Prerequisite: Make sure you have created an app in inflection for n8n (shared above)n8n HTTP request node configuration
  1. Use the MCP Client (If you want to use the MCP) or create and HTTP Request (If you want to use an API)
  2. Set Authentication to MCP OAUTH2 or Generic Credential Type (OAuth2) Selecting the OAuth2 authentication credential type in n8n
  3. Configure a new OAuth2 credential:
n8n OAuth2 credential configuration fields
  1. Click Connect to authorize Connect button to authorize the n8n OAuth2 credential
  2. n8n will automatically handle token refresh
  1. Never expose your Client Secret in client-side code or public repositories
  2. Use HTTPS for all redirect URLs in production
  3. Store tokens securely - use encrypted storage or secure vaults
  4. Implement token refresh before expiration to ensure uninterrupted access
  5. Use short-lived access tokens and rely on refresh tokens for extended sessions
  6. Validate redirect URIs match exactly what’s registered in your app

Tips

  • Authorization codes are valid for 5 minutes and are single-use, exchange them promptly, as reusing a code invalidates the entire session
  • If using Postman, ensure the callback URL in your Connected App matches Postman’s callback URL
  • For local development, http://localhost redirect URLs are acceptable