Overview
The Scope3 Agentic API 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.
Connection Methods
REST API
Standard HTTP REST API for traditional integrations:| Environment | Buyer Base URL | Storefront Base URL |
|---|---|---|
| Production | https://api.agentic.scope3.com/api/buyer | https://api.agentic.scope3.com/api/storefront |
| Staging | https://api.agentic.staging.scope3.com/api/buyer | https://api.agentic.staging.scope3.com/api/storefront |
| Local | http://localhost:4001/api/buyer | http://localhost:4001/api/storefront |
MCP (Model Context Protocol)
For AI agent integrations using JSON-RPC 2.0:| Environment | Buyer MCP Endpoint | Storefront MCP Endpoint |
|---|---|---|
| Production | https://api.agentic.scope3.com/mcp/buyer | https://api.agentic.scope3.com/mcp/storefront |
| Staging | https://api.agentic.staging.scope3.com/mcp/buyer | https://api.agentic.staging.scope3.com/mcp/storefront |
| Local | http://localhost:4001/mcp/buyer | http://localhost:4001/mcp/storefront |
These URLs always resolve to the latest stable API version.
Available MCP Tools
The Buyer MCP endpoint exposes 3 tools:| Tool | Purpose |
|---|---|
health | Check API health and verify connectivity |
ask_about_capability | Query the skill documentation to understand available endpoints |
api_call | Make authenticated REST API calls to any endpoint |
ask_about_capability to learn about available endpoints, then use api_call to execute requests.
Authentication
Scope3 supports two authentication methods for connecting agents:OAuth (Recommended for Claude and ChatGPT)
When connecting via Claude Connectors or ChatGPT MCP Connectors, authentication is handled automatically through OAuth. Users log in with their Scope3 credentials and the agent receives a secure token — no API keys to manage.API Keys
For programmatic integrations, Claude Code, Cursor, and custom agents, use an API key:- Visit agentic.scope3.com/user-api-keys
- Generate a new API key (starts with
scope3_) - Pass it via the
Authorization: Bearer <key>header
Connecting AI Agents
Claude Connector (Claude.ai Team / Enterprise)
This is the recommended way to connect Claude to Scope3. It provides OAuth-based authentication and works across both Claude.ai (browser) and Claude Desktop automatically.
- Go to claude.ai → Admin Settings → Integrations → MCP Connectors
- Click Add Connector
- Enter the MCP endpoint URL:
- Production:
https://api.agentic.scope3.com/mcp/buyer - Staging:
https://api.agentic.staging.scope3.com/mcp/buyer
- Production:
- Name it (e.g., “Scope3 Agentic API”)
- Save the connector — it is now available to all members in your organization
- Go to claude.ai → Settings → Integrations → MCP Connectors
- Find the Scope3 connector and click Connect
- Log in with your Scope3 credentials when prompted (OAuth)
- Start chatting! Ask Claude: “List my advertisers” or “Create a performance campaign”
Claude Desktop (Personal / Manual Setup)
If you don’t have a Claude Team or Enterprise plan, you can connect Claude Desktop directly using an API key:- Production
- Local Development
Edit your Claude Desktop config file:Restart Claude Desktop after saving.
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Claude Code (CLI)
- Production
- Local Development
ChatGPT
- MCP Connector
- Custom GPT
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/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 statusask_about_capability- Learn about available endpointsapi_call- Make authenticated API calls
- Test with: “Use ask_about_capability to learn how to list advertisers”
Cursor
- Production
- Local Development
Configure Cursor with production API:
- Open Cursor Settings → MCP tab
- Add a new MCP server:
- Name:
scope3 - URL:
https://api.agentic.scope3.com/mcp/buyer - Headers:
Authorization: Bearer your-api-key
- Name:
- Restart Cursor
- In chat, ask: “Use Scope3 tools to list advertisers”
Testing Locally
Testing with curl (REST API)
- Production
- Local Development
Testing MCP with curl
- Production
- Local Development
What Your Agents Can Do
Once connected, AI agents use the 3 MCP tools to interact with the full REST API:The Three Tools
| Tool | Purpose | Example |
|---|---|---|
health | Verify connectivity | Check if the API is responding |
ask_about_capability | Learn about endpoints | ”How do I create a campaign?” |
api_call | Execute API requests | POST /api/buyer/campaigns |
Example Workflows
Advertiser Management:- Agent asks
ask_about_capability“How do I list advertisers?” - Agent uses
api_callwithGET /api/buyer/advertisers
- Agent asks
ask_about_capability“How do I create a performance campaign?” - Agent learns about required fields (advertiserId, type, performanceConfig, etc.)
- Agent uses
api_callwithPOST /api/buyer/campaignsincluding the proper body
- “First use ask_about_capability to learn about creating advertisers, then create one called Acme Corp”
- “Check what campaigns exist for advertiser 24”
- “Create a $100K performance campaign optimized for SALES”
- “Launch the campaign we just created”
Notifications
The Scope3 API includes a notification system that surfaces events about your resources — campaigns going unhealthy, creatives syncing, agents registering, etc. Unread notifications are automatically included inhelp and ask_about_capability tool responses.
To ensure your AI agent proactively surfaces notifications to users, add the following to your agent’s instructions:
- Claude Desktop
- Claude Code
- API / Custom Agent
- ChatGPT Custom GPT
Create a Project in Claude Desktop and add this to the project instructions:
| Operation | Method | Endpoint |
|---|---|---|
| List notifications | GET | /api/buyer/notifications |
| Mark as read | POST | /api/buyer/notifications/{id}/read |
| Mark as acknowledged | POST | /api/buyer/notifications/{id}/acknowledge |
| Mark all as read | POST | /api/buyer/notifications/read-all |
Building Custom Agents
Node.js Integration
Python Integration
MCP Client Example
Troubleshooting
Common Issues
Connection refused on localhost
Connection refused on localhost
Make sure your local API server is running:Verify it’s listening on port 4001.
401 Unauthorized
401 Unauthorized
Claude Connector not appearing
Claude Connector not appearing
- Verify your admin has added the connector in Admin Settings → Integrations → MCP Connectors
- Check that you’re on a Claude Team or Enterprise plan
- Go to Settings → Integrations → MCP Connectors and click Connect
- If prompted, complete the OAuth login with your Scope3 credentials
Claude Desktop not connecting (manual setup)
Claude Desktop not connecting (manual setup)
- Verify your
claude_desktop_config.jsonis valid JSON - Restart Claude Desktop completely (quit and reopen)
- Check Claude Desktop logs for errors
ChatGPT connector not authenticating
ChatGPT connector not authenticating
ChatGPT only supports OAuth authentication for MCP connectors. Make sure:
- You selected OAuth when adding the connector
- You completed the Scope3 login flow
- Your Scope3 account has access to the API
MCP session expired
MCP session expired
MCP sessions have a timeout. Initialize a new session:
Next Steps
Quick Start
Get started with the API in 5 minutes.
API Reference
Explore all available endpoints and tools.
Authentication
Learn about API keys and OAuth authentication.