---
title: "Authenticate a user."
method: POST
path: "/api/v2/Authentication"
tags: ["Authentication"]
---

# Authenticate a user.

`POST /api/v2/Authentication`

## Request

- Base URL: `https://secure.agco-ats.com`
- URL: `https://secure.agco-ats.com/api/v2/Authentication`
- Auth: none declared

No Documentation Found.

## Request body

- APIModelsCredentials
  - `username` string, required: A unique ID a user needs to login with
  - `password` string, required: A secret word or phrase that must be used to gain admission
  - `BearerAction` 'None' | 'Reset' | 'Disable': The action to perform on the bearer token. Optional. Defaults to ‘None’.
  - `MACAction` 'None' | 'Reset' | 'Disable': The action to perform on the MAC token. Optional. Defaults to ‘None’.

## Response `200`

OK

- APIModelsAuthenticatedUser
  - `UserID` integer: The user ID
  - `Name` string: The user's name
  - `Username` string: The username used for authentication
  - `Email` string: The user's email address
  - `Token` string: The token to use for API access
  - `MACToken` string: The MAC token to use for API access
  - `MACId` string: The MAC identifier to use for API access
  - `ExpiresIn` integer: How long the access token is valid, in seconds.
  - `RefreshToken` string: A refresh token used to request an updated Access Token.

---

[API](https://skmtc.dev/agco-ats/apis/agco-ats-api.md) - [All operations](https://skmtc.dev/agco-ats/apis/agco-ats-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agco-ats/apis/agco-ats-api/revisions/8b416443df5c?raw)
