This endpoint requires a Growth or Enterprise plan. Learn more.
Returns
Arguments
CreateApiTokensInput!
required
Example
Test this query in the Explorer →Usage Guidelines
- All input fields are optional:
countdefaults to 1,requestLimitdefaults to 5000, andexpiresIndefaults to 1 hour (3600000 milliseconds) - The returned
tokenis a JWT to be passed into the Authorization header for API requests requestLimitis the number of root fields the token is allowed to resolve before it’s rate limited;remainingshows the approximate number of resolutions leftexpiresTimeStringis an ISO time string for the expiry of the token
Troubleshooting Tips
Are there limits on the number of tokens I can generate?
Are there limits on the number of tokens I can generate?
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.