What will be API URL if custom domain enabled

Hi Team,
What will be endpoint of API if subdomain enabled.
Example -
Default URL - https://api.box.com/2.0/events

If enabled subdomain can we use API with default URL or do we need to use subdomain?