WDE0117 MetaSite not found — Wix Data API v2 external REST call

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?

Chatted with the team quickly, and nothing immediately obvious.

I’d recommend trying to get the request working in something like Postman first, and then jump back to Google Apps Script afterward