LangSmith · Capability

LangSmith — api-key

LangSmith — api-key. 6 operations. Lead operation: Get Api Keys. Self-contained Naftiko capability covering one Langsmith business surface.

Run with Naftiko Langsmithapi-key

What You Can Do

GET
Getapikeysapiv1apikeyget — Get Api Keys
/v1/api/v1/api-key
POST
Generateapikeyapiv1apikeypost — Generate Api Key
/v1/api/v1/api-key
GET
Getpersonalaccesstokensapiv1apikeycurrentget — Get Personal Access Tokens
/v1/api/v1/api-key/current
POST
Generatepersonalaccesstokenapiv1apikeycurrentpost — Generate Personal Access Token
/v1/api/v1/api-key/current
DELETE
Deletepersonalaccesstokenapiv1apikeycurrentpatiddelete — Delete Personal Access Token
/v1/api/v1/api-key/current/{pat-id}
DELETE
Deleteapikeyapiv1apikeyapikeyiddelete — Delete Api Key
/v1/api/v1/api-key/{api-key-id}

MCP Tools

get-api-keys

Get Api Keys

read-only idempotent
generate-api-key

Generate Api Key

get-personal-access-tokens

Get Personal Access Tokens

read-only idempotent
generate-personal-access-token

Generate Personal Access Token

delete-personal-access-token

Delete Personal Access Token

idempotent
delete-api-key

Delete Api Key

idempotent

Capability Spec

langsmith-api-key.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: LangSmith — api-key
  description: 'LangSmith — api-key. 6 operations. Lead operation: Get Api Keys. Self-contained Naftiko capability covering
    one Langsmith business surface.'
  tags:
  - Langsmith
  - api-key
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LANGSMITH_API_KEY: LANGSMITH_API_KEY
capability:
  consumes:
  - type: http
    namespace: langsmith-api-key
    baseUri: ''
    description: LangSmith — api-key business capability. Self-contained, no shared references.
    resources:
    - name: api-v1-api-key
      path: /api/v1/api-key
      operations:
      - name: getapikeysapiv1apikeyget
        method: GET
        description: Get Api Keys
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: generateapikeyapiv1apikeypost
        method: POST
        description: Generate Api Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-v1-api-key-current
      path: /api/v1/api-key/current
      operations:
      - name: getpersonalaccesstokensapiv1apikeycurrentget
        method: GET
        description: Get Personal Access Tokens
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: generatepersonalaccesstokenapiv1apikeycurrentpost
        method: POST
        description: Generate Personal Access Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-v1-api-key-current-pat_id
      path: /api/v1/api-key/current/{pat_id}
      operations:
      - name: deletepersonalaccesstokenapiv1apikeycurrentpatiddelete
        method: DELETE
        description: Delete Personal Access Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: pat_id
          in: path
          type: string
          required: true
    - name: api-v1-api-key-api_key_id
      path: /api/v1/api-key/{api_key_id}
      operations:
      - name: deleteapikeyapiv1apikeyapikeyiddelete
        method: DELETE
        description: Delete Api Key
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: api_key_id
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.LANGSMITH_API_KEY}}'
  exposes:
  - type: rest
    namespace: langsmith-api-key-rest
    port: 8080
    description: REST adapter for LangSmith — api-key. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/api/v1/api-key
      name: api-v1-api-key
      description: REST surface for api-v1-api-key.
      operations:
      - method: GET
        name: getapikeysapiv1apikeyget
        description: Get Api Keys
        call: langsmith-api-key.getapikeysapiv1apikeyget
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: generateapikeyapiv1apikeypost
        description: Generate Api Key
        call: langsmith-api-key.generateapikeyapiv1apikeypost
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/api-key/current
      name: api-v1-api-key-current
      description: REST surface for api-v1-api-key-current.
      operations:
      - method: GET
        name: getpersonalaccesstokensapiv1apikeycurrentget
        description: Get Personal Access Tokens
        call: langsmith-api-key.getpersonalaccesstokensapiv1apikeycurrentget
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: generatepersonalaccesstokenapiv1apikeycurrentpost
        description: Generate Personal Access Token
        call: langsmith-api-key.generatepersonalaccesstokenapiv1apikeycurrentpost
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/api-key/current/{pat-id}
      name: api-v1-api-key-current-pat-id
      description: REST surface for api-v1-api-key-current-pat_id.
      operations:
      - method: DELETE
        name: deletepersonalaccesstokenapiv1apikeycurrentpatiddelete
        description: Delete Personal Access Token
        call: langsmith-api-key.deletepersonalaccesstokenapiv1apikeycurrentpatiddelete
        with:
          pat_id: rest.pat_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v1/api-key/{api-key-id}
      name: api-v1-api-key-api-key-id
      description: REST surface for api-v1-api-key-api_key_id.
      operations:
      - method: DELETE
        name: deleteapikeyapiv1apikeyapikeyiddelete
        description: Delete Api Key
        call: langsmith-api-key.deleteapikeyapiv1apikeyapikeyiddelete
        with:
          api_key_id: rest.api_key_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: langsmith-api-key-mcp
    port: 9090
    transport: http
    description: MCP adapter for LangSmith — api-key. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-api-keys
      description: Get Api Keys
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: langsmith-api-key.getapikeysapiv1apikeyget
      outputParameters:
      - type: object
        mapping: $.
    - name: generate-api-key
      description: Generate Api Key
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: langsmith-api-key.generateapikeyapiv1apikeypost
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-personal-access-tokens
      description: Get Personal Access Tokens
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: langsmith-api-key.getpersonalaccesstokensapiv1apikeycurrentget
      outputParameters:
      - type: object
        mapping: $.
    - name: generate-personal-access-token
      description: Generate Personal Access Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: langsmith-api-key.generatepersonalaccesstokenapiv1apikeycurrentpost
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-personal-access-token
      description: Delete Personal Access Token
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: langsmith-api-key.deletepersonalaccesstokenapiv1apikeycurrentpatiddelete
      with:
        pat_id: tools.pat_id
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-api-key
      description: Delete Api Key
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: langsmith-api-key.deleteapikeyapiv1apikeyapikeyiddelete
      with:
        api_key_id: tools.api_key_id
      outputParameters:
      - type: object
        mapping: $.