Invoca Phone Numbers API

Phone Numbers

Operations 4

GET /phone_numbers Gets summarized metadata for phone numbers assigned to an Invoca Network #
DELETE /phone_numbers/{phone_number} Deletes a phone number from SMS Messaging #
GET /phone_numbers/{phone_number} Gets detailed phone number SMS Messaging metadata #
POST /phone_numbers/{phone_number} Adds a phone number to involve with SMS Messaging #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/invoca-phone-numbers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

invoca-phone-numbers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '2022-08-01'
  title: SMS Messaging Phone Numbers API
  description: Phone Numbers
servers: []
tags:
- name: Phone Numbers
  description: Phone Numbers
paths:
  /phone_numbers:
    get:
      summary: Gets summarized metadata for phone numbers assigned to an Invoca Network
      responses:
        '200':
          content:
            application/json:
              example:
                phone_numbers:
                - phone_number: '+18885550100'
                  created_at: '2022-01-31T23:49:03.316Z'
                  deleted_at: null
                  carrier_interface: bandwidth
                  enabled_at: null
                - phone_number: '+18885550100'
                  created_at: '2022-01-31T23:49:04.316Z'
                  deleted_at: null
                  carrier_interface: bandwidth
                  enabled_at: null
                - phone_number: '+18885550100'
                  created_at: '2022-01-31T23:49:05.316Z'
                  deleted_at: null
                  carrier_interface: bandwidth
                  enabled_at: null
                - phone_number: '+18885550100'
                  created_at: '2022-01-31T23:49:06.316Z'
                  deleted_at: null
                  carrier_interface: bandwidth
                  enabled_at: null
                - phone_number: '+18885550100'
                  created_at: '2022-01-31T23:49:07.316Z'
                  deleted_at: null
                  carrier_interface: bandwidth
                  enabled_at: null
                pagination:
                  prev_url: /sms/2022-08-01/phone_numbers?page=
                  series:
                  - '1'
                  - 2
                  in: 5
                  scaffold_url: /sms/2022-08-01/phone_numbers?page=__pagy_page__
                  from: 1
                  last_url: /sms/2022-08-01/phone_numbers?page=2
                  pages: 2
                  count: 7
                  last: 2
                  first_url: /sms/2022-08-01/phone_numbers?page=1
                  items: 5
                  next: 2
                  next_url: /sms/2022-08-01/phone_numbers?page=2
                  to: 5
                  prev: null
                  page: 1
                  page_url: /sms/2022-08-01/phone_numbers?page=1
              schema:
                type: object
                properties:
                  phone_numbers:
                    items:
                      type: object
                      properties:
                        phone_number:
                          type: string
                        created_at:
                          type: string
                        deleted_at: {}
                        carrier_interface:
                          type: string
                        enabled_at: {}
                    type: array
                  pagination:
                    type: object
                    properties:
                      prev_url:
                        type: string
                      series:
                        items:
                          type: string
                        type: array
                      in:
                        type: integer
                      scaffold_url:
                        type: string
                      from:
                        type: integer
                      last_url:
                        type: string
                      pages:
                        type: integer
                      count:
                        type: integer
                      last:
                        type: integer
                      first_url:
                        type: string
                      items:
                        type: integer
                      next:
                        type: integer
                      next_url:
                        type: string
                      to:
                        type: integer
                      prev: {}
                      page:
                        type: integer
                      page_url:
                        type: string
          description: get the first page of paginated phone numbers
      tags:
      - Phone Numbers
      operationId: getPhoneNumbers
      x-operation-id-source: derived
  /phone_numbers/{phone_number}:
    delete:
      summary: Deletes a phone number from SMS Messaging
      responses:
        '200':
          content:
            application/json:
              example:
                phone_number:
                  phone_number: '+18885550100'
                  virtual_line_id: 200
                  network_id: 12345
                  created_at: '2022-03-14T20:30:12.000Z'
                  deleted_at: '2022-04-14T20:30:12.000Z'
                  carrier_interface: bandwidth
                  enabled_at: null
              schema:
                type: object
                properties:
                  phone_number:
                    type: object
                    properties:
                      phone_number:
                        type: string
                      virtual_line_id:
                        type: integer
                      network_id:
                        type: integer
                      created_at:
                        type: string
                      deleted_at:
                        type: string
                      carrier_interface:
                        type: string
                      enabled_at: {}
          description: is expected to eq {"phone_number"=>{"carrier_interface"=>"bandwidth", "created_at"=>"2022-03-14T20:30:12.000Z", "delete...Z", "enabled_at"=>nil, "network_id"=>12345, "phone_number"=>"+18885550100", "virtual_line_id"=>200}}
        '404':
          content:
            application/json:
              example:
                message: Not Found - the requested phone number, +18885550100, is not in the system
              schema:
                type: object
                properties:
                  message:
                    type: string
          description: is expected to be not found
        '403':
          content:
            application/json:
              example:
                message: Forbidden
              schema:
                type: object
                properties:
                  message:
                    type: string
          description: is expected to be forbidden
        '422':
          content:
            application/json:
              example:
                message: Unprocessable Entity - the requested phone number is not valid
              schema:
                type: object
                properties:
                  message:
                    type: string
          description: is expected to be unprocessable
      parameters:
      - $ref: '#/components/parameters/phone_number'
      tags:
      - Phone Numbers
      operationId: deletePhoneNumbersByPhoneNumber
      x-operation-id-source: derived
    get:
      summary: Gets detailed phone number SMS Messaging metadata
      responses:
        '200':
          content:
            application/json:
              example:
                phone_number:
                  phone_number: '+18885550100'
                  virtual_line_id: 197
                  network_id: 12345
                  created_at: '2022-03-14T20:30:12.000Z'
                  deleted_at: null
                  carrier_interface: bandwidth
                  enabled_at: null
              schema:
                type: object
                properties:
                  phone_number:
                    type: object
                    properties:
                      phone_number:
                        type: string
                      virtual_line_id:
                        type: integer
                      network_id:
                        type: integer
                      created_at:
                        type: string
                      deleted_at: {}
                      carrier_interface:
                        type: string
                      enabled_at: {}
          description: is expected to eq {"phone_number"=>{"carrier_interface"=>"bandwidth", "created_at"=>"2022-03-14T20:30:12.000Z", "delete...il, "enabled_at"=>nil, "network_id"=>12345, "phone_number"=>"+18885550100", "virtual_line_id"=>197}}
        '404':
          content:
            application/json:
              example:
                message: Not Found - the requested phone number, +18885550100, is not in the system
              schema:
                type: object
                properties:
                  message:
                    type: string
          description: is expected to be not found
        '403':
          content:
            application/json:
              example:
                message: Forbidden
              schema:
                type: object
                properties:
                  message:
                    type: string
          description: is expected to be forbidden
        '422':
          content:
            application/json:
              example:
                message: Unprocessable Entity - the requested phone number is not valid
              schema:
                type: object
                properties:
                  message:
                    type: string
          description: is expected to be unprocessable
      parameters:
      - $ref: '#/components/parameters/phone_number'
      tags:
      - Phone Numbers
      operationId: getPhoneNumbersByPhoneNumber
      x-operation-id-source: derived
    post:
      summary: Adds a phone number to involve with SMS Messaging
      responses:
        '201':
          content:
            application/json:
              example:
                phone_number:
                  phone_number: '+18885550100'
                  virtual_line_id: 67890
                  network_id: 12345
                  created_at: '2022-03-14T20:30:12.000Z'
                  deleted_at: null
                  carrier_interface: bandwidth
                  enabled_at: '2022-03-14T20:30:12.000Z'
              schema:
                type: object
                properties:
                  phone_number:
                    type: object
                    properties:
                      phone_number:
                        type: string
                      virtual_line_id:
                        type: integer
                      network_id:
                        type: integer
                      created_at:
                        type: string
                      deleted_at: {}
                      carrier_interface:
                        type: string
                      enabled_at:
                        type:
                        - string
                        - 'null'
          description: is expected to eq "https://example.org/sms/2022-08-01/phone_numbers/+18885550100"
        '422':
          content:
            application/json:
              example:
                message: Unprocessable Entity - the requested phone number is not valid
              schema:
                type: object
                properties:
                  message:
                    type: string
          description: is expected to be unprocessable
        '403':
          content:
            application/json:
              example:
                message: Forbidden
              schema:
                type: object
                properties:
                  message:
                    type: string
          description: is expected to be forbidden
        '204':
          content:
            ? ''
            : example: ''
              schema:
                type: string
          description: is expected to eq "https://example.org/sms/2022-08-01/phone_numbers/+18885550100"
        '409':
          content:
            application/json:
              example: {}
              schema:
                type: object
                properties: {}
          description: is expected to be conflict
      parameters:
      - $ref: '#/components/parameters/phone_number'
      tags:
      - Phone Numbers
      operationId: postPhoneNumbersByPhoneNumber
      x-operation-id-source: derived
components:
  parameters:
    phone_number:
      schema:
        type: string
      description: The Phone Number in E.164 Format
      in: path
      required: true
      example: '+18885550100'
      name: phone_number