Access Business Central API
To explore and develop against APIs in Business Central, you have to connect and authenticate. APIs are enabled by default in Business Central online. For on-premises environments, an administrator must enable APIs.
If you connect by using Microsoft Graph or the common endpoint service, you can use Microsoft Entra ID authentication, which involves setting up OAuth authentication mechanisms.
The Microsoft Graph endpoint uses the following URI:
https://graph.microsoft.com/beta/financials/
This endpoint is part of Microsoft Graph's beta API, which can change and isn't supported for production applications. Use a Business Central v2.0 API endpoint for production integrations. The Business Central environment for the Graph API must be named Production.
The Business Central common endpoint service uses the following URI:
https://api.businesscentral.dynamics.com/v2.0/<environment name>/api/v2.0
You can also connect directly to a tenant by including the user domain name in the URI:
https://api.businesscentral.dynamics.com/v2.0/<user domain name>/<environment name>/api/v2.0