Connecting to the REST API

To connect to Marketo using the REST API the OAuthClientId, OAuthClientSecret, and RESTEndpoint properties, under the OAuth and REST Connection sections, must be set to valid Marketo user credentials.

OAuth Authentication

OAuth Authentication with Marketo requires a custom service with REST API access.

Creating a Custom Service

A custom service is required to connect to Marketo using the REST API. The below steps will guide you in creating a custom service.

  1. Navigate to the admin area of your Marketo application.
  2. Click Users & Roles in the Security section.
  3. Select the Roles tab and click New Role to create a new Role.
  4. Enter a Role Name and select the permissions for the Role. The Access API permissions are specific to the REST API.
  5. Now that an API Role is created, select the Users tab and click Invite New User.
  6. Enter the new user information and select the role that was just created with API access. The API Only option can be selected to denote the user as an API Only user.
  7. Now that a new user has been created, a new service will need to be created. Click the LaunchPoint option (Admin -> Integration -> LaunchPoint).
  8. Click New Service.
  9. Select the Custom service type and enter a display name and description.
  10. Select the user you created.

Obtaining the OAuthClientId and OAuthClientSecret Values

To obtain the OAuthClientId and OAuthClientSecret, navigate to the LaunchPoint option on the Admin area. Click the View Details link for the desired service. A window containing the authentication credentials is displayed.

Obtaining the REST Endpoint URL

The RESTEndpoint can be found on your Marketo Admin area on the Integration -> Web Services option in the REST API section. Note the Identity Endpoint will not be needed.