CreateAccessTokenInput
Create a scoped, time-limited access token for API authentication.
input CreateAccessTokenInput {
expiresInMinutes: Int
name: String!
scopes: [String!]!
serviceAccountId: String
}
Fields
CreateAccessTokenInput.expiresInMinutes ● Int scalar {#expires-in-minutes}
How many minutes until this token expires. Defaults to 60 (1 hour). Maximum ~5,256,000 (10 years).
CreateAccessTokenInput.name ● String! non-null scalar {#name}
A label to identify this token (e.g., 'CI deploy key')
CreateAccessTokenInput.scopes ● [String!]! non-null scalar {#scopes}
Permission scopes. At least one required. Currently only ["*"] (full access) is supported.
CreateAccessTokenInput.serviceAccountId ● String scalar {#service-account-id}
Create the token on behalf of this service account. Omit to create for the authenticated identity.
Member Of
createAccessToken mutation