Connect the integration
Connecting your Marketo account to Relevance AI uses API Tool Steps with 2-legged OAuth 2.0 authentication. Follow these steps to set up the connection:Get your Marketo API credentials
- Client ID
- Client Secret
- REST API Endpoint
- Log into your Marketo instance as an administrator
- Navigate to Admin > Integration > LaunchPoint
- Click New > New Service
- Configure the service:
- Display Name: Enter a name (e.g., “Relevance AI Integration”)
- Service: Select “Custom”
- Description: Optional description
- API Only User: Select an API-only user (or create one in Admin > Users & Roles)
- Click Create
- Click View Details on your newly created service
- Copy the Client ID and Client Secret
- Navigate to Admin > Integration > Web Services
- Find the REST API section
- Copy the Endpoint URL (e.g.,
https://123-ABC-456.mktorest.com/rest)
Store credentials in Relevance AI
Test your connection
Tool steps for Marketo
The Marketo integration provides access to Marketo’s comprehensive REST API through the API Call tool step, enabling you to interact with all Marketo endpoints and functionality.Marketo API Call
Marketo API Call
Use the Marketo API Call tool step (Advanced)
The Marketo API Call tool step gives you complete access to Marketo’s REST API, allowing you to implement any functionality available in the API, including lead management, campaign operations, email program analytics, and more.How to use the Marketo API Call tool step
Create a new tool
Add the Marketo API Call tool step
- Scroll down to Tool-steps
- Search for “Marketo API Call” in the tool step search bar
- Add the Marketo API Call tool step to your workflow
Configure authentication
- Client ID: Your Marketo API Client ID
- Client Secret: Your Marketo API Client Secret
- REST API Endpoint: Your Marketo REST API endpoint URL
Configure the API endpoint
- Method: Select the HTTP method (GET, POST, DELETE)
- Endpoint: Enter the API endpoint path (e.g.,
/rest/v1/leads.json) - Query Parameters: Add any required query parameters
- Body: Add any required request body data (for POST requests)
Test your API call
Example: Get Leads from Marketo
Here’s a practical example of using the Marketo API Call tool step to retrieve leads: API Endpoint:GET /rest/v1/leads.json
Configuration:
- Uses the GET method to retrieve leads
- Filters leads by email address
- Returns lead information including custom fields
Example: Trigger a Campaign
API Endpoint:POST /rest/v1/campaigns/{campaignId}/trigger.json
Configuration:
- Uses the POST method to trigger a campaign
- Specifies the campaign ID in the endpoint
- Provides lead IDs to trigger the campaign for
Common Marketo API endpoints
Here are some commonly used Marketo API endpoints you can use with the Marketo API Call tool step:Leads
Leads
- Get leads:
GET /rest/v1/leads.json?filterType={filterType}&filterValues={filterValues} - Create/update leads:
POST /rest/v1/leads.json - Get lead by filter type:
GET /rest/v1/leads.json?filterType=id&filterValues=1,2,3 - Get lead activities:
GET /rest/v1/activities/leadchanges.json
Campaigns
Campaigns
- Get campaigns:
GET /rest/v1/campaigns.json - Trigger campaign:
POST /rest/v1/campaigns/{id}/trigger.json - Schedule campaign:
POST /rest/v1/campaigns/{id}/schedule.json - Get campaign by ID:
GET /rest/v1/campaigns/{id}.json
Email Programs
Email Programs
- Get email programs:
GET /rest/asset/v1/programs.json?type=email - Get email content:
GET /rest/asset/v1/email/{id}/content.json - Get email by name:
GET /rest/asset/v1/email/byName.json?name={name} - Approve email:
POST /rest/asset/v1/email/{id}/approveDraft.json
Statistics & Analytics
Statistics & Analytics
- Get email program stats:
GET /rest/asset/v1/program/{id}/stats.json - Get landing page stats:
GET /rest/asset/v1/landingPage/{id}/stats.json - Get email performance:
GET /rest/v1/activities/emailbounced.json - Get email opens:
GET /rest/v1/activities/emailopened.json
Lists
Lists
- Get lists:
GET /rest/v1/lists.json - Add leads to list:
POST /rest/v1/lists/{listId}/leads.json - Remove leads from list:
DELETE /rest/v1/lists/{listId}/leads.json - Check list membership:
GET /rest/v1/lists/{listId}/leads.json
Example use cases
Here are some ways you can leverage the Marketo integration with your agents:Campaign Performance Monitoring
Campaign Performance Monitoring
Lead Database Analytics
Lead Database Analytics
Email Metrics Dashboard
Email Metrics Dashboard
Lead Scoring Automation
Lead Scoring Automation
Campaign Trigger Automation
Campaign Trigger Automation
Lead Enrichment Workflow
Lead Enrichment Workflow
Marketing ROI Calculator
Marketing ROI Calculator
Automated Reporting Agent
Automated Reporting Agent
Frequently asked questions (FAQs)
How do I get Marketo API credentials?
How do I get Marketo API credentials?
- Log into Marketo as an administrator
- Go to Admin > Integration > LaunchPoint
- Create a new service with type “Custom”
- Assign an API-only user to the service
- View the service details to get your Client ID and Client Secret
- Get your REST API Endpoint from Admin > Integration > Web Services
What are Marketo's API rate limits?
What are Marketo's API rate limits?
- Standard limit: 100 calls per 20 seconds
- Daily quota: Varies by subscription (typically 10,000-50,000 calls per day)
How does authentication work with the Marketo API?
How does authentication work with the Marketo API?
- Requests an access token from Marketo’s identity service
- Includes the Bearer token in the Authorization header of API requests
- Handles token refresh when tokens expire (typically after 3600 seconds)
Why am I getting authentication errors?
Why am I getting authentication errors?
- Invalid credentials: Double-check your Client ID, Client Secret, and REST API Endpoint
- API user permissions: Ensure the API user assigned to your LaunchPoint service has appropriate permissions
- Expired tokens: The tool step should handle token refresh automatically, but network issues can sometimes cause problems
- Incorrect endpoint URL: Make sure you’re using the correct REST API endpoint for your Marketo instance
Can I retrieve historical campaign data?
Can I retrieve historical campaign data?
- Use the Activities API to get historical lead activities
- Retrieve email program statistics for past campaigns
- Access landing page performance data
- Query lead changes and updates over time
What's the difference between Smart Campaigns and Email Programs?
What's the difference between Smart Campaigns and Email Programs?
- Smart Campaigns: Automated workflows that can include multiple steps, triggers, and actions. Use the Campaigns API endpoints to trigger or schedule these.
- Email Programs: Specifically designed for email marketing with built-in A/B testing and reporting. Use the Email Programs API endpoints to retrieve content and statistics.
How do I handle pagination in API responses?
How do I handle pagination in API responses?
- Check the response for
nextPageTokenin the result - Use the token in subsequent requests with the
nextPageTokenparameter - Continue until no
nextPageTokenis returned
Can I create custom fields through the API?
Can I create custom fields through the API?

