- In Postman, create a new (GET) request.
- Enter the following request URL:
https://api.businesscentral.dynamics.com/v1.0/<tenant name>/sandbox/api/v1.0
Replace <tenant name> with the name of your Azure domain in which you created the Business Central sandbox. For example, if your Azure domain is myazuresub.onmicrosoft.com, then you would use the following URL:
https://api.businesscentral.dynamics.com/v1.0/myazuresub.onmicrosoft.com/sandbox/api/v1.0
At the time of writing this book, the current version of the Business Central API is 1.0. You may need to adjust the previous URL in the event that there is a newer version.
- Click the Auth tab and enter the following information:
Type |
Basic Auth |
Username: |
The User Name of the user you created the web services key for |
Password: |
The Web Services Access Key you generated |
- Click Send to view the request results. You should now see the list of available entities in the API. The results in Postman can be formatted in Pretty mode so that they're more readable.
- Update the request URL to add /companies at the end, as shown by this example:
https://api.businesscentral.dynamics.com/v1.0/<tenant name>/sandbox/api/v1.0/companies
- Click Send. Now, you'll see the list of companies that are in your sandbox tenant!