naftiko: 1.0.0-alpha2 info: label: Vapi API — Assistants description: 'Vapi API — Assistants. 5 operations. Lead operation: Create Assistant. Self-contained Naftiko capability covering one Vapi business surface.' tags: - Vapi - Assistants created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: VAPI_API_KEY: VAPI_API_KEY capability: consumes: - type: http namespace: vapi-assistants baseUri: https://api.vapi.ai description: Vapi API — Assistants business capability. Self-contained, no shared references. resources: - name: assistant path: /assistant operations: - name: assistantcontrollercreate method: POST description: Create Assistant outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: assistantcontrollerfindall method: GET description: List Assistants outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - 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: assistant-id path: /assistant/{id} operations: - name: assistantcontrollerfindone method: GET description: Get Assistant outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: assistantcontrollerupdate method: PATCH description: Update Assistant outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: assistantcontrollerremove method: DELETE description: Delete Assistant 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-assistants-rest port: 8080 description: REST adapter for Vapi API — Assistants. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/assistant name: assistant description: REST surface for assistant. operations: - method: POST name: assistantcontrollercreate description: Create Assistant call: vapi-assistants.assistantcontrollercreate with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: assistantcontrollerfindall description: List Assistants call: vapi-assistants.assistantcontrollerfindall with: 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: $. - path: /v1/assistant/{id} name: assistant-id description: REST surface for assistant-id. operations: - method: GET name: assistantcontrollerfindone description: Get Assistant call: vapi-assistants.assistantcontrollerfindone with: id: rest.id outputParameters: - type: object mapping: $. - method: PATCH name: assistantcontrollerupdate description: Update Assistant call: vapi-assistants.assistantcontrollerupdate with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: assistantcontrollerremove description: Delete Assistant call: vapi-assistants.assistantcontrollerremove with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: vapi-assistants-mcp port: 9090 transport: http description: MCP adapter for Vapi API — Assistants. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: create-assistant description: Create Assistant hints: readOnly: false destructive: false idempotent: false call: vapi-assistants.assistantcontrollercreate with: body: tools.body outputParameters: - type: object mapping: $. - name: list-assistants description: List Assistants hints: readOnly: true destructive: false idempotent: true call: vapi-assistants.assistantcontrollerfindall with: 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: get-assistant description: Get Assistant hints: readOnly: true destructive: false idempotent: true call: vapi-assistants.assistantcontrollerfindone with: id: tools.id outputParameters: - type: object mapping: $. - name: update-assistant description: Update Assistant hints: readOnly: false destructive: false idempotent: true call: vapi-assistants.assistantcontrollerupdate with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: delete-assistant description: Delete Assistant hints: readOnly: false destructive: true idempotent: true call: vapi-assistants.assistantcontrollerremove with: id: tools.id outputParameters: - type: object mapping: $.