OpenAI · Capability

OpenAI Responses — Responses

OpenAI Responses — Responses. Self-contained Naftiko capability covering the Responses API, OpenAI's unified interface combining Chat Completions and Assistants strengths with built-in tools (web_search, file_search, computer_use, code_interpreter, image_generation).

OpenAI Responses — Responses is a Naftiko capability published by OpenAI, one of 20 capabilities the APIs.io network indexes for this provider. It bundles 2 operations across the POST and GET methods rooted at /v1/responses.

The capability includes 1 read-only operation and 2 state-changing operations. Lead operation: Create a model response with optional tools and streaming. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Openai, Responses, and Agents.

Run with Naftiko OpenaiResponsesAgents

What You Can Do

POST
Createresponse — Create a model response.
/v1/responses
GET
Listresponses — List responses.
/v1/responses

MCP Tools

openai-create-response

Create a model response with optional tools and streaming.

openai-get-response

Retrieve a response by ID.

read-only idempotent
openai-cancel-response

Cancel an in-progress response.

idempotent

Capability Spec

responses-responses.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenAI Responses — Responses
  description: 'OpenAI Responses — Responses. Self-contained Naftiko capability covering the Responses API,
    OpenAI''s unified interface combining Chat Completions and Assistants strengths with built-in tools
    (web_search, file_search, computer_use, code_interpreter, image_generation).'
  tags:
  - Openai
  - Responses
  - Agents
  created: '2026-05-22'
  modified: '2026-05-22'
binds:
- namespace: env
  keys:
    OPENAI_API_KEY: OPENAI_API_KEY
capability:
  consumes:
  - type: http
    namespace: responses-responses
    baseUri: https://api.openai.com/v1
    description: OpenAI Responses — Responses business capability. Self-contained, no shared references.
    resources:
    - name: responses
      path: /responses
      operations:
      - name: createresponse
        method: POST
        description: Create a model response. Supports text and image inputs, tool use, and streaming.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listresponses
        method: GET
        description: List responses.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: response
      path: /responses/{response_id}
      operations:
      - name: getresponse
        method: GET
        description: Retrieve a response by ID.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: response_id
          in: path
          type: string
          required: true
      - name: deleteresponse
        method: DELETE
        description: Delete a response by ID.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: response_id
          in: path
          type: string
          required: true
    - name: response-cancel
      path: /responses/{response_id}/cancel
      operations:
      - name: cancelresponse
        method: POST
        description: Cancel an in-progress response.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: response_id
          in: path
          type: string
          required: true
    - name: response-input-items
      path: /responses/{response_id}/input_items
      operations:
      - name: listresponseinputitems
        method: GET
        description: List the input items associated with a response.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: response_id
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.OPENAI_API_KEY}}'
  exposes:
  - type: rest
    namespace: responses-responses-rest
    port: 8080
    description: REST adapter for OpenAI Responses — Responses. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/responses
      name: responses
      description: REST surface for responses.
      operations:
      - method: POST
        name: createresponse
        description: Create a model response.
        call: responses-responses.createresponse
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listresponses
        description: List responses.
        call: responses-responses.listresponses
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: responses-responses-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenAI Responses — Responses.
    tools:
    - name: openai-create-response
      description: Create a model response with optional tools and streaming.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: responses-responses.createresponse
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: openai-get-response
      description: Retrieve a response by ID.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: responses-responses.getresponse
      with:
        response_id: tools.response_id
      outputParameters:
      - type: object
        mapping: $.
    - name: openai-cancel-response
      description: Cancel an in-progress response.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: responses-responses.cancelresponse
      with:
        response_id: tools.response_id
      outputParameters:
      - type: object
        mapping: $.