---
title: "Get a JWT from the auth request"
method: POST
path: "/api/persons/{personId}/jwts"
tags: ["person-controller"]
---

# Get a JWT from the auth request

`POST /api/persons/{personId}/jwts`

Validate the person's authentication request and issue a JWT for the person.

## Path parameters

- `personId` string, required

## Request body

- AuthRequestReq
  - `fidoAuthRequest` string
  - `fidoAuthResponse` string
  - `fidoResponseMessage` string
  - `id` string
  - `status` 'ERROR' | 'FAILED' | 'PENDING' | 'SUCCESS'
  - `token` JWTTokenReq
    - `aud` string
    - `claims` object
    - `det` string
    - `dst` string
    - `encodedToken` string
    - `exp` integer
    - `iat` integer
    - `id` string
    - `iss` string
    - `jti` string
    - `kid` string
    - `nbf` integer
    - `noe` integer
    - `scope` string
    - `status` string
    - `sub` string
    - `tokenType` string

## Response `201`

Created

- AuthRequestRes
  - `fidoAuthRequest` string
  - `fidoAuthResponse` string
  - `fidoResponseMessage` string
  - `id` string
  - `status` 'ERROR' | 'FAILED' | 'PENDING' | 'SUCCESS'
  - `token` JWTTokenRes
    - `aud` string
    - `claims` object
    - `credentialTypeHref` string
    - `det` string
    - `dst` string
    - `encodedToken` string
    - `exp` integer
    - `iat` integer
    - `id` string
    - `iss` string
    - `jti` string
    - `kid` string
    - `nbf` integer
    - `noe` integer
    - `scope` string
    - `scopesAsList` string[]
    - `scopesAsSet` string[]
    - `status` string
    - `sub` string
    - `tokenType` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Unexpected error in processing the request.

---

[API](https://skmtc.dev/myverifly/apis/api-documentation.md) · [All operations](https://skmtc.dev/myverifly/apis/api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/myverifly/api-documentation/revisions/03f300608c33/schema)
