LangChain hub_environments API

The hub_environments API from LangChain — 2 operation(s) for hub_environments.

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-hub-environments-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 email required.

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

OpenAPI Specification

langchain-hub-environments-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: LangSmith access_policies hub_environments 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: hub_environments
paths:
  /api/v1/hub/environments:
    get:
      security:
      - API Key: []
      - Tenant ID: []
      - Bearer Auth: []
      description: 'Returns the hub environments model for the current tenant.

        Returns 404 if no custom configuration exists.'
      tags:
      - hub_environments
      summary: List hub environments
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.HubEnvironmentsModel'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.ErrorResponse'
      parameters: []
    post:
      security:
      - API Key: []
      - Tenant ID: []
      - Bearer Auth: []
      description: Creates the hub environments configuration for the current tenant.
      tags:
      - hub_environments
      summary: Create hub environments model
      parameters: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.HubEnvironmentsModel'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.ErrorResponse'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hub_environments.CreateEnvironmentsRequest'
  /api/v1/hub/environments/{id}:
    delete:
      security:
      - API Key: []
      - Tenant ID: []
      - Bearer Auth: []
      description: Deletes the hub environments configuration. Tenant reverts to defaults.
      tags:
      - hub_environments
      summary: Delete hub environments model
      parameters:
      - description: Model ID
        name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.ErrorResponse'
    patch:
      security:
      - API Key: []
      - Tenant ID: []
      - Bearer Auth: []
      description: Replaces the environments array on an existing model.
      tags:
      - hub_environments
      summary: Update hub environments model
      parameters:
      - description: Model ID
        name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.HubEnvironmentsModel'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hub_environments.ErrorResponse'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hub_environments.UpdateEnvironmentsRequest'
components:
  schemas:
    hub_environments.CreateEnvironmentsRequest:
      type: object
      required:
      - environments
      properties:
        environments:
          type: array
          maxItems: 4
          minItems: 1
          items:
            $ref: '#/components/schemas/hub_environments.EnvironmentEntry'
    hub_environments.ErrorResponse:
      type: object
      properties:
        error:
          type: string
    hub_environments.UpdateEnvironmentsRequest:
      type: object
      required:
      - environments
      properties:
        environments:
          type: array
          maxItems: 4
          items:
            $ref: '#/components/schemas/hub_environments.EnvironmentEntry'
    hub_environments.EnvironmentEntry:
      type: object
      required:
      - name
      properties:
        name:
          type: string
          maxLength: 64
          minLength: 1
    hub_environments.HubEnvironmentsModel:
      type: object
      properties:
        environments:
          type: array
          items:
            $ref: '#/components/schemas/hub_environments.EnvironmentEntry'
        id:
          type: string
  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