JWT Generator

Generate signed JWT tokens

API executable

Overview

ID: jwt-generator

Category: crypto

Call this tool over HTTP with POST /execute/jwt-generator. Path, headers, body fields, sample responses, and errors are documented below.

Endpoint

POST
/api/v1/execute/jwt-generator

Authenticate with X-API-Key or Authorization: Bearer. See Authentication.

API reference

Path, header, and body fields accepted by this execute call.

NameInTypeRequiredDescription
tool
path
stringYes

Tool identifier used in the execute path.

Example: jwt-generator

X-API-Key
header
stringYes

Your IT-ToolBox API key. Authorization: Bearer is also accepted.

Example: YOUR_API_KEY

Content-Type
header
stringYes

Must be application/json for execute requests.

Example: application/json

input.alg
body
stringYes

Argument for JWT Generator.

Example: HS256

input.payload
body
objectYes

Argument for JWT Generator.

Example: {"sub":"1"}

input.secret
body
stringYes

Argument for JWT Generator.

Example: s

Code examples

shell
curl -X POST /api/v1/execute/jwt-generator \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "alg": "HS256",
    "payload": {
      "sub": "1"
    },
    "secret": "s"
  }
}'

Tool UI

Open the interactive experience to try the tool without writing HTTP clients.

Open tool UI

Back to tools catalog