Skip to main content

OrgToken

No description

type OrgToken {
orgTokenId: BigInt!
orgId: BigInt!
label: String
environmentId: String
kind: String!
isActive: Boolean!
expiresAt: DateTime
lastUsedAt: DateTime
revokedAt: DateTime
createdAt: DateTime!
updatedAt: DateTime!
}

Fields

OrgToken.orgTokenId ● BigInt! non-null scalar

Unique token id (primary key, BigInt as string).

OrgToken.orgId ● BigInt! non-null scalar

Organization that owns this token (BigInt as string).

OrgToken.label ● String scalar

Optional human-readable label.

OrgToken.environmentId ● String scalar

For 'service' tokens, the environment id (UUID) the token is scoped to; null for user-minted tokens.

OrgToken.kind ● String! non-null scalar

'user_minted' (human-created) or 'service' (minted by the control plane for per-tenant game-apis).

OrgToken.isActive ● Boolean! non-null scalar

False once revoked; inactive tokens cannot authenticate.

OrgToken.expiresAt ● DateTime scalar

Optional expiry timestamp; null means the token never expires.

OrgToken.lastUsedAt ● DateTime scalar

When the token last authenticated a request, if ever.

OrgToken.revokedAt ● DateTime scalar

When the token was revoked, if it has been.

OrgToken.createdAt ● DateTime! non-null scalar

When the token was created.

OrgToken.updatedAt ● DateTime! non-null scalar

When the token was last updated.

Returned By

orgTokens query ● updateOrgToken mutation