---
title: "Add JWT credential to consumer"
method: POST
path: "/v1/kong-admin/consumers/{consumerId}/jwt"
tags: ["Kong Admin Controller"]
---

# Add JWT credential to consumer

`POST /v1/kong-admin/consumers/{consumerId}/jwt`

Adds JWT credentials to a consumer

## Path parameters

- `consumerId` string, required

## Request body

- ConsumerJWTConfig
  - `id` string
  - `key` string
  - `secret` string
  - `tags` string[]
  - `consumer` Consumer
    - `id` string
    - `username` string
    - `tags` string[]
    - `created_at` integer
    - `custom_id` string
  - `algorithm` string
  - `publicKey` string
  - `created_at` integer
  - `rsa_public_key` string

## Response `200`

JWT credential added successfully

- ConsumerJWTConfig
  - `id` string
  - `key` string
  - `secret` string
  - `tags` string[]
  - `consumer` Consumer
    - `id` string
    - `username` string
    - `tags` string[]
    - `created_at` integer
    - `custom_id` string
  - `algorithm` string
  - `publicKey` string
  - `created_at` integer
  - `rsa_public_key` string

## Other responses

- `404` — Consumer not found
- `500` — Internal server error

---

[API](https://skmtc.dev/floik/apis/floik-authentication-server.md) · [All operations](https://skmtc.dev/floik/apis/floik-authentication-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/floik/floik-authentication-server/revisions/2b2a5dad2f5e/schema)
