---
title: "Generate Auth Code"
method: POST
path: "/login"
---

# Generate Auth Code

`POST /login`

Generate Auth Code using id_token

## Request body

- object
  - `client_id` string
  - `client_secret` string
  - `id_token` string — ID token should be generated using the Private Key.

## Response `200`

200

- object
  - `authcode` string

## Other responses

- `400` — 400
- `401` — 401
- `403` — 403
- `500` — 500

---

[API](https://skmtc.net/stockal/apis/uat-client-api-v2.md) · [All operations](https://skmtc.net/stockal/apis/uat-client-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stockal/uat-client-api-v2/versions/08e36bbbd3be/schema)
