---
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

---

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