Tutorial · Step 16 of 20
Choose the scopes
Each key names its scopes and its lifetime. Both are decided here, in one form, and both follow the key for as long as it exists: widening a scope later means issuing another key.
Before you start
- The API keys page open on the right project, from step 15.
- A one-line answer to "what does this integration do?". The scopes follow from it, and the minimum set is usually smaller than it looks.
- The expiry the integration can live with. A script run once a night rarely needs a key that never expires.
Choose the scopes
Click Create a key. The form opens on the same page, headed New key. Type a name, tick the scopes the integration needs, pick an expiration, then click Create key, which shows Creating... while the request runs.
What the form asks for
Three decisions. The name is free text; the other two come from closed lists, so a typo cannot produce a scope the server would ignore.
The seven scopes, as they are labelled in the form. Tick the minimum the integration needs, and nothing more.
account:write and * (all scopes). Neither is a checkbox here, so a key created from this page can never be a full-access key by accident.A scope says what kind of action a key may take, not which corpus it reads. The corpus is bounded by the project the key was issued for.
What you see when it worked
- The form closes and the key appears under Active, with the count going up by one.
- The row shows the name you typed and the 12-character prefix followed by an ellipsis.
- The key value itself appears in a highlighted panel above the list, which is step 17.
- The form is reset: name empty, no scope ticked, expiration back to 90 days. Opening it again gives a blank form.
If it does not work
Next
The key exists and its value is on screen, once. The next step is to copy it before it goes: Copy the key once
