Vapi · Capability

Vapi API — Structured Outputs

Vapi API — Structured Outputs. 6 operations. Lead operation: List Structured Outputs. Self-contained Naftiko capability covering one Vapi business surface.

Run with Naftiko VapiStructured Outputs

What You Can Do

GET
Structuredoutputcontrollerfindall — List Structured Outputs
/v1/structured-output
POST
Structuredoutputcontrollercreate — Create Structured Output
/v1/structured-output
POST
Structuredoutputcontrollerrun — Run Structured Output
/v1/structured-output/run
GET
Structuredoutputcontrollerfindone — Get Structured Output
/v1/structured-output/{id}
PATCH
Structuredoutputcontrollerupdate — Update Structured Output
/v1/structured-output/{id}
DELETE
Structuredoutputcontrollerremove — Delete Structured Output
/v1/structured-output/{id}

MCP Tools

list-structured-outputs

List Structured Outputs

read-only idempotent
create-structured-output

Create Structured Output

run-structured-output

Run Structured Output

get-structured-output

Get Structured Output

read-only idempotent
update-structured-output

Update Structured Output

idempotent
delete-structured-output

Delete Structured Output

idempotent

Capability Spec

vapi-structured-outputs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Vapi API — Structured Outputs
  description: 'Vapi API — Structured Outputs. 6 operations. Lead operation: List Structured Outputs. Self-contained Naftiko
    capability covering one Vapi business surface.'
  tags:
  - Vapi
  - Structured Outputs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    VAPI_API_KEY: VAPI_API_KEY
capability:
  consumes:
  - type: http
    namespace: vapi-structured-outputs
    baseUri: https://api.vapi.ai
    description: Vapi API — Structured Outputs business capability. Self-contained, no shared references.
    resources:
    - name: structured-output
      path: /structured-output
      operations:
      - name: structuredoutputcontrollerfindall
        method: GET
        description: List Structured Outputs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: query
          type: string
          description: This will return structured outputs where the id matches the specified value.
        - name: name
          in: query
          type: string
          description: This will return structured outputs where the name matches the specified value.
        - name: page
          in: query
          type: number
          description: This is the page number to return. Defaults to 1.
        - name: sortOrder
          in: query
          type: string
          description: This is the sort order for pagination. Defaults to 'DESC'.
        - name: sortBy
          in: query
          type: string
          description: This is the column to sort by. Defaults to 'createdAt'.
        - name: limit
          in: query
          type: number
          description: This is the maximum number of items to return. Defaults to 100.
        - name: createdAtGt
          in: query
          type: string
          description: This will return items where the createdAt is greater than the specified value.
        - name: createdAtLt
          in: query
          type: string
          description: This will return items where the createdAt is less than the specified value.
        - name: createdAtGe
          in: query
          type: string
          description: This will return items where the createdAt is greater than or equal to the specified value.
        - name: createdAtLe
          in: query
          type: string
          description: This will return items where the createdAt is less than or equal to the specified value.
        - name: updatedAtGt
          in: query
          type: string
          description: This will return items where the updatedAt is greater than the specified value.
        - name: updatedAtLt
          in: query
          type: string
          description: This will return items where the updatedAt is less than the specified value.
        - name: updatedAtGe
          in: query
          type: string
          description: This will return items where the updatedAt is greater than or equal to the specified value.
        - name: updatedAtLe
          in: query
          type: string
          description: This will return items where the updatedAt is less than or equal to the specified value.
      - name: structuredoutputcontrollercreate
        method: POST
        description: Create Structured Output
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: structured-output-run
      path: /structured-output/run
      operations:
      - name: structuredoutputcontrollerrun
        method: POST
        description: Run Structured Output
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: structured-output-id
      path: /structured-output/{id}
      operations:
      - name: structuredoutputcontrollerfindone
        method: GET
        description: Get Structured Output
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: structuredoutputcontrollerupdate
        method: PATCH
        description: Update Structured Output
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: schemaOverride
          in: query
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: structuredoutputcontrollerremove
        method: DELETE
        description: Delete Structured Output
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.VAPI_API_KEY}}'
  exposes:
  - type: rest
    namespace: vapi-structured-outputs-rest
    port: 8080
    description: REST adapter for Vapi API — Structured Outputs. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/structured-output
      name: structured-output
      description: REST surface for structured-output.
      operations:
      - method: GET
        name: structuredoutputcontrollerfindall
        description: List Structured Outputs
        call: vapi-structured-outputs.structuredoutputcontrollerfindall
        with:
          id: rest.id
          name: rest.name
          page: rest.page
          sortOrder: rest.sortOrder
          sortBy: rest.sortBy
          limit: rest.limit
          createdAtGt: rest.createdAtGt
          createdAtLt: rest.createdAtLt
          createdAtGe: rest.createdAtGe
          createdAtLe: rest.createdAtLe
          updatedAtGt: rest.updatedAtGt
          updatedAtLt: rest.updatedAtLt
          updatedAtGe: rest.updatedAtGe
          updatedAtLe: rest.updatedAtLe
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: structuredoutputcontrollercreate
        description: Create Structured Output
        call: vapi-structured-outputs.structuredoutputcontrollercreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/structured-output/run
      name: structured-output-run
      description: REST surface for structured-output-run.
      operations:
      - method: POST
        name: structuredoutputcontrollerrun
        description: Run Structured Output
        call: vapi-structured-outputs.structuredoutputcontrollerrun
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/structured-output/{id}
      name: structured-output-id
      description: REST surface for structured-output-id.
      operations:
      - method: GET
        name: structuredoutputcontrollerfindone
        description: Get Structured Output
        call: vapi-structured-outputs.structuredoutputcontrollerfindone
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: structuredoutputcontrollerupdate
        description: Update Structured Output
        call: vapi-structured-outputs.structuredoutputcontrollerupdate
        with:
          id: rest.id
          schemaOverride: rest.schemaOverride
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: structuredoutputcontrollerremove
        description: Delete Structured Output
        call: vapi-structured-outputs.structuredoutputcontrollerremove
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: vapi-structured-outputs-mcp
    port: 9090
    transport: http
    description: MCP adapter for Vapi API — Structured Outputs. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-structured-outputs
      description: List Structured Outputs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vapi-structured-outputs.structuredoutputcontrollerfindall
      with:
        id: tools.id
        name: tools.name
        page: tools.page
        sortOrder: tools.sortOrder
        sortBy: tools.sortBy
        limit: tools.limit
        createdAtGt: tools.createdAtGt
        createdAtLt: tools.createdAtLt
        createdAtGe: tools.createdAtGe
        createdAtLe: tools.createdAtLe
        updatedAtGt: tools.updatedAtGt
        updatedAtLt: tools.updatedAtLt
        updatedAtGe: tools.updatedAtGe
        updatedAtLe: tools.updatedAtLe
      outputParameters:
      - type: object
        mapping: $.
    - name: create-structured-output
      description: Create Structured Output
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: vapi-structured-outputs.structuredoutputcontrollercreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: run-structured-output
      description: Run Structured Output
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: vapi-structured-outputs.structuredoutputcontrollerrun
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-structured-output
      description: Get Structured Output
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vapi-structured-outputs.structuredoutputcontrollerfindone
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-structured-output
      description: Update Structured Output
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: vapi-structured-outputs.structuredoutputcontrollerupdate
      with:
        id: tools.id
        schemaOverride: tools.schemaOverride
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-structured-output
      description: Delete Structured Output
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: vapi-structured-outputs.structuredoutputcontrollerremove
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.