Vapi · Capability
Vapi API — Sessions
Vapi API — Sessions. 5 operations. Lead operation: Create Session. Self-contained Naftiko capability covering one Vapi business surface.
What You Can Do
POST
Sessioncontrollercreate
— Create Session
/v1/session
GET
Sessioncontrollerfindallpaginated
— List Sessions
/v1/session
GET
Sessioncontrollerfindone
— Get Session
/v1/session/{id}
PATCH
Sessioncontrollerupdate
— Update Session
/v1/session/{id}
DELETE
Sessioncontrollerremove
— Delete Session
/v1/session/{id}
MCP Tools
create-session
Create Session
list-sessions
List Sessions
read-only
idempotent
get-session
Get Session
read-only
idempotent
update-session
Update Session
idempotent
delete-session
Delete Session
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Vapi API — Sessions
description: 'Vapi API — Sessions. 5 operations. Lead operation: Create Session. Self-contained Naftiko capability covering
one Vapi business surface.'
tags:
- Vapi
- Sessions
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
VAPI_API_KEY: VAPI_API_KEY
capability:
consumes:
- type: http
namespace: vapi-sessions
baseUri: https://api.vapi.ai
description: Vapi API — Sessions business capability. Self-contained, no shared references.
resources:
- name: session
path: /session
operations:
- name: sessioncontrollercreate
method: POST
description: Create Session
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: sessioncontrollerfindallpaginated
method: GET
description: List Sessions
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: query
type: string
description: This is the unique identifier for the session to filter by.
- name: name
in: query
type: string
description: This is the name of the session to filter by.
- name: assistantId
in: query
type: string
description: This is the ID of the assistant to filter sessions by.
- name: assistantIdAny
in: query
type: string
description: Filter by multiple assistant IDs. Provide as comma-separated values.
- name: squadId
in: query
type: string
description: This is the ID of the squad to filter sessions by.
- name: workflowId
in: query
type: string
description: This is the ID of the workflow to filter sessions by.
- name: numberE164CheckEnabled
in: query
type: boolean
description: This is the flag to toggle the E164 check for the `number` field. This is an advanced property which
should be used if you know your use case requires it.
- name: extension
in: query
type: string
description: This is the extension that will be dialed after the call is answered.
- name: assistantOverrides
in: query
type: string
description: These are the overrides for the assistant's settings and template variables specific to this customer.
- name: number
in: query
type: string
description: This is the number of the customer.
- name: sipUri
in: query
type: string
description: This is the SIP URI of the customer.
- name: name
in: query
type: string
description: This is the name of the customer. This is just for your own reference.
- name: email
in: query
type: string
description: This is the email of the customer.
- name: externalId
in: query
type: string
description: This is the external ID of the customer.
- name: customerNumberAny
in: query
type: string
description: Filter by any of the specified customer phone numbers (comma-separated).
- name: phoneNumberId
in: query
type: string
description: This will return sessions with the specified phoneNumberId.
- name: phoneNumberIdAny
in: query
type: array
description: This will return sessions with any of the specified phoneNumberIds.
- 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: session-id
path: /session/{id}
operations:
- name: sessioncontrollerfindone
method: GET
description: Get Session
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: string
required: true
- name: sessioncontrollerupdate
method: PATCH
description: Update Session
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: sessioncontrollerremove
method: DELETE
description: Delete Session
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-sessions-rest
port: 8080
description: REST adapter for Vapi API — Sessions. One Spectral-compliant resource per consumed operation, prefixed with
/v1.
resources:
- path: /v1/session
name: session
description: REST surface for session.
operations:
- method: POST
name: sessioncontrollercreate
description: Create Session
call: vapi-sessions.sessioncontrollercreate
with:
body: rest.body
outputParameters:
- type: object
mapping: $.
- method: GET
name: sessioncontrollerfindallpaginated
description: List Sessions
call: vapi-sessions.sessioncontrollerfindallpaginated
with:
id: rest.id
name: rest.name
assistantId: rest.assistantId
assistantIdAny: rest.assistantIdAny
squadId: rest.squadId
workflowId: rest.workflowId
numberE164CheckEnabled: rest.numberE164CheckEnabled
extension: rest.extension
assistantOverrides: rest.assistantOverrides
number: rest.number
sipUri: rest.sipUri
email: rest.email
externalId: rest.externalId
customerNumberAny: rest.customerNumberAny
phoneNumberId: rest.phoneNumberId
phoneNumberIdAny: rest.phoneNumberIdAny
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/session/{id}
name: session-id
description: REST surface for session-id.
operations:
- method: GET
name: sessioncontrollerfindone
description: Get Session
call: vapi-sessions.sessioncontrollerfindone
with:
id: rest.id
outputParameters:
- type: object
mapping: $.
- method: PATCH
name: sessioncontrollerupdate
description: Update Session
call: vapi-sessions.sessioncontrollerupdate
with:
id: rest.id
body: rest.body
outputParameters:
- type: object
mapping: $.
- method: DELETE
name: sessioncontrollerremove
description: Delete Session
call: vapi-sessions.sessioncontrollerremove
with:
id: rest.id
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: vapi-sessions-mcp
port: 9090
transport: http
description: MCP adapter for Vapi API — Sessions. One tool per consumed operation, routed inline through this capability's
consumes block.
tools:
- name: create-session
description: Create Session
hints:
readOnly: false
destructive: false
idempotent: false
call: vapi-sessions.sessioncontrollercreate
with:
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: list-sessions
description: List Sessions
hints:
readOnly: true
destructive: false
idempotent: true
call: vapi-sessions.sessioncontrollerfindallpaginated
with:
id: tools.id
name: tools.name
assistantId: tools.assistantId
assistantIdAny: tools.assistantIdAny
squadId: tools.squadId
workflowId: tools.workflowId
numberE164CheckEnabled: tools.numberE164CheckEnabled
extension: tools.extension
assistantOverrides: tools.assistantOverrides
number: tools.number
sipUri: tools.sipUri
email: tools.email
externalId: tools.externalId
customerNumberAny: tools.customerNumberAny
phoneNumberId: tools.phoneNumberId
phoneNumberIdAny: tools.phoneNumberIdAny
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-session
description: Get Session
hints:
readOnly: true
destructive: false
idempotent: true
call: vapi-sessions.sessioncontrollerfindone
with:
id: tools.id
outputParameters:
- type: object
mapping: $.
- name: update-session
description: Update Session
hints:
readOnly: false
destructive: false
idempotent: true
call: vapi-sessions.sessioncontrollerupdate
with:
id: tools.id
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: delete-session
description: Delete Session
hints:
readOnly: false
destructive: true
idempotent: true
call: vapi-sessions.sessioncontrollerremove
with:
id: tools.id
outputParameters:
- type: object
mapping: $.