Skip to content

List API Keys

POST
/enum.api.v1.ServiceAccountService/ListApiKeys
object
projectId
string
serviceAccountId

Optional service account filter. When empty, returns every API key in the project. When set, returns only keys belonging to that service account.

string

OK

object
apiKeys
Array<object>

An ApiKey is a long-lived credential belonging to a service account. The key token is returned once, when the key is created, and is not retrievable afterwards. Deleting a key revokes it immediately.

The key is scoped to its service account’s project; it carries no project_id of its own.

object
id
string
serviceAccountId
string
name
string
expiresAt

The point in time after which the key stops authenticating.

string format: date-time
createdAt
string format: date-time
status
integer format: enum