API Returns "Not Authorized" with Sandbox Key


We are trying to make a simple GET request to your API.

We have the authorization header set according to your API spec. although we constantly receive the following error:

{"message":"The request should be authorized."}

Sample Request

GET: https://sandbox-b2b.revolut.com/api/1.0/accounts
Authorization: Bearer sand_...........

We have tried to delete and recreate the sandbox key, as well as entering our IP address in the API tab of your online system, but to no avail.

Any help would be much appreciated, thanks.


Having the same issue too. Production works fine, however sandbox returns

{'message': 'The request should be authorized.'}

Code example

import requests

def production():
    url = "https://b2b.revolut.com/api/1.0/accounts"
    headers = {'Authorization': 'Bearer prod_xxxxxxxx'}
    r = requests.get(url, headers=headers)

def sandbox():
    url = "https://sandbox-b2b.revolut.com/api/1.0/accounts"
    headers = {'Authorization': 'Bearer sand_xxxxxxxx'}
    r = requests.get(url, headers=headers)



Hi there.

Thank you for your feedback. The team is working on a fix :slight_smile:

I will keep you posted.


Guys, could you please try again now and let me know if it works?


Hi @AndreasK

It’s all working fine now, thanks!


Hooray! :tada::tada::tada:

Thank you :slight_smile:


Hello @AndreasK

We have completed our integration and we are now looking to invite beta testers to our platform. In the coming weeks we’ll be pushing out an update to ~60k subscribers. I wondered if you would be able to contact me privately, as there are some details we would need to coordinate with you on, before official release.