SOLVED

Re: Rest API test invalid URL

Go to solution
wileysegovia
Level 1

Rest API test invalid URL

Hi all,

 

We are trying to connect to our Marketo instance via API and are not able to get past the initial URL address / simple test.

We have typed the following into the address bar:

https://401-bvr-945.mktorest.com/identity/oauth/tokengrant_type=client_credentials&client_id=7xxxxxx...

But are getting back: 

{
    "error": "invalid_url",
    "error_description": "The URL invoked does not exist."
}

 Is there something we are missing?

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Rest API test invalid URL

The structure of the URL is

https://{{Marketo Munchkin ID}}.mktorest.com/identity/oauth/token?grant_type=client_credentials&client_id={{Marketo OAuth client_id}}&client_secret={{Marketo OAuth client_secret}}

 

In other words, you left out the ? that comes before the query string. This is a pretty basic part of URL structure, and you’ll need to be attentive to such basics as you use the API.

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Rest API test invalid URL

The structure of the URL is

https://{{Marketo Munchkin ID}}.mktorest.com/identity/oauth/token?grant_type=client_credentials&client_id={{Marketo OAuth client_id}}&client_secret={{Marketo OAuth client_secret}}

 

In other words, you left out the ? that comes before the query string. This is a pretty basic part of URL structure, and you’ll need to be attentive to such basics as you use the API.

wileysegovia
Level 1

Re: Rest API test invalid URL

Hi Sanford,

 

This was sent to me by another developer on my team. I noticed the missing delimiter a moment after posting!

It seems we are getting a standard/good response back.