---
title: "Login with PenguinID"
method: POST
path: "/PenguinStats/api/v2/users"
tags: ["Account"]
---

# Login with PenguinID

`POST /PenguinStats/api/v2/users`

## Response `200`

User ID. In the deprecated backend this is, for some reason, been implemented to return a JSON in the response body but with a `Content-Type: text/plain` in the response header instead of the correct `Content-Type: application/json`. So the v2 API has replicated this behavior to ensure compatibility.

## Other responses

- `500` — An unexpected error occurred

## Changes

- **2022-03-09** `aadf4ef7ee07` — 2 info
  - the endpoint scheme security `PenguinIDAuth` was added to the API
  - endpoint reactivated
- **2022-02-27** `2222bc4bbebb` — 1 info
  - endpoint added
- **2021-12-02** `8a0f5cfc9d22` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/penguin-statistics/apis/penguin-statistics-api/changes/PenguinStats/api/v2/users/post.md)

---

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