Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Getting 401 Unauthorized for get:/Accounts, scopes added

Started by Adrian Rowbotham -   in API Endpoints

I am trying to get a list of my accounts using
GET:https://api.xero.com/api.xro/2.0/Accounts with my access token.

The response is 401 / Unauthorized


My app has these scopes:

accounting.transactions
accounting.transactions.read
accounting.settings
accounting.settings.read
accounting.contacts
accounting.contacts.read

accounting.settings.read should be adequate according to the Scopes documentation: https://developer.xero.com/documentation/guides/oauth2/scopes/#organisation-scopes

I should perhaps add that I am using a Custom Connection, as we have a machine-to-machine setup with no interface.
Hey Adrian,

Would you be able to share more details of your application to api@xero.com and we can have a closer look.

Thanks
Keertika
 

Keertika Chandola (Community Manager)  

Hi Keertika. I have an open ticket with caseId 5003m00001EwM4E

Thanks
 

Adrian Rowbotham