---
title: "POST /oauth2/token"
method: POST
path: "/oauth2/token"
tags: ["user", "auth"]
---

# POST /oauth2/token

`POST /oauth2/token`

Returns a JWT Token and UUID attached to user

## Request body

- UserLogin
  - `password` string, required
  - `username` string, required

## Response `201`

UserLoginSuccessResponse

- UserLoginSuccessResponse
  - `scope` string — the uuid
  - `token` string — the token
  - `user` object — the uuid
    - `admin` boolean

## Other responses

- `400` — FailureResponse

## Changes

- **2021-11-03** `8b089db7394c` — 1 info
  - endpoint added
- **2020-01-12** `52987c8da72a` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/sipcapture/apis/homer-app/changes/oauth2/token/post.md)

---

[API](https://skmtc.dev/sipcapture/apis/homer-app.md) · [All operations](https://skmtc.dev/sipcapture/apis/homer-app/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sipcapture/homer-app/revisions/2f261ecc6074/schema)
