Skip to main content
This endpoint requires a Growth or Enterprise plan. Learn more.

Returns

[ApiToken!]!
See ApiToken

Arguments

CreateApiTokensInput!
required
See CreateApiTokensInput

Example

Test this query in the Explorer →

Usage Guidelines

  • All input fields are optional: count defaults to 1, requestLimit defaults to 5000, and expiresIn defaults to 1 hour (3600000 milliseconds)
  • The returned token is a JWT to be passed into the Authorization header for API requests
  • requestLimit is the number of root fields the token is allowed to resolve before it’s rate limited; remaining shows the approximate number of resolutions left
  • expiresTimeString is an ISO time string for the expiry of the token

Troubleshooting Tips

createApiTokens accepts up to 25 tokens per call. There is no per-account limit on how many short-lived tokens you can generate over time.