Every request carries an access key. The key acts as you, with your role, in one organization.
Open API in the left navigation. Under Your keys, fill in a Name, how long the key lasts (Expires) and an Access level, then click Create access key:
GET requests. Any other method returns 403 with the code read_only_key.The key is shown once. Store it in a secret manager. Never put it in browser code or a public repository.
Send the key as a bearer token on every request. All endpoints live under /api/v1 on the same address you use to open the app.
curl {app_url}/api/v1/projects \
-H "Authorization: Bearer $OPENLOC_KEY"
The key acts as you, in the organization where you created it. It has your role, checked on every request, so if your role changes, the key's access changes with it. Each endpoint under API documentation lists the roles that may call it. Roles are owner, admin, project_manager, linguist and customer (a portal user). Responses name the portal role customer; a request may still send its earlier name, requester.
A key created in a vendor organization cannot use /api/v1. Every request returns 403; Errors lists the codes.
When an owner or admin disables you in the organization, every request with your key returns 403 with the code membership_disabled, until you are enabled again.
When you change your sign-in email, your keys stay valid, but you are disabled in every organization you belong to. Requests with your keys return 403 with the code membership_disabled until an owner or admin enables you again. Apps connected through OAuth are disconnected.
A key that has expired or was revoked returns 401. Create a new one on the API page in the left navigation.
When the server cannot check the key at all, it returns 503 with the code unavailable, not 401. The key is not at fault: keep it and retry. See errors.