Get API key

apiKey(id: ID!): ApiKey

Arguments

ArgumentTypeRequired
idID!Yes

Response

Returns ApiKey. Open the type for its fields and nested types.

FieldType
idID!
projectIdID
userIdID!
nameString!
keyPrefixString!
lastUsedAtString
expiresAtString
createdAtString!

All fields of ApiKey.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query APIKey($id: ID!) {
  apiKey(id: $id) {
    id
    projectId
    name
    status
    createdAt
  }
}
json
{
  "id": "00000000-0000-4000-8000-000000000001"
}