Re: Marketo customer can't authenticate via API

Anonymous
Not applicable

Marketo customer can't authenticate via API

Our app has a Marketo integration.  One of our customers (on the Marketo standard plan) is unable to connect Marketo to our app.  When they try to authenticate the API service they created, they keep getting a 401 (Unauthorized) error.  

I have verified that they are following the steps outlined on 
https://community.marketo.com/MarketoArticle?id=kA050000000LJcqCAG  and other articles correctly.  Is there anything else they need to do?
Tags (1)
9 REPLIES 9
Josh_Hill13
Level 10 - Champion Alumni

Re: Marketo customer can't authenticate via API

If all of the codes are correct, then call Support.
Anonymous
Not applicable

Re: Marketo customer can't authenticate via API

I feel like there are a lot of missing pieces to this question.  

Additionally, there doesn't seem to be an error code of 401 for REST API that Marketo will return.   You can view all the error codes we've encountered here: http://developers.marketo.com/documentation/rest/error-codes/
Anonymous
Not applicable

Re: Marketo customer can't authenticate via API

I am guessing the error here is that an acess token is not being included with the request.
 
Anonymous
Not applicable

Re: Marketo customer can't authenticate via API

As more information, the error message is "unauthorized" and description is "No client with requested id: CLIENT_ID."

Since other customers have authenticated successfully, I'm not sure that it's the access token but we'll double check. 

Murtza, I will email you the full response.
Anonymous
Not applicable

Re: Marketo customer can't authenticate via API

I think your token has expired.
I read same document first, and met same issue.
 https://community.marketo.com/MarketoArticle?id=kA050000000LJcqCAG
If your access token is getting from admin=>LaunchPoint=>View Details=>Get Token, that token has expiration time.
Don't use that token, and your app need to make "Get Access Token" call before expire.
See "Authentication" document.
http://developers.marketo.com/documentation/rest/authentication/
Anonymous
Not applicable

Re: Marketo customer can't authenticate via API

Takehiro makes a good point. The access token expires, so I would make sure to reauthenticate to figure out the source of the error.
Anonymous
Not applicable

Re: Marketo customer can't authenticate via API

Thanks Takehiro.  To clarify, we're seeing a "No client with client ID" response when making the GET request for the authentication token, as described in:
http://developers.marketo.com/documentation/rest/authentication/

We're sending over the client ID and secret, but not getting an access token in the response.

The client is a Marketo customer with the standard plan.
Anonymous
Not applicable

Re: Marketo customer can't authenticate via API

Can you copy and paste JSON response here from Get Access Token request?

ex. JSON response (normal case)
{     "access_token": "cdf01657-110d-4155-99a7-f986b2ff13a0:int",
      "token_type": "bearer",
      "expires_in": 82313,
      "scope": "apis@acmeinc.com"
}
Anonymous
Not applicable

Re: Marketo customer can't authenticate via API

@doxIQ
I am testing authentication error cases.
And I understood your issue is bad client id case only.

BAD CLIENT ID
<oauth>
<error_description>
No client with requested id: 54006d52-6420-418b-90d0-999999999999
</error_description>
<error>unauthorized</error>
</oauth>

BAD CLIENT SECRET
<oauth>
<error_description>Bad client credentials</error_description>
<error>invalid_client</error>
</oauth>

BAD HOST NAME (call to Endpoint)
{"requestId":"9999#999999999999","success":false,"errors":[{"code":"600","message":"Access token not specified"}]}

But you succeeded "quick start guide" procedure.
Are you useing same client ID? or check client ID again.