---
title: "POST /Oauth/token"
method: POST
path: "/Oauth/token"
tags: ["Oauth"]
---

# POST /Oauth/token

`POST /Oauth/token`

## Request

- Base URL: `https://connectapi.medrio.com` (the document declares no server; this is the origin it was published from)
- URL: `https://connectapi.medrio.com/Oauth/token`
- Auth: API key in header `Authorization`

## Request body `application/x-www-form-urlencoded`

- object
  - `UserName` string, string, nullable
  - `Password` string, password, nullable
  - `GrantType` string, string, nullable
  - `RefreshToken` string, string, nullable
  - `CustomerApiKey` string, string, nullable

## Response `200`

Success

- OAuthResponseModel
  - `accessToken` string, required
  - `expiresIn` integer, required
  - `tokenType` string, required
  - `refreshToken` string, nullable
  - `userName` string, required
  - `userId` string, required
  - `isTFAEnabled` boolean
  - `expiresUtc` string, date-time
  - `issuedUtc` string, date-time
  - `internalServiceName` string, nullable

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/medrio/apis/medrio-openapi-v-42-14-0-201.md) - [All operations](https://skmtc.dev/medrio/apis/medrio-openapi-v-42-14-0-201/llms.txt) - [OpenAPI document](https://skmtc.dev/medrio/apis/medrio-openapi-v-42-14-0-201/revisions/17293ddcbc0b?raw)
