Skip to main content
Version: 0.6.0

Team Tokens

A Team Token is an API token scoped to a specific team. Team tokens inherit the team's permissions and can be used for automation workflows where individual user tokens are not appropriate.

Available Queries

QueryDescription
teamTokens(teamId: ID!, filter: TeamTokenFilter)List tokens for a team
teamToken(id: ID!)Fetch a single token by ID

Example

query TeamApiTokens($teamId: ID!) {
teamTokens(teamId: $teamId) {
id
description
createdAt
lastUsedAt
expiredAt
createdById
}
}

Fields

FieldTypeDescription
idID!Token identifier
teamIdID!Parent team ID
createdAtDateTime!When the token was created
lastUsedAtDateTimeLast time the token was used
descriptionStringHuman-readable description
tokenStringToken value (only returned on creation)
expiredAtDateTimeWhen the token expires (null if no expiry)
createdByIdID!ID of the user who created this token

Filter Fields

FieldComparison Type
idStringComparisonExp
teamIdStringComparisonExp
createdAtDateTimeComparisonExp
lastUsedAtDateTimeComparisonExp
descriptionStringComparisonExp
tokenStringComparisonExp
expiredAtDateTimeComparisonExp
createdByIdStringComparisonExp
  • Teams — The team this token belongs to