All API tools

Encoding & Crypto

JWT Encoder (HS256) API

GET/v1/jwt-encoder Free tier1 credit / call

Authentication

Send your API key as a bearer token. Create one free in the dashboard.

Authorization: Bearer $TOOLSXPO_KEY

Parameters

Passed as query-string parameters. Example values shown.

NameExample
header{"alg":"HS256","typ":"JWT"}
payloadexample
secretmy-secret

Example request

curl "https://api.toolsxpo.com/v1/jwt-encoder?header=%7B%22alg%22%3A%22HS256%22%2C%22typ%22%3A%22JWT%22%7D&payload=example&secret=my-secret" \
  -H "Authorization: Bearer $TOOLSXPO_KEY"

Response

A standard JSON envelope: { ok, data, meta }. The result is in data (text); meta.credits reports what the call cost.