List creatable API key scopes
const url = 'https://localhost:8080/api/v1/api-keys/creatable-scopes';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:8080/api/v1/api-keys/creatable-scopes \ --header 'Authorization: <Authorization>'Return the ordered catalog of create-time API key scopes and whether the caller may grant each one. Optional organization_id and project_id overlay the same bindings as create. JWT/session only — API keys cannot manage API keys
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Override organization used for grant checks
Override project used for grant checks
Responses
Section titled “ Responses ”Creatable scopes for the caller
Creatable API key scopes for the authenticated caller, including non-grantable rows
object
A create-time API key scope, whether the caller may grant it, and copy for the picker
object
Example
{ "scopes": [ { "kind": "full_access" } ]}Bad request - Invalid organization or project ID
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Unauthorized - Authentication required
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Forbidden - API keys cannot manage API keys
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}