A common use case for the Marketo API is to trigger the sending of transactional emails to specific records via the Request Campaign API call. You can find an example covering this use case with the SOAP API here. There are a few configuration requirements within Marketo in order to execute the required call with … Continue reading “Sending Transactional Emails with the Marketo REST API: Part 1”
Tag: API
June 2015 Release Updates
REST API Company API New company endpoints have been introduced that allow you to programmatically list, describe, and CRUD the data residing within a Marketo company object. Note: Role permissions were added to provide access to the Program endpoints: Read-Only Company, Read-Write Company. If your API user role predates the release of the Company APIs, … Continue reading “June 2015 Release Updates”
May 2015 Release Updates
REST API Opportunity API. New opportunity endpoints have been introduced that allow you to programmatically list, describe, and CRUD the data residing within a Marketo opportunity object. Note: Role permissions were added to provide access to the Opportunity endpoints: Read-Only Opportunity, Read-Write Opportunity. If your API user role predates the release of the Opportunity APIs, then you … Continue reading “May 2015 Release Updates”
Synchronizing Email Unsubscribes Across Instances
Do you manage multiple instances of Marketo? Keeping lead information synchronized across instances can be challenging. Here is a way to sync email unsubscribes across instances using a webhook that calls an external web service. The external web service loops through each instance looking for the known lead that triggered the unsubscribe event. When a … Continue reading “Synchronizing Email Unsubscribes Across Instances”
April 2015 Release Updates
Marketo Mobile Engagement SDK v0.3.2 Marketo now includes marketing automation and user engagement for mobile apps. Installing the Marketo Mobile SDK into your iOS or Android app allows Marketers to listen for in app events and send relevant push notifications. REST API Enhancements Custom Objects New custom object endpoints have been introduced that allow you … Continue reading “April 2015 Release Updates”
March 2015 Release Updates
The Marketo REST Asset API was released in the March 2015 release. This API allows to access Marketo’s file, folder, token, email, and email template objects. Note that two role permissions were added to provide access to the Asset API endpoints: Read-Only Assets, Read-Write Assets. If your API user role predates the release of the … Continue reading “March 2015 Release Updates”
Store a Second Email Address for a Lead
Let’s say you want to change a lead’s score in Marketo using the APIs. This is possible to do with the REST API using the Create/Update Lead endpoint. If you want to store more than one email on a lead record, you would need to create a custom field, and store the second email there. … Continue reading “Store a Second Email Address for a Lead”
Change a Lead’s Score via the REST API
Let’s say you want to change a lead’s score in Marketo using the APIs. This is possible to do with the REST API using the Create/Update Lead endpoint. Below is a code sample in Ruby that shows how to make this call.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
require 'rest_client' require 'json' #Build request URL #Replace AAA-BBB-CCC with your Marketo instance marketo_instance = "https://AAA-BBB-CCC.mktorest.com" endpoint = "/rest/v1/leads.json" #Replace with your access token auth_token = "?access_token=" + "ac756f7a-d54d-41ac-8c3c-f2d2a39ee325:ab" request_url = marketo_instance + endpoint + auth_token #Build request body data = { "action" => "updateOnly", "input" => [ { "email" => "example@email.com", "leadScore" => "30" } ] } #Make request response = RestClient.post request_url, data.to_json, :content_type => :json, :accept => :json #Returns Marketo API response puts response |
In the JSON body of the request, we specify updateOnly as the … Continue reading “Change a Lead’s Score via the REST API”
Using the Marketo REST API with Boomi: Getting and Deleting Leads from a Static List
In part 1 of this series, I discussed how it was possible to start using the REST API through Boomi with the Boomi HTTP connector, specifically getting the authentication token needed to access the REST API, and storing it in a Process Variable. Next up, we’ll begin making calls into Marketo, and in this installment, … Continue reading “Using the Marketo REST API with Boomi: Getting and Deleting Leads from a Static List”
Marketo SOAP API Tips and Tricks
NOTE: This is a guest blog post. Ed Blachman is a Senior Architect at TIBCO Software, a well-known vendor of enterprise software. Ed is working on products that allow what Gartner calls “citizen developers” to integrate the cloud services they use without needing to do any programming themselves. Marketo’s SOAP API is a powerful tool … Continue reading “Marketo SOAP API Tips and Tricks”