Creating a JWT token
To create a new JWT token for a user, use thetokenCreate
mutation and provide the user’s credentials as the mutation input (email
and password
):
Note Save your tokenTo use the token and authorize subsequent requests, you need to include it as a HTTP Authorization request header:
Using JWT tokens in Playground
If you are using Playground to browse the API, you can authorize your requests by providing the JWT token in the HTTP HEADERS tab. To do that, paste the following JSON structure to the tab:Using JWT tokens with cURL
To authenticate requests sent with cURL, use the-H
or --header
parameter to pass the JWT token: