---
title: "Login generates the authentication token"
method: POST
path: "/login"
---

# Login generates the authentication token

`POST /login`

## Request body

- object

## Response `200`

{"code":0,"message":"OK","data":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1MjgwMTY5MjIsImlkIjowLCJuYmYiOjE1MjgwMTY5MjIsInVzZXJuYW1lIjoiYWRtaW4ifQ.LjxrK9DuAwAzUD8-9v43NzWBN7HXsSLfebw92DKd1JQ"}}

- string

---

[API](https://skmtc.dev/golearnku/apis/tapi-blog-example-api.md) · [All operations](https://skmtc.dev/golearnku/apis/tapi-blog-example-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/golearnku/tapi-blog-example-api/revisions/a44ba956919c/schema)
