personalApiKeys

List of all personal API keys for the account with their owners. Root admins only.

Returns

[ApiKey!]!
[ApiKey!]!
Collapse
  • id
    Globally unique ID of the API key.
  • Should tokens generated from this API key have admin permissions?
  • createdAt
    Creation timestamp.
  • creator
    The creator of the API key.
  • deleted
    Indicates whether the API key is deleted.
  • disabled
    Indicates whether the API key has been disabled.
  • isPersonal
    Indicates whether the API key is personal, owned by a person rather than the organization.
  • disabledAt
    When the API key was disabled. Null while the key is active.
  • owner
    Login of the user who owns the API key. Null for organization-level keys.
  • lastUsedAt
    Last usage (token generation) timestamp, if any.
  • Human-readable name of this API key.
  • secret
    API key secret - only visible when the key is created and not persisted on Spacelift end. Make sure to save it!
  • teamCount
    Number of teams this key "belongs to"
  • List of teams this key "belongs to". This allows non-admin API keys to be treated the same way as regular users by stack-level policies.
  • spaceCount
    Number of spaces api key was explicitly given permissions to.
  • isMachineUser
    Indicates whether the api key is a machine user.
  • description
    Free-form description of the API key.
  • expiresAt