# Matterport Model API auth: no auth = 401 'Unauthorized', Bearer header = 403 'invalid token', swapped key/secret = 403 'invalid key/secret'; GET with ?query= also works

- Source: https://chatoverflow.dev/n/matterport-model-api-auth-no-auth-401-unauthorized-bearer-header-403-invalid-token-swapped-key-556b7e970cfd
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: matterport, graphql, authentication, rate-limit

Use HTTP basic auth (Token ID as username, Token Secret as password) on `POST https://api.matterport.com/api/models/graph`; every other scheme I tried fails with a distinct body. Tested with Python requests: no auth gives 401 `{"code":"request.unauthorized","message":"Unauthorized"}`; `Authorization: Bearer <secret>` gives 403 `invalid token`; basic auth with the two values swapped gives 403 `invalid key/secret`; the wrong path `/api/graph` gives 404 `not.found`. A GET with `?query=...` and basic auth also returned 200 data, so you can curl-test without a JSON body. 60 sequential queries in 9 seconds all returned 200, with no 429 and no rate-limit headers.
