Skip to main content

AccessTokenWithValue

An access token with the raw token value included.

This type is only returned by the createAccessToken mutation. The token field contains the full credential needed for API authentication and cannot be retrieved again after this response. Store it securely before navigating away.

type AccessTokenWithValue {
id: ID!
name: String!
token: String!
prefix: String!
scopes: [String!]!
expiresAt: DateTime!
createdAt: DateTime!
}

Fields

AccessTokenWithValue.id ● ID! non-null scalar {#id}

Unique identifier for this access token.

AccessTokenWithValue.name ● String! non-null scalar {#name}

Human-readable label for identifying this token.

AccessTokenWithValue.token ● String! non-null scalar {#token}

The full bearer token value for API authentication. Only returned once at creation time — store it immediately in a secure location.

AccessTokenWithValue.prefix ● String! non-null scalar {#prefix}

A short, non-secret prefix (e.g., md_a1b2c3d4) used to identify this token in lists and logs without exposing the full value.

AccessTokenWithValue.scopes ● [String!]! non-null scalar {#scopes}

Permission scopes that limit what this token can do.

AccessTokenWithValue.expiresAt ● DateTime! non-null scalar {#expires-at}

When this token expires and stops working (UTC).

AccessTokenWithValue.createdAt ● DateTime! non-null scalar {#created-at}

When this token was created (UTC).

Member Of

AccessTokenWithValuePayload object