---
title: "Performing external authentication"
method: POST
path: "/authenticate"
tags: ["Authentication"]
---

# Performing external authentication

`POST /authenticate`

The API will return a 200 response if the credentials are correct, a 400 response if either login or password is not provided or 401 if the provided credentials are incorrect.
Authentication used to gain Rest API session.

## Request body

- object
  - `login` string
  - `password` string

## Response `200`

OK

- object

## Other responses

- `401` — Access denied

## Changes

- **2023-02-28** `910d3ad08e09` — 2 info
  - api operation id `externalAuthentication` was added
  - added the non-success response with the status `401`
- **2023-02-23** `9c09a2aad349` — 2 warning, 5 info
  - removed the optional property `description` from the response with the `200` status
  - removed the optional property `error` from the response with the `200` status
  - api operation id `externalAuthentication` removed and replaced with ``
  - the request property `login` became optional
  - …3 more

[Change history](https://skmtc.dev/netxms/apis/netxms-rest-api/changes/authenticate/post.md)

---

[API](https://skmtc.dev/netxms/apis/netxms-rest-api.md) · [All operations](https://skmtc.dev/netxms/apis/netxms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netxms/netxms-rest-api/revisions/910d3ad08e09/schema)
