OpenAI APIs · Capability

OpenAI APIs OpenAI Assistants API — Threads

OpenAI APIs OpenAI Assistants API — Threads. 4 operations. Lead operation: OpenAI APIs Create thread. Self-contained Naftiko capability covering one Openai Apis business surface.

Run with Naftiko Openai ApisThreads

What You Can Do

POST
Createthread — OpenAI APIs Create thread
/v1/threads
GET
Getthread — OpenAI APIs Retrieve thread
/v1/threads/{thread-id}
POST
Modifythread — OpenAI APIs Modify thread
/v1/threads/{thread-id}
DELETE
Deletethread — OpenAI APIs Delete thread
/v1/threads/{thread-id}

MCP Tools

openai-apis-create-thread

OpenAI APIs Create thread

openai-apis-retrieve-thread

OpenAI APIs Retrieve thread

read-only idempotent
openai-apis-modify-thread

OpenAI APIs Modify thread

openai-apis-delete-thread

OpenAI APIs Delete thread

idempotent

Capability Spec

openai-assistants-threads.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenAI APIs OpenAI Assistants API — Threads
  description: 'OpenAI APIs OpenAI Assistants API — Threads. 4 operations. Lead operation: OpenAI APIs Create thread. Self-contained
    Naftiko capability covering one Openai Apis business surface.'
  tags:
  - Openai Apis
  - Threads
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPENAI_APIS_API_KEY: OPENAI_APIS_API_KEY
capability:
  consumes:
  - type: http
    namespace: openai-assistants-threads
    baseUri: https://api.openai.com/v1
    description: OpenAI APIs OpenAI Assistants API — Threads business capability. Self-contained, no shared references.
    resources:
    - name: threads
      path: /threads
      operations:
      - name: createthread
        method: POST
        description: OpenAI APIs Create thread
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: threads-thread_id
      path: /threads/{thread_id}
      operations:
      - name: getthread
        method: GET
        description: OpenAI APIs Retrieve thread
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: modifythread
        method: POST
        description: OpenAI APIs Modify thread
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletethread
        method: DELETE
        description: OpenAI APIs Delete thread
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.OPENAI_APIS_API_KEY}}'
  exposes:
  - type: rest
    namespace: openai-assistants-threads-rest
    port: 8080
    description: REST adapter for OpenAI APIs OpenAI Assistants API — Threads. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/threads
      name: threads
      description: REST surface for threads.
      operations:
      - method: POST
        name: createthread
        description: OpenAI APIs Create thread
        call: openai-assistants-threads.createthread
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/threads/{thread-id}
      name: threads-thread-id
      description: REST surface for threads-thread_id.
      operations:
      - method: GET
        name: getthread
        description: OpenAI APIs Retrieve thread
        call: openai-assistants-threads.getthread
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: modifythread
        description: OpenAI APIs Modify thread
        call: openai-assistants-threads.modifythread
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletethread
        description: OpenAI APIs Delete thread
        call: openai-assistants-threads.deletethread
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openai-assistants-threads-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenAI APIs OpenAI Assistants API — Threads. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: openai-apis-create-thread
      description: OpenAI APIs Create thread
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openai-assistants-threads.createthread
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: openai-apis-retrieve-thread
      description: OpenAI APIs Retrieve thread
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openai-assistants-threads.getthread
      outputParameters:
      - type: object
        mapping: $.
    - name: openai-apis-modify-thread
      description: OpenAI APIs Modify thread
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openai-assistants-threads.modifythread
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: openai-apis-delete-thread
      description: OpenAI APIs Delete thread
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: openai-assistants-threads.deletethread
      outputParameters:
      - type: object
        mapping: $.