Rest API test invalid URL | Community
Skip to main content
Level 1
September 12, 2022
Solved

Rest API test invalid URL

  • September 12, 2022
  • 1 reply
  • 2026 views

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:

401-bvr-945.mktorest.com/identity/oauth/tokengrant_type=client_credentials&client_id=7xxxxxxx&client_secret=xxxxxxx

But are getting back: 

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

 Is there something we are missing?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

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.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
September 12, 2022

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.

Level 1
September 12, 2022

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.