---
title: "Get OAuth2 authorization server metadata"
method: GET
path: "/.well-known/oauth-authorization-server"
tags: ["oauth"]
---

# Get OAuth2 authorization server metadata

`GET /.well-known/oauth-authorization-server`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/.well-known/oauth-authorization-server`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

Returns OAuth2 authorization server metadata per RFC 8414, including supported endpoints, grant types, and response types.

## Response `200`

OK

- OauthAuthorizationServerMetadata
  - `authorization_endpoint` string
  - `code_challenge_methods_supported` string[]
  - `device_authorization_endpoint` string
  - `grant_types_supported` string[]
  - `issuer` string
  - `jwks_uri` string
  - `protected_resources_supported` string[]
  - `registration_endpoint` string
  - `resource_parameter_supported` boolean
  - `response_types_supported` string[]
  - `revocation_endpoint` string
  - `scopes_supported` string[]
  - `token_endpoint` string
  - `token_endpoint_auth_methods_supported` string[]

## Other responses

- `500`: Internal Server Error

## Changes

- **2026-05-27** `a0acb3a6a101`: 3 info
  - added the optional property `protected_resources_supported` to the response with the `200` status
  - added the optional property `registration_endpoint` to the response with the `200` status
  - added the optional property `resource_parameter_supported` to the response with the `200` status
- **2026-04-30** `99490d1e837e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/.well-known/oauth-authorization-server/get.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/28621d1a347a?raw)
