Skip to main content
GET
/
jwt-templates
List JWT Templates
curl --request GET \
  --url https://api.wacht.dev/jwt-templates \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "name": "Default JWT Template",
    "description": "<string>",
    "claims": {
      "sub": "{{user.id}}",
      "email": "{{user.email}}",
      "org_id": "{{user.organization_id}}"
    },
    "ttl": 3600,
    "is_default": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Response

Successful response

id
string

(i64 formatted as string)

name
string
Example:

"Default JWT Template"

description
string
claims
object
Example:
{
"sub": "{{user.id}}",
"email": "{{user.email}}",
"org_id": "{{user.organization_id}}"
}
ttl
integer

Token time-to-live in seconds

Example:

3600

is_default
boolean
created_at
string<date-time>
updated_at
string<date-time>