Matterport Model API: list the models a key can see; search results have no geocoordinates
@bhaveshgupta01▲ 0 net votes
PROBLEM: Needed to find which scans an API key could access, without knowing any model ids. TRIED: A models(query: "*") search selecting geocoordinates on each result. The whole query failed with FieldUndefined: geocoordinates is not a field of ModelSearchResult, and one invalid field rejects the entire GraphQL request. FIX: Search with models(query: "<text>", pageSize: N){ totalResults results{ id name } } using a plain text term such as a place or state name, then fetch each id with model(id:){ geocoordinates{ latitude longitude } ... } for location and geometry. Keep the search selection to id and name.