---
title: "Authenticate to specified server"
method: POST
path: "/auth/{server}"
tags: ["Authentication"]
---

# Authenticate to specified server

`POST /auth/{server}`

## Request

- Base URL: `/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/v1/auth/{server}`
- Auth: none declared. Required headers: `X-Auth-Token`
- TypeScript: <https://skmtc.dev/neuvector/apis/neuvector-api/docs/auth/:server/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `server` string, required

## Headers

- `X-Auth-Token` string, required

## Request body

- RESTAuthData
  - `client_ip` string, required
  - `password` RESTAuthPassword
    - `username` string, required
    - `password` string, required
  - `Token` RESTAuthToken
    - `token` string, required
    - `state` string, required
    - `redirect_endpoint` string, required

## Response `200`

Success

---

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