I’m calling the Wix Data REST API from Google Apps Script (external to Wix) using an API key.
POST https://www.wixapis.com/wix-data/v2/items/query
Authorization:
wix-site-id: 1f7346ae-8c7a-426e-b0c7-482ba8c4cb0d
Content-Type: application/json
Body: { “dataCollectionId”: “KeyTypes” }
Result: 400 WDE0117: MetaSite not found
x-wix-request-id: 1778712049.9702937412821342
The same API key and Site ID work perfectly from Wix backend (wix-fetch).
API key has Wix Data permission enabled.
Is the Site ID from the dashboard URL the correct MetaSite ID for external REST calls?