Rest API test invalid URL | Adobe Higher Education
Skip to main content
Level 1
September 12, 2022
Beantwortet

Rest API test invalid URL

  • September 12, 2022
  • 2 Antworten
  • 2039 Ansichten

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?

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von 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.

2 Antworten

SanfordWhiteman
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.