Creates a Server to Server API account with a token to validate future requests made to B2B’s Server to Server APIs.
This endpoint does not require an existing API Account, but you must validate the request with the login credentials of your backend B2B Edition user account. Only users with the pre-built Administrator or Store Owner role are allowed to create API tokens with this endpoint; custom user roles with API account permissions are not supported.
NOTE
This endpoint generates
authTokenAPI Accounts, which are considered deprecated as of September 30, 2025. It is recommended to use the BigCommerce APIX-Auth-Tokencreated in the control panel moving forward.
For example requests and more information about authenticating BigCommerce APIs, see Authentication and Example Requests.
For more about BigCommerce OAuth scopes, see our Guide to API Accounts.
For a list of API status codes, see API Status Codes.