LangChain auth API

The auth API from LangChain — 7 operation(s) for auth.

Operations 7

POST /api/v1/login Login #
POST /api/v1/sso/email-verification/send Send Sso Email Confirmation #
POST /api/v1/sso/email-verification/status Check Sso Email Verification Status #
POST /api/v1/sso/email-verification/confirm Confirm Sso User Email #
GET /api/v1/sso/settings/{sso_login_slug} Get Sso Settings #
POST /api/v1/sso/email-lookup Lookup Sso By Email #
GET /auth/public Get public auth info

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/langchain-auth-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

langchain-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LangSmith access_policies Auth API
  description: 'The LangSmith API is used to programmatically create and manage LangSmith resources.


    ## Host

    https://api.smith.langchain.com


    ## Authentication

    To authenticate with the LangSmith API, set the `X-Api-Key` header

    to a valid [LangSmith API key](https://docs.langchain.com/langsmith/create-account-api-key#create-an-api-key).


    '
  version: 0.1.0
servers:
- url: /
tags:
- name: auth
paths:
  /api/v1/login:
    post:
      tags:
      - auth
      summary: Login
      operationId: login_api_v1_login_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BasicAuthResponse'
  /api/v1/sso/email-verification/send:
    post:
      tags:
      - auth
      summary: Send Sso Email Confirmation
      description: Send an email to confirm the email address for an SSO user.
      operationId: send_sso_email_confirmation_api_v1_sso_email_verification_send_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SSOEmailVerificationSendRequest'
        required: true
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Send Sso Email Confirmation Api V1 Sso Email Verification Send Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - Bearer Auth: []
  /api/v1/sso/email-verification/status:
    post:
      tags:
      - auth
      summary: Check Sso Email Verification Status
      description: Retrieve the email verification status of an SSO user.
      operationId: check_sso_email_verification_status_api_v1_sso_email_verification_status_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SSOEmailVerificationStatusRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SSOEmailVerificationStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/sso/email-verification/confirm:
    post:
      tags:
      - auth
      summary: Confirm Sso User Email
      description: Confirm the email of an SSO user.
      operationId: confirm_sso_user_email_api_v1_sso_email_verification_confirm_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SSOConfirmEmailRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Confirm Sso User Email Api V1 Sso Email Verification Confirm Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/sso/settings/{sso_login_slug}:
    get:
      tags:
      - auth
      summary: Get Sso Settings
      description: Get SSO provider settings from login slug.
      operationId: get_sso_settings_api_v1_sso_settings__sso_login_slug__get
      parameters:
      - name: sso_login_slug
        in: path
        required: true
        schema:
          type: string
          title: Sso Login Slug
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SSOProviderSlim'
                title: Response Get Sso Settings Api V1 Sso Settings  Sso Login Slug  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/sso/email-lookup:
    post:
      tags:
      - auth
      summary: Lookup Sso By Email
      description: Look up SSO providers available for a SCIM-provisioned email address.
      operationId: lookup_sso_by_email_api_v1_sso_email_lookup_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/_SSOEmailLookupRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/SSOProviderSlim'
                type: array
                title: Response Lookup Sso By Email Api V1 Sso Email Lookup Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /auth/public:
    get:
      security:
      - API Key: []
      - Tenant ID: []
      - Bearer Auth: []
      description: Returns public authentication information for the current workspace-level session.
      tags:
      - auth
      summary: Get public auth info
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/authn.PublicAuthInfo'
      parameters: []
components:
  schemas:
    _SSOEmailLookupRequest:
      properties:
        email:
          type: string
          title: Email
      type: object
      required:
      - email
      title: _SSOEmailLookupRequest
    authn.PublicAuthInfo:
      type: object
      properties:
        ls_user_id:
          type: string
        organization_id:
          type: string
        tenant_id:
          type: string
        user_email:
          type: string
        user_id:
          type: string
    BasicAuthResponse:
      properties:
        access_token:
          type: string
          title: Access Token
      type: object
      required:
      - access_token
      title: BasicAuthResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SSOProviderSlim:
      properties:
        provider_id:
          type: string
          format: uuid
          title: Provider Id
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        organization_display_name:
          type: string
          title: Organization Display Name
      type: object
      required:
      - provider_id
      - organization_id
      - organization_display_name
      title: SSOProviderSlim
    SSOEmailVerificationSendRequest:
      properties:
        email:
          type: string
          title: Email
        saml_provider_id:
          type: string
          format: uuid
          title: Saml Provider Id
      type: object
      required:
      - email
      - saml_provider_id
      title: SSOEmailVerificationSendRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    SSOEmailVerificationStatusRequest:
      properties:
        email:
          type: string
          title: Email
        saml_provider_id:
          type: string
          format: uuid
          title: Saml Provider Id
      type: object
      required:
      - email
      - saml_provider_id
      title: SSOEmailVerificationStatusRequest
    SSOConfirmEmailRequest:
      properties:
        token:
          type: string
          title: Token
      type: object
      required:
      - token
      title: SSOConfirmEmailRequest
    SSOEmailVerificationStatusResponse:
      properties:
        email_confirmed_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Email Confirmed At
      type: object
      title: SSOEmailVerificationStatusResponse
  securitySchemes:
    API_Key:
      type: apiKey
      in: header
      name: X-API-Key
    Tenant_ID:
      type: apiKey
      in: header
      name: X-Tenant-Id
    Bearer_Auth:
      type: http
      description: Bearer tokens are used to authenticate from the UI. Must also specify x-tenant-id or x-organization-id (for org scoped apis).
      scheme: bearer
    Organization_ID:
      type: apiKey
      in: header
      name: X-Organization-Id