Last time, we took a look at triggering transactional emails from outside of Marketo. This week we’ll be looking at how to pass dynamic content to our emails via the Request Campaign API call. Request Campaign not only allows the triggering of emails externally, but you can also replace the content of My Tokens within … Continue reading “Sending Transactional Emails with the Marketo REST API: Part 2, Custom Content”
Tag: REST
July 2015 Release Updates
REST API Sales Person API New sales person endpoints have been introduced that allow you to programmatically list, describe, and CRUD the data residing within a Marketo sales person object. In addition, a sales person can be assigned to a lead, opportunity, or company. This is done by specifying an “externalSalesPersonId” attribute when calling the Create/Update/Upsert … Continue reading “July 2015 Release Updates”
Sending Transactional Emails with the Marketo REST API: Part 1
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”
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”