Authorization

The Sovrn //Commerce APIs require an Authorization header to be added to each request. This ensures not only that we keep our data secure, but also that the correct information is returned for your account.

For each request the Secret Key for the site you are enquiring about must be used. There will be different secret keys for different sites within the same account.

Getting the Secret Key for your site

To find the secret key for a site

The secret key is like a password and should not be shared. If you believe your secret key has been compromised please click on the "regenerate" link in the same screen above to invalidate the previous secret key and create a new one.

Adding Authorization to your API call

To pass the Authorization details of your Secret Key to the API it must be added as an Authorization header. The value of the header is

secret {SECRET KEY}

Please ensure that the word "secret" is included as text, plus a space, before passing the value of your Secret Key.


Did this page help you?