agents

Creates an Agent with a caller-assigned ID. Returns 409 if the ID already exists. Creates all four environments unless production_only is set for a FLEET agent. agent_type defaults to CUSTOM. The authenticated user becomes the owner when available. Requires permission to create projects. The response does not include runtime bindings.

post/api/v1/agents

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/api/v1/agents
  • Auth
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

Request body

agent_type'CUSTOM' | 'CODING'
idstring required

Unique agent identifier: 1-63 lowercase letters, digits, or hyphens, starting with a letter and ending with a letter or digit.

namestring

Display name. Defaults to the agent ID.

production_onlyboolean

ProductionOnly creates only the PRODUCTION environment. It is accepted only when SourceType is FLEET; other sources always get all four environments.

source_type'LSD' | 'MDA' | 'EXTERNAL' | 'FLEET' required

Response

Created

agent_type'CUSTOM' | 'CODING' required
avatar_urlstring nullable

AvatarURL is a short-lived URL for the agent avatar, when present.

created_atstring date-time required
idstring required
namestring required
ownerstring

Owner is the owner's full name, falling back to email when available.

owner_idstring uuid nullable
source_type'LSD' | 'MDA' | 'EXTERNAL' | 'FLEET' required
tag_key_idstring uuid nullable
tag_value_idstring uuid nullable

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status