Skip to main content
empty_scopes means a request to create an API key sent an empty scopes list. Read this page if you create keys from code or a provisioning script.

What happened

Route: POST /v1/keys. The body had "scopes": []. OpenType does not create a key without scopes. No key was created.

How to fix

Request the scopes the key needs, and no more. Every scope you request must also be held by you, or the call fails with scope_exceeds_creator. Common sets: Duplicates are removed and the list is sorted in the response. A key’s scopes are fixed when it is created; to change them, create a new key.

Example

Creating a key that can send and read runs. The call needs keys_write. The secret in the response is shown once: store it now.
Response, 201: