We know OAuth1.0A can be tricky so we've created a Postman collection that makes authentication easy. Postman is a REST client that provides an intuitive user interface to send requests, save responses, add tests, and create workflows.
Get started by heading to our Xero-Postman Github repo or just use the "Run in Postman" button below and follow the steps:
Copy the consumer key and consumer secret of your app into the ConsumerKey and ConsumerSecret environment varaibles in Postman.
Select Xero from the environment drop-down menu in Postman
Hit Send on the GET Request Token call in Postman. In the response section go to the Test Results tab and copy the authorization url.
Paste the authorization url into your browser, login to xero, select the org to connect to and copy the oauth verifier to your clipboard.
Paste the oauth verifier at the end of the GET Access Token URL in Postman. Hit Send on the request. Congrats! You're now authenticated and can start making API calls. Your access token will last for 30mins, after which time you'll need to report steps 4-6 to get a new token.
Click Send on the GET Organisation request to make your first API call.