Method: projects.serviceAccounts.keys.list

Lists every ServiceAccountKey for a service account.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The resource name of the service account in the following format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}.

Using - as a wildcard for the PROJECT_ID, will infer the project from the account. The ACCOUNT value can be the email address or the uniqueId of the service account.

Authorization requires the following IAM permission on the specified resource name:

  • iam.serviceAccountKeys.list

Query parameters


enum (KeyType)

Filters the types of keys the user wants to include in the list response. Duplicate key types are not allowed. If no key type is provided, all keys are returned.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

The service account keys list response.

JSON representation
  "keys": [
      object (ServiceAccountKey)

object (ServiceAccountKey)

The public keys for the service account.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.