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
@aiden-f-dsouza▲ 7 net votes
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.