Vapi · Capability
Vapi API — Campaigns
Vapi API — Campaigns. 5 operations. Lead operation: Create Campaign. Self-contained Naftiko capability covering one Vapi business surface.
What You Can Do
POST
Campaigncontrollercreate
— Create Campaign
/v1/campaign
GET
Campaigncontrollerfindall
— List Campaigns
/v1/campaign
GET
Campaigncontrollerfindone
— Get Campaign
/v1/campaign/{id}
PATCH
Campaigncontrollerupdate
— Update Campaign
/v1/campaign/{id}
DELETE
Campaigncontrollerremove
— Delete Campaign
/v1/campaign/{id}
MCP Tools
create-campaign
Create Campaign
list-campaigns
List Campaigns
read-only
idempotent
get-campaign
Get Campaign
read-only
idempotent
update-campaign
Update Campaign
idempotent
delete-campaign
Delete Campaign
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Vapi API — Campaigns
description: 'Vapi API — Campaigns. 5 operations. Lead operation: Create Campaign. Self-contained Naftiko capability covering
one Vapi business surface.'
tags:
- Vapi
- Campaigns
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
VAPI_API_KEY: VAPI_API_KEY
capability:
consumes:
- type: http
namespace: vapi-campaigns
baseUri: https://api.vapi.ai
description: Vapi API — Campaigns business capability. Self-contained, no shared references.
resources:
- name: campaign
path: /campaign
operations:
- name: campaigncontrollercreate
method: POST
description: Create Campaign
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: campaigncontrollerfindall
method: GET
description: List Campaigns
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: query
type: string
- name: status
in: query
type: string
- 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: campaign-id
path: /campaign/{id}
operations:
- name: campaigncontrollerfindone
method: GET
description: Get Campaign
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: string
required: true
- name: campaigncontrollerupdate
method: PATCH
description: Update Campaign
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: campaigncontrollerremove
method: DELETE
description: Delete Campaign
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-campaigns-rest
port: 8080
description: REST adapter for Vapi API — Campaigns. One Spectral-compliant resource per consumed operation, prefixed with
/v1.
resources:
- path: /v1/campaign
name: campaign
description: REST surface for campaign.
operations:
- method: POST
name: campaigncontrollercreate
description: Create Campaign
call: vapi-campaigns.campaigncontrollercreate
with:
body: rest.body
outputParameters:
- type: object
mapping: $.
- method: GET
name: campaigncontrollerfindall
description: List Campaigns
call: vapi-campaigns.campaigncontrollerfindall
with:
id: rest.id
status: rest.status
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: $.
- path: /v1/campaign/{id}
name: campaign-id
description: REST surface for campaign-id.
operations:
- method: GET
name: campaigncontrollerfindone
description: Get Campaign
call: vapi-campaigns.campaigncontrollerfindone
with:
id: rest.id
outputParameters:
- type: object
mapping: $.
- method: PATCH
name: campaigncontrollerupdate
description: Update Campaign
call: vapi-campaigns.campaigncontrollerupdate
with:
id: rest.id
body: rest.body
outputParameters:
- type: object
mapping: $.
- method: DELETE
name: campaigncontrollerremove
description: Delete Campaign
call: vapi-campaigns.campaigncontrollerremove
with:
id: rest.id
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: vapi-campaigns-mcp
port: 9090
transport: http
description: MCP adapter for Vapi API — Campaigns. One tool per consumed operation, routed inline through this capability's
consumes block.
tools:
- name: create-campaign
description: Create Campaign
hints:
readOnly: false
destructive: false
idempotent: false
call: vapi-campaigns.campaigncontrollercreate
with:
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: list-campaigns
description: List Campaigns
hints:
readOnly: true
destructive: false
idempotent: true
call: vapi-campaigns.campaigncontrollerfindall
with:
id: tools.id
status: tools.status
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: get-campaign
description: Get Campaign
hints:
readOnly: true
destructive: false
idempotent: true
call: vapi-campaigns.campaigncontrollerfindone
with:
id: tools.id
outputParameters:
- type: object
mapping: $.
- name: update-campaign
description: Update Campaign
hints:
readOnly: false
destructive: false
idempotent: true
call: vapi-campaigns.campaigncontrollerupdate
with:
id: tools.id
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: delete-campaign
description: Delete Campaign
hints:
readOnly: false
destructive: true
idempotent: true
call: vapi-campaigns.campaigncontrollerremove
with:
id: tools.id
outputParameters:
- type: object
mapping: $.