What can you do with it?
The Marketo API allows you to manage marketing automation campaigns and lead data. You can create and update leads, manage campaigns and programs, track lead activities, handle email communications, work with forms and landing pages, manage custom objects, and implement comprehensive marketing automation workflows.How to use it?
Basic Command Structure
Parameters
Required:action
- The action to perform (get, create, update, delete, trigger, send)entity
- The entity type (lead, campaign, program, email, form, list)id
- Entity ID for specific operations
filter_type
- Filter type for searches (email, id, etc.)filter_values
- Values to filter bylookup_field
- Field to use for lead lookupactivity_type_ids
- Activity types to retrievefields
- Specific fields to returntokens
- Campaign tokens for personalization
Tools
Get Lead by ID
Retrieve a specific lead using their unique ID. Parameters:lead_id
(required) - Lead ID to retrieve
Create or Update Leads
Create new leads or update existing ones based on lookup field. Parameters:action_type
(required) - Action type (createOrUpdate)lookup_field
(required) - Field to use for lookup (email, id)leads
(required) - Array of lead objectsemail
(required) - Lead email addressfirst_name
(optional) - Lead first namelast_name
(optional) - Lead last namecompany
(optional) - Lead companytitle
(optional) - Lead job title
Get Leads by Filter
Retrieve leads using filter criteria like email addresses. Parameters:filter_type
(required) - Filter type (email, id, leadPartitionId)filter_values
(required) - Comma-separated values to filter byfields
(optional) - Specific fields to return
Get Lead Activities
Retrieve lead activities based on activity type IDs. Parameters:activity_type_ids
(required) - Comma-separated activity type IDsnext_page_token
(optional) - Token for paginationlead_ids
(optional) - Specific lead IDs to filter
Add Leads to List
Add leads to a specific static list. Parameters:list_id
(required) - List ID to add leads tolead_ids
(required) - Array of lead IDs to add
Get Campaigns
Retrieve a list of available campaigns. Parameters:program_ids
(optional) - Filter by specific program IDsis_triggerable
(optional) - Filter by triggerable campaigns only
Trigger Campaign
Execute a campaign for specific leads with optional tokens. Parameters:campaign_id
(required) - Campaign ID to triggerlead_ids
(required) - Array of lead IDs to includetokens
(optional) - Array of token objects for personalization
Get Programs
Retrieve a list of marketing programs. Parameters:status
(optional) - Filter by program statusmax_return
(optional) - Maximum number of programs to return
Get Forms
Retrieve a list of forms available in Marketo. Parameters:status
(optional) - Filter by form statusfolder_id
(optional) - Filter by folder ID
Send Sample Email
Send a sample email for testing purposes. Parameters:email_id
(required) - Email ID to sendemail_address
(required) - Recipient email addresstext_only
(optional) - Send text-only versionlead_id
(optional) - Lead ID for personalization
Get Custom Objects
Retrieve custom object definitions. Parameters:names
(optional) - Filter by specific custom object names
Create Custom Object Records
Create or update custom object records. Parameters:custom_object_name
(required) - Custom object API nameaction_type
(required) - Action type (createOrUpdate)dedupe_by
(required) - Deduplication methodrecords
(required) - Array of custom object records
Delete Leads
Delete leads from the Marketo database. Parameters:lead_ids
(required) - Array of lead IDs to delete