API Keys API

Manages the API keys associated with developer projects.

Service: apikeys.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://apikeys.googleapis.com

REST Resource: v2.keys

Methods
lookupKey GET /v2/keys:lookupKey
Find the parent project and resource name of the API key that matches the key string in the request.

REST Resource: v2.operations

Methods
get GET /v2/{name=operations/*}
Gets the latest state of a long-running operation.

REST Resource: v2.projects.locations.keys

Methods
create POST /v2/{parent=projects/*/locations/*}/keys
Creates a new API key.
delete DELETE /v2/{name=projects/*/locations/*/keys/*}
Deletes an API key.
get GET /v2/{name=projects/*/locations/*/keys/*}
Gets the metadata for an API key.
getKeyString GET /v2/{name=projects/*/locations/*/keys/*}/keyString
Get the key string for an API key.
list GET /v2/{parent=projects/*/locations/*}/keys
Lists the API keys owned by a project.
patch PATCH /v2/{key.name=projects/*/locations/*/keys/*}
Patches the modifiable fields of an API key.
undelete POST /v2/{name=projects/*/locations/*/keys/*}:undelete
Undeletes an API key which was deleted within 30 days.