Get a key
An organization admin opens Account Management → Organizations, selects the organization, and adds a service account on its Service Accounts tab. Each service account has its own key, and the app shows the key once. Create one service account per integration, so you can revoke one without stopping the others. A key acts for its organization. It can read that organization’s analyses, including those of its sub-organizations. An analysis outside them answers404 not_found, the same as an ID that does not exist.
Keep the key out of URLs
The API refuses a key sent anywhere except the header. A request withapi_key in the query string or the JSON body answers 400 query_api_key_forbidden, before the key is checked:
X-Api-Key header, an app session cookie or a share token answers 401 unauthorized.
Permissions
What a key can see follows its service account’s role in the app:- Submitting a location needs permission to analyze locations. Without it,
POST /analysesanswers403 forbidden. - Polling and reading need permission to view plans. Without it, every
GET /analyses/{analysis_id}answers404 not_found, even for an analysis the key created. Give the role both permissions. - Fields follow the same field permissions as the app. A field the role may not see is left out of the response.