---
title: "Authenticate with OAuth"
method: POST
path: "/auth/oauth/validate"
tags: ["auth"]
---

# Authenticate with OAuth

`POST /auth/oauth/validate`

**Access policy**: public

## Request body

- AuthOauthPayload
  - `Code` string — OAuth code returned from OAuth Provided

## 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)
