Generates a new API key and secret for the specified account.
The key can be named for easier identification and can be restricted to a list of project IDs.
If no projects are specified, the key grants access to all projects in the account.
The API secret is only shown at the time of creation and should be stored securely.
A key scoped to all projects (projects omitted or null) requires the caller to be an owner, account manager or admin holding all-projects access. The key's role may be no stronger than the caller's account role.
A key scoped to specific projects is available to project-scoped users, and its role may be no stronger than the caller's role on each of the requested projects.
When role is omitted it defaults to the weakest role the caller holds across the requested projects, or to their account role for an all-projects key; owner is downgraded to account_manager.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||