The Scope3 Agentic API v2 is built from the ground up for AI agents, providing both programmatic REST access and natural language interfaces through the Model Context Protocol (MCP). Whether you’re building agents or using them, Scope3 makes advertising operations conversational and intelligent.
REST API
Traditional HTTP REST API for programmatic integrations with standard HTTP methods.
MCP Protocol
Connect AI agents (Claude, ChatGPT, etc.) to manage campaigns through natural conversation.
# Add the production MCP serverclaude mcp add --transport http scope3-buyer https://api.agentic.scope3.com/mcp/v2/buyer# Set your API keyexport SCOPE3_API_KEY="your-api-key-here"# Start Claude Codeclaude
Then ask: “Use ask_about_capability to learn how to list advertisers, then use api_call to list them”
Copy
Ask AI
# Add the local MCP serverclaude mcp add --transport http scope3-buyer-local http://localhost:4001/mcp/v2/buyer# Set your local API keyexport SCOPE3_API_KEY="your-local-api-key"# Start Claude Codeclaude
Then ask: “Use ask_about_capability to learn how to list advertisers, then use api_call to list them”
Important: ChatGPT MCP connectors can only send OAuth Bearer tokens. Custom headers like x-scope3-api-key are not supported. You must use OAuth authentication.
Production (MCP Connector)
Production (Custom GPT)
Local Development (via ngrok)
Connect ChatGPT to Scope3 via MCP:
Go to ChatGPT → Settings → MCP Connectors
Click Add Connector
Enter MCP Server URL: https://api.agentic.scope3.com/mcp/v2/buyer
Select OAuth as the authentication method
Complete the Scope3 login flow when prompted
Once connected, you’ll have access to 3 tools:
health - Check API status
ask_about_capability - Learn about available endpoints
api_call - Make authenticated API calls
Test with: “Use ask_about_capability to learn how to list advertisers”
Local development with ChatGPT requires ngrok for HTTPS tunneling and OAuth callback support.
Step 1: Expose your local server
Copy
Ask AI
# Install ngrok if you haven'tbrew install ngrok # macOS# or download from https://ngrok.com/download# Start your local API servercd apps/api && pnpm dev# In another terminal, create a tunnelngrok http 4001
ngrok will give you a URL like https://abc123.ngrok.ioStep 2: Configure OAuth redirectAdd your ngrok URL to the allowed OAuth redirect URIs in your local environment.Step 3: Add MCP Connector
Go to ChatGPT → Settings → MCP Connectors
Click Add Connector
Enter your ngrok MCP URL: https://abc123.ngrok.io/mcp/v2
Select OAuth and complete the login flow
Test with: “List all my advertisers”
ngrok URLs change each time you restart. You’ll need to update your MCP connector URL each time.
For persistent local testing, consider ngrok’s paid plans for stable URLs.
import { Client } from '@modelcontextprotocol/sdk/client/index.js';import { HttpClientTransport } from '@anthropic-ai/mcp-client-http';const transport = new HttpClientTransport({ url: 'https://api.agentic.scope3.com/mcp/v2/buyer', headers: { 'Authorization': `Bearer ${process.env.SCOPE3_API_KEY}` }});const client = new Client({ name: 'my-agent', version: '1.0.0' });await client.connect(transport);// List available tools (health, ask_about_capability, api_call)const tools = await client.listTools();console.log('Available tools:', tools.tools.map(t => t.name));// Check API healthconst health = await client.callTool('health', {});console.log('Health:', health);// Learn about an endpointconst docs = await client.callTool('ask_about_capability', { query: 'How do I create an advertiser?'});console.log('Documentation:', docs);// Make an API callconst result = await client.callTool('api_call', { method: 'GET', endpoint: '/api/v2/buyer/advertisers'});console.log('Advertisers:', result);