Get Site API endpoint to retrieve the site's shortName. https://shortName.webflow.io, since it's not returned by the List Domains endpoint.The Webflow API's 'Publish Site' and 'List Domains' commands do not directly return the default staging domain (e.g., your-site.webflow.io). However, you can determine the staging domain using the site information available with another API call.
GET https://api.webflow.com/sites/{site_id}site_name.webflow.io.
shortName from the response of the Get Site endpoint..webflow.io to form the staging URL."shortName": "demo-site", the staging URL will be https://demo-site.webflow.io.
List Domains endpoint only returns custom domains added in the Webflow Designer or site settings.
Use the Get Site API endpoint to retrieve the shortName of the project, and manually construct the staging domain as shortName.webflow.io. The Webflow API does not return this domain in the List Domains endpoint.