API Stability Long-Term

The createPersonalUserToken() GraphQL mutation is used to create a personal user token. It will inherit the same permissions as the user.

For more information on access tokens of various types, see the Ingest Tokens documentation page. For information on user authorization, see the Manage users & permissions documentation page.

Syntax

Below is the syntax for the createPersonalUserToken() mutation field:

graphql
createPersonalUserToken(
      input: CreatePersonalUserTokenInput!
   ): string!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  createPersonalUserToken(input:
      { expireAt: null } )
}
Example Responses
Show:
json
{
  "data": {
    "createPersonalUserToken": "yaeOlO4GXyIT57ztE3tdqdnq~edXfMu3Yir0FCDVQ95cRoOy0IYL94tqOAaPw1eMK8C9p"
  }
}

Given Datatypes

For CreatePersonalUserTokenInput, there are only two parameters that may be given. Below are descriptions of them:

Table: CreatePersonalUserTokenInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 17, 2024
expireAtlong  Long-TermName of the view of the parser.
ipFilterIdstring  Long-TermName of the parser.