JWT n8n integrationAutomate JWT with n8n.
A token stops being a black box once the node opens it. The JWT n8n integration brings 3 operations to a workflow: decode, sign, verify. The key and the algorithm live in a credential created once, and each claim you want inside the payload gets its own field.
Verified Trustpilot reviews · AI, automation & growth agency
What does the JWT n8n integration actually do?
JWT stands for JSON Web Token, the format described in RFC 7519. Inside n8n, the JWT n8n integration is a single node with 3 operations on 1 resource: produce a token, check a token, or read what a token holds. Everything happens between that node and a JWT credential, which stores the key and the algorithm.
Start with the case that shows up most often. A workflow has to call a service that only answers to a signed assertion. Sign a JWT builds that token at the moment of the call: you set Expires In, the lifetime in seconds, you name the recipient in Audience, and the token goes to the node that fires the request.
The other direction is just as common. A third-party service calls your n8n Webhook, the URL n8n exposes so an outside system can start a workflow, and the call carries a token. Verify a JWT stands at the door: the check runs first, and the rest of the flow, a row in Postgres or a message in Slack, only runs once the token holds up.
Then there is the dull case that saves an afternoon. A token comes back from somewhere and nobody knows what it carries. Decode a JWT turns it into readable JSON, Return Additional Info adds the header and signature information, and the result can sit in Google Sheets while you work out which claim you actually need.
Values rarely get typed by hand here. They come from an expression, the {{ }} syntax n8n uses to pull a value out of the item coming in, written as {{ $json.field }}. A field marked required blocks the node while it stays empty, which is exactly what Token does on Decode a JWT and on Verify a JWT.
The node covers 3 operations on 1 resource. Outside that catalogue, the HTTP Request node takes over: it calls any endpoint of a tool's API and reuses the same credential through predefined authentication. And if the platform choice is still open, the n8n review walks through it, while the n8n training fits the moment a whole team has to build these flows.
How do you set up the JWT credential in n8n?
- 01
Create the JWT credential
In n8n, open the Credentials menu and create a JWT credential. A credential is the container that holds the secret: filled once, it shows up in the dropdown of every node that needs it, in this workflow and the next ones. This one is not limited to the JWT node either, the Webhook node accepts the same credential.
- 02
Choose the Key Type
Two key types are supported. Passphrase is signed with a secret with an HMAC algorithm, so the credential asks for that Secret. PEM Key targets a private key JWT with an RSA or ECDSA algorithm: you paste a Private Key and a Public Key, both obtained from generating a key pair. Pick the type that matches the key already in your hands.
- 03
Select the Algorithm
Last field: the Algorithm used to sign the assertion. The credential supports
HS256,HS384,HS512,RS256,RS384,RS512,ES256,ES384,ES512,PS256,PS384,PS512andnone. Save it, open the JWT node, and the credential appears in its list.
What can the JWT node do in n8n?
The JWT node exposes 3 operations. For each one: the node as you configure it in n8n, the required fields, and our field notes.
Operations index
Decode a JWT
decodeWhat you see in n8n
Notes & use cases
Feed a token in, get its contents back as JSON the next node can read. Switch on Return Additional Info and you get the complete decoded token, header and signature information included, instead of the payload alone.
Key parameters
- Token: the token to verify or decode, required, usually an expression pointing at the incoming item,
{{ $json.field }}. - Return Additional Info: off, you get the payload; on, the header and signature information come with it.
- Key ID: the optional
kidheader claim, used to specify the key for validating the signature.
Sign a JWT
signWhat you see in n8n
Notes & use cases
This operation creates a token rather than reading one. Nothing is required: you fill the claims you need, one by one in the Payload Claims collection and its 12 fields, or as JSON when an earlier node prepared the payload.
Key parameters
- Use JSON to Build Payload: whether to use JSON to build the claims, the object landing in Payload Claims (JSON).
- Expires In: the lifetime of the token in seconds,
3600in the placeholder. - Audience: identifies the recipients that the JWT is intended for.
Verify a JWT
verifyWhat you see in n8n
Notes & use cases
Verification is what stands between a token and the rest of the run. The node checks it with the algorithm set in the credential, and the options decide how strict that check gets.
Key parameters
- Token: required here too, and an empty required field stops the node before anything else happens.
- Ignore Expiration: whether to ignore the expiration of the token during the check.
- Clock Tolerance: number of seconds to tolerate when checking the nbf and exp claims, to deal with small clock differences among different servers.
Need help automating JWT with n8n?
A person reads every message.

