Vapi · Capability

Vapi API — Phone Numbers

Vapi API — Phone Numbers. 6 operations. Lead operation: Create Phone Number. Self-contained Naftiko capability covering one Vapi business surface.

Run with Naftiko VapiPhone Numbers

What You Can Do

POST
Phonenumbercontrollercreate — Create Phone Number
/v1/phone-number
GET
Phonenumbercontrollerfindall — List Phone Numbers
/v1/phone-number
GET
Phonenumbercontrollerfindone — Get Phone Number
/v1/phone-number/{id}
PATCH
Phonenumbercontrollerupdate — Update Phone Number
/v1/phone-number/{id}
DELETE
Phonenumbercontrollerremove — Delete Phone Number
/v1/phone-number/{id}
GET
Phonenumbercontrollerfindallpaginated — List Phone Numbers
/v1/v2/phone-number

MCP Tools

create-phone-number

Create Phone Number

list-phone-numbers

List Phone Numbers

read-only idempotent
get-phone-number

Get Phone Number

read-only idempotent
update-phone-number

Update Phone Number

idempotent
delete-phone-number

Delete Phone Number

idempotent
list-phone-numbers-2

List Phone Numbers

read-only idempotent

Capability Spec

vapi-phone-numbers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Vapi API — Phone Numbers
  description: 'Vapi API — Phone Numbers. 6 operations. Lead operation: Create Phone Number. Self-contained Naftiko capability
    covering one Vapi business surface.'
  tags:
  - Vapi
  - Phone Numbers
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    VAPI_API_KEY: VAPI_API_KEY
capability:
  consumes:
  - type: http
    namespace: vapi-phone-numbers
    baseUri: https://api.vapi.ai
    description: Vapi API — Phone Numbers business capability. Self-contained, no shared references.
    resources:
    - name: phone-number
      path: /phone-number
      operations:
      - name: phonenumbercontrollercreate
        method: POST
        description: Create Phone Number
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: phonenumbercontrollerfindall
        method: GET
        description: List Phone Numbers
        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: phone-number-id
      path: /phone-number/{id}
      operations:
      - name: phonenumbercontrollerfindone
        method: GET
        description: Get Phone Number
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: phonenumbercontrollerupdate
        method: PATCH
        description: Update Phone Number
        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: phonenumbercontrollerremove
        method: DELETE
        description: Delete Phone Number
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: v2-phone-number
      path: /v2/phone-number
      operations:
      - name: phonenumbercontrollerfindallpaginated
        method: GET
        description: List Phone Numbers
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: search
          in: query
          type: string
          description: This will search phone numbers by name, number, or SIP URI (partial match, case-insensitive).
        - 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.
    authentication:
      type: bearer
      token: '{{env.VAPI_API_KEY}}'
  exposes:
  - type: rest
    namespace: vapi-phone-numbers-rest
    port: 8080
    description: REST adapter for Vapi API — Phone Numbers. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/phone-number
      name: phone-number
      description: REST surface for phone-number.
      operations:
      - method: POST
        name: phonenumbercontrollercreate
        description: Create Phone Number
        call: vapi-phone-numbers.phonenumbercontrollercreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: phonenumbercontrollerfindall
        description: List Phone Numbers
        call: vapi-phone-numbers.phonenumbercontrollerfindall
        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/phone-number/{id}
      name: phone-number-id
      description: REST surface for phone-number-id.
      operations:
      - method: GET
        name: phonenumbercontrollerfindone
        description: Get Phone Number
        call: vapi-phone-numbers.phonenumbercontrollerfindone
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: phonenumbercontrollerupdate
        description: Update Phone Number
        call: vapi-phone-numbers.phonenumbercontrollerupdate
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: phonenumbercontrollerremove
        description: Delete Phone Number
        call: vapi-phone-numbers.phonenumbercontrollerremove
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/phone-number
      name: v2-phone-number
      description: REST surface for v2-phone-number.
      operations:
      - method: GET
        name: phonenumbercontrollerfindallpaginated
        description: List Phone Numbers
        call: vapi-phone-numbers.phonenumbercontrollerfindallpaginated
        with:
          search: rest.search
          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: $.
  - type: mcp
    namespace: vapi-phone-numbers-mcp
    port: 9090
    transport: http
    description: MCP adapter for Vapi API — Phone Numbers. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: create-phone-number
      description: Create Phone Number
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: vapi-phone-numbers.phonenumbercontrollercreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-phone-numbers
      description: List Phone Numbers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vapi-phone-numbers.phonenumbercontrollerfindall
      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-phone-number
      description: Get Phone Number
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vapi-phone-numbers.phonenumbercontrollerfindone
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-phone-number
      description: Update Phone Number
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: vapi-phone-numbers.phonenumbercontrollerupdate
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-phone-number
      description: Delete Phone Number
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: vapi-phone-numbers.phonenumbercontrollerremove
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: list-phone-numbers-2
      description: List Phone Numbers
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: vapi-phone-numbers.phonenumbercontrollerfindallpaginated
      with:
        search: tools.search
        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: $.