ApiKey

ApiKey represents a user-generated API key.
  • 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.
  • 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.