The createPersonalUserToken() GraphQL mutation is used to create a personal user token for a user. 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!

Given Datatypes

For the input CreatePersonalUserTokenInput, there are several parameters that may be given. Below is a list of them along with their datatypes and a description of each:

Table: CreatePersonalUserTokenInput

ParameterTypeRequired[a]DefaultDescription
expireAtlong  Name of the view of the parser.
ipFilterIdstring  Name of the parser.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.