Skip to main content
POST
/
mcp-servers
/
{mcp_server_id}
/
oauth-provider
Register per-user MCP OAuth provider
curl --request POST \
  --url https://api.smith.langchain.com/v1/deepagents/mcp-servers/{mcp_server_id}/oauth-provider \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{}'
{ "oauth_provider_id": "<string>" }

Documentation Index

Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-vicmda-1780088974-0fb0763.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Api-Key
string
header
default:LANGSMITH_API_KEY
required

Path Parameters

mcp_server_id
string<uuid>
required

MCP server ID.

Body

application/json
ls_user_id
string

Deprecated. User identity is inferred from the authenticated request when available.

Response

OAuth provider registered or returned.

oauth_provider_id
string

OAuth provider ID to use when starting an authorization session.