query ApiKey($keyId: ID!) {
apiKey(keyId: $keyId) {
apiIds
createdBy
createdOn
id
keyPrefix
keySuffix
}
}{
"keyId": "id"
}{
"data": {
"apiKey": {
"apiIds": [
"string"
],
"createdBy": "string",
"createdOn": "string",
"id": "id",
"keyPrefix": "string",
"keySuffix": "string"
}
}
}apiKey
Gets an API key by its global id. The secret isn’t included.
apiKey(keyId: ID!): ApiKey!Arguments
Global id of the key (ApiKey.id).
Returns
Ids of the APIs the key may call.
Name of the user who created the key.
When the key was created, as an ISO 8601 date-time string.
Global id of the key: base64 of ApiKey:<raw id>. apiKey takes it. rotateApiKey and deleteApiKey take the raw id (ApiKeyWithSecret.id, e.g. api_key_0195ac80a14e8d71f42b98e75d3c61ad).
First characters of the key, to tell keys apart without the secret.
Last characters of the key, to tell keys apart without the secret.
IP address the key was last verified from. Null if it never has been.
When the key was last verified, as an ISO 8601 date-time string. Null if it never has been.
Name of the key.
Organization code of the tenant the key belongs to.
Scopes the key was given. tenantScopes lists the ones a tenant-level key can get.
State of the key, in lowercase (e.g. active, revoked). apiKeys filters on it with status.
Kind of key, in lowercase: organization for a tenant-level key, user for a key tied to one user. apiKeys filters on it with keyType.
Sign-in id of the user a user key belongs to; not UserV2.id. Null for a tenant-level key.
Number of times the key has been verified.
query ApiKey($keyId: ID!) {
apiKey(keyId: $keyId) {
apiIds
createdBy
createdOn
id
keyPrefix
keySuffix
}
}{
"keyId": "id"
}{
"data": {
"apiKey": {
"apiIds": [
"string"
],
"createdBy": "string",
"createdOn": "string",
"id": "id",
"keyPrefix": "string",
"keySuffix": "string"
}
}
}Was this page helpful?