---
title: "Verifies user or application authentication"
method: POST
path: "/api/v1/authentication"
tags: ["Authentication"]
---

# Verifies user or application authentication

`POST /api/v1/authentication`

Takes a user's login ID and password and checks them against the user rolls.

If the user is found and authenticated, a session is created.

Otherwise the system will return an 'authentication failed' message.

## Request body

- AuthenticationForm
  - `userId` string, required
  - `password` string, required
  - `rememberMe` boolean
  - `backEndLogin` boolean
  - `language` string
  - `country` string

## Response `200`

User authentication successful

- ResponseEntityUserMapView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` AuthenticationForm
    - `userId` string, required
    - `password` string, required
    - `rememberMe` boolean
    - `backEndLogin` boolean
    - `language` string
    - `country` string
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `401` — User not authenticated
- `403` — Forbidden request
- `415` — Unsupported Media Type
- `500` — Unexpected error

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anzworldline-solutions/dotcms-rest-api/revisions/0f38cbc3bd36/schema)
