AIMLAPI · Capability

AIMLAPI AI/ML API Documentation — Threads > Runs

AIMLAPI AI/ML API Documentation — Threads > Runs. 4 operations. Lead operation: AIMLAPI Get Runs. Self-contained Naftiko capability covering one Aimlapi business surface.

Run with Naftiko AimlapiThreads > Runs

What You Can Do

GET
Get — AIMLAPI Get Runs
/v1/threads/{threadid}/runs
POST
Post — AIMLAPI Create Run
/v1/threads/{threadid}/runs
POST
Post — AIMLAPI Update Run
/v1/threads/{threadid}/runs/{runid}
GET
Get — AIMLAPI Get Run
/v1/threads/{threadid}/runs/{runid}

MCP Tools

aimlapi-get-runs

AIMLAPI Get Runs

read-only idempotent
aimlapi-create-run

AIMLAPI Create Run

aimlapi-update-run

AIMLAPI Update Run

aimlapi-get-run

AIMLAPI Get Run

read-only idempotent

Capability Spec

aimlapi-threads-runs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: AIMLAPI AI/ML API Documentation — Threads > Runs
  description: 'AIMLAPI AI/ML API Documentation — Threads > Runs. 4 operations. Lead operation: AIMLAPI Get Runs. Self-contained
    Naftiko capability covering one Aimlapi business surface.'
  tags:
  - Aimlapi
  - Threads > Runs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AIMLAPI_API_KEY: AIMLAPI_API_KEY
capability:
  consumes:
  - type: http
    namespace: aimlapi-threads-runs
    baseUri: http://{{baseurl}}
    description: AIMLAPI AI/ML API Documentation — Threads > Runs business capability. Self-contained, no shared references.
    resources:
    - name: threads-threadId-runs
      path: /threads/{threadId}/runs
      operations:
      - name: get
        method: GET
        description: AIMLAPI Get Runs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: threadId
          in: path
          type: string
          required: true
      - name: post
        method: POST
        description: AIMLAPI Create Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: threadId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: threads-threadId-runs-runId
      path: /threads/{threadId}/runs/{runId}
      operations:
      - name: post
        method: POST
        description: AIMLAPI Update Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: threadId
          in: path
          type: string
          required: true
        - name: runId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: get
        method: GET
        description: AIMLAPI Get Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: threadId
          in: path
          type: string
          required: true
        - name: runId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.AIMLAPI_API_KEY}}'
  exposes:
  - type: rest
    namespace: aimlapi-threads-runs-rest
    port: 8080
    description: REST adapter for AIMLAPI AI/ML API Documentation — Threads > Runs. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/threads/{threadid}/runs
      name: threads-threadid-runs
      description: REST surface for threads-threadId-runs.
      operations:
      - method: GET
        name: get
        description: AIMLAPI Get Runs
        call: aimlapi-threads-runs.get
        with:
          threadId: rest.threadId
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: AIMLAPI Create Run
        call: aimlapi-threads-runs.post
        with:
          threadId: rest.threadId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/threads/{threadid}/runs/{runid}
      name: threads-threadid-runs-runid
      description: REST surface for threads-threadId-runs-runId.
      operations:
      - method: POST
        name: post
        description: AIMLAPI Update Run
        call: aimlapi-threads-runs.post
        with:
          threadId: rest.threadId
          runId: rest.runId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: get
        description: AIMLAPI Get Run
        call: aimlapi-threads-runs.get
        with:
          threadId: rest.threadId
          runId: rest.runId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: aimlapi-threads-runs-mcp
    port: 9090
    transport: http
    description: MCP adapter for AIMLAPI AI/ML API Documentation — Threads > Runs. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: aimlapi-get-runs
      description: AIMLAPI Get Runs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: aimlapi-threads-runs.get
      with:
        threadId: tools.threadId
      outputParameters:
      - type: object
        mapping: $.
    - name: aimlapi-create-run
      description: AIMLAPI Create Run
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: aimlapi-threads-runs.post
      with:
        threadId: tools.threadId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: aimlapi-update-run
      description: AIMLAPI Update Run
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: aimlapi-threads-runs.post
      with:
        threadId: tools.threadId
        runId: tools.runId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: aimlapi-get-run
      description: AIMLAPI Get Run
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: aimlapi-threads-runs.get
      with:
        threadId: tools.threadId
        runId: tools.runId
      outputParameters:
      - type: object
        mapping: $.