---
title: "Authenticate"
method: POST
path: "/auth"
tags: ["auth"]
---

# Authenticate

`POST /auth`

**Access policy**: public
Use this environment(endpoint) to authenticate against Portainer using a username and password.

## Request body

- AuthAuthenticatePayload
  - `Password` string, required — Password
  - `Username` string, required — Username

## Response `200`

Success

- AuthAuthenticateResponse
  - `jwt` string — JWT token used to authenticate against the API

## Other responses

- `400` — Invalid request
- `422` — Invalid Credentials
- `500` — Server error

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
