OrgTokenWithSecret
Returned exactly once - on org token creation. The plaintext token field is never re-emitted. Future listings show metadata only via the OrgToken type.
type OrgTokenWithSecret {
orgTokenId: BigInt!
orgId: BigInt!
token: String!
label: String
isActive: Boolean!
expiresAt: DateTime
createdAt: DateTime!
}
Fields
OrgTokenWithSecret.orgTokenId ● BigInt! non-null scalar
Unique token id (BigInt as string).
OrgTokenWithSecret.orgId ● BigInt! non-null scalar
Organization that owns this token (BigInt as string).
OrgTokenWithSecret.token ● String! non-null scalar
The plaintext token. Save it now; it is not stored.
OrgTokenWithSecret.label ● String scalar
Optional human-readable label.
OrgTokenWithSecret.isActive ● Boolean! non-null scalar
Whether the token is active.
OrgTokenWithSecret.expiresAt ● DateTime scalar
Optional expiry timestamp; null means no expiry.
OrgTokenWithSecret.createdAt ● DateTime! non-null scalar
When the token was created.
Returned By
createOrgToken mutation