- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- IAM Permissions
- Try it!
Creates a new API key.
NOTE: Key is a global resource; hence the only supported value for location is
The URL uses gRPC Transcoding syntax.
Required. The project in which the API key is created.
Authorization requires the following IAM permission on the specified resource
User specified key id (optional). If specified, it will become the final component of the key resource name.
The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. In another word, the id must match the regular expression:
The id must NOT be a UUID-like string.
The request body contains an instance of
If successful, the response body contains a newly created instance of
Requires the following OAuth scope:
For more information, see the Authentication Overview.
Requires the following IAM permission on the
For more information, see the IAM documentation.