How to pass client key and secret parameters to call GoDaddy API in Postman

I am trying to call GoDaddy API in Postman to check if a domain is available or not. I have got client key and secret but when I pass them I always get following error:

“message”: “Unauthorized : Credentials must be specified”

I am passing domain name in Params and key and secret in Authorization as shown in below screenshot.

Is there a particular way I need to pass key and secret because I can see I can also pass it in header or on body? A successful request would look something like this (this is taken from GoDaddy website)

curl -X 'GET' \
  '' \
  -H 'accept: application/json' \
  -H 'Authorization: sso-key some_key_here'

GoDaddy API page

Basically I just want to test GoDaddy API in postman rather than making a PHP or other page to test.

Does anyone know how to do this?

1 Like

Hi @generalpostmaster

According to the docs the proper curl command is;

curl -X GET -H "Authorization: sso-key [API_KEY]:[API_SECRET]" ""

Copy the curl above, then click on “Import” > “Raw text” and then paste your curl command in there with your keys, like this;

Then click continue and it should work.

The keys are passed in the header in this format

Authorization: sso-key [API_KEY]:[API_SECRET]

But your screenshot shows the keys without the sso-key prefix.

1 Like

Thanks. Didn’t know about this feature where you can import raw text and it will generate proper request with parameters. Postman is simply great!

1 Like