Salesmsg Numbers Landline API

Numbers Landline

GitHub OpenAPI

Operations 7

POST /numbers/landline/document/create Create landline document #
POST /numbers/landline/create Create landline number #
GET /numbers/landline/fetch Get landline numbers #
DELETE /numbers/landline/delete Delete landline #
POST /numbers/landline/team/create Create inbox #
POST /numbers/landline/inbox/update Update inbox #
POST /numbers/landline/verify/request Request landline verification #

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/salesmsg:salesmsg-numbers-landline-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

salesmsg-numbers-landline-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SalesMessage Public Numbers Landline API
  description: '## Introduction

    This API documentation will start with an overview of the Salesmsg authorization methods and flows, followed by reference information about each specific endpoint. ## Mock Server

    Additionally, if you want to try the API requests out on our mock server, then you can import the endpoints and set baseUrl variable in your collection as `https://e33e4a6a-ff9d-419f-a378-ec53560c0bb7.mock.pstmn.io`


    ## Authentication


    Supported authorization methods include: **Personal Access Token (PAT)** and **OAuth2**. Whether to use PAT or regular OAuth2 tokens highly depends on your use case. - **OAuth2** authorization type is to go for in case you want to allow other users to authenticate against SalesMessage in order for your app to use the issued token as well as utilize the SalesMessage’s functionality. - **PAT** authorization type is to go for in case you want to integrate your personal existing account with Salesmsg in order to extend your app’s functionality. PAT are managed by the user, which means that they are tied to a user account. This makes Personal Access Tokens a good choice for development, as well as automation purposes, when an application does only require a single SalesMessage account to manage organizations. ### OAuth2


    The first step in implementing OAuth2 is registering an oauth application and retrieving your client ID and client secret. Most people who will be implementing OAuth2 will want to find and utilize a library in the language of their choice. For those implementing OAuth2 from scratch, please see RFC 6749 for details. After you create your application with SalesMessage, make sure that you have your `client_id` and `client_secret` handy. The next step is to figure out which OAuth2 flow is right for your purposes. Here are your options:


    - Authorization code grant flow


    - Implicit grant flow


    ##### OAuth2 URLs


    | URL | Description |

    |-----------------------|------|

    | `https://app.salesmessage.com/auth/oauth` | Base authorization URL |

    | `https://api.salesmessage.com/pub/v2.3/oauth/token` | Token URL |


    #### 1. Authorization code grant flow


    The authorization code grant flow is most suitable for **web and mobile applications**. It differs from the other grant types by requiring the application to launch a browser first to begin the integration. The integration consists of the following steps:


    1. The application opens a browser to send the user to the OAuth server. 2. The user receives the authorization prompt and approves the application request. 3. The user is redirected back to the app with the authorization code in the query string. 4. The application exchanges the authorization code for an access token. Below, you can find the description of the authorization code grant flow in detail. ##### Get user permission


    The application sends the user to a browser to get their permission. To begin the authorization flow, construct and open a URL like:


    ```

    https://app.salesmessage.com/auth/oauth

    ?response_type=code

    &client_id={client_id}

    &redirect_uri={redirect_uri}

    &scope={scope}

    &state={state}

    ```


    ##### Examples:

    ```

    # Read/write users

    https://app.salesmessage.com/auth/oauth?response_type=code&client_id=269&redirect_uri=https://example.app/callback&scope=users:read%20users:write&state=xcoiv98y2kd22vusuye3kch


    # Read contacts

    https://app.salesmessage.com/auth/oauth?response_type=code&client_id=269&redirect_uri=https://example.app/callback&scope=contacts:read&state=xcoiv98y2kd22vusuye3kch

    ```


    Here’s each query parameter explained:


    | Parameter | Description |

    |-----------------------|------|

    | `Response_type` | Set to code indicating that you want an authorization code as the response. |

    | `Client_id` | The identifier for apps. You will find it on the OAuth Applications page. |

    | `Redirect_uri` | Used to redirect to after the user is granted permission or denied permission. The URI needs to have been entered in the Redirect URI field that the user specified at creating the application.'
  version: v2.3
servers:
- url: https://api.salesmessage.com/pub/v2.3
tags:
- name: Numbers Landline
  description: Numbers Landline
paths:
  /numbers/landline/document/create:
    post:
      tags:
      - Numbers Landline
      summary: Create landline document
      description: 'REQUIRED SCOPES [''numbers-landline:write'']

        Create landline document'
      operationId: a8c5853a0251498f31c92b8ea1f782a4
      requestBody:
        required: true
        content:
          application/json:
            schema:
              required:
              - phone
              properties:
                phone:
                  description: Phone
                  type: string
              type: object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  number:
                    $ref: '#/components/schemas/NumberResource'
                  document:
                    title: Document
                    type: string
                type: object
        '404':
          description: Number Not Found
        '500':
          description: Incorrect Number
          content:
            application/json:
              schema:
                properties:
                  error:
                    title: error
                    type: string
                  raw_error:
                    title: raw_error
                    type: string
                type: object
      security:
      - apiAuth:
        - numbers-landline:write
      x-versions:
      - public
  /numbers/landline/create:
    post:
      tags:
      - Numbers Landline
      summary: Create landline number
      description: 'REQUIRED SCOPES [''numbers-landline:write'']

        Create landline number'
      operationId: 5d8f8f78aef747c327d62e26775b6359
      requestBody:
        content:
          application/json:
            schema:
              properties:
                phone:
                  description: Phone
                  type: string
                friendly_name:
                  description: Friendly name
                  type: string
                street:
                  description: Street
                  type: string
                city:
                  description: City
                  type: string
                state:
                  description: State
                  type: string
                zip:
                  description: Activate
                  type: string
              type: object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NumberResource'
        '500':
          description: Incorrect Number
          content:
            application/json:
              schema:
                properties:
                  error:
                    title: error
                    type: string
                  raw_error:
                    title: raw_error
                    type: string
                type: object
      security:
      - apiAuth:
        - numbers-landline:write
      x-versions:
      - public
  /numbers/landline/fetch:
    get:
      tags:
      - Numbers Landline
      summary: Get landline numbers
      description: 'REQUIRED SCOPES [''numbers-landline:read'']

        Get landline numbers'
      operationId: c1f2cc1c34611c99e2011d7885f822d1
      parameters:
      - name: phone
        in: query
        description: Phone
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  type:
                    type: string
                  message:
                    type: string
                type: object
      security:
      - apiAuth:
        - numbers-landline:read
      x-versions:
      - public
  /numbers/landline/delete:
    delete:
      tags:
      - Numbers Landline
      summary: Delete landline
      description: 'REQUIRED SCOPES [''numbers-landline:write'']

        Delete landline'
      operationId: 338b10e876108312dadf3b6c1d10aec3
      parameters:
      - name: phone
        in: query
        description: Phone
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NumberResource'
      security:
      - apiAuth:
        - numbers-landline:write
      x-versions:
      - public
  /numbers/landline/team/create:
    post:
      tags:
      - Numbers Landline
      summary: Create inbox
      description: 'REQUIRED SCOPES [''numbers-landline:write'']

        Create inbox'
      operationId: 85724cfd2dc633d118708857d22c6bc2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              required:
              - phone
              - name
              properties:
                phone:
                  description: Phone
                  type: string
                name:
                  description: Inbox Name
                  type: string
                members:
                  title: Member IDs
                  type: array
                  items:
                    type: integer
              type: object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamResource'
      security:
      - apiAuth:
        - numbers-landline:write
      x-versions:
      - public
  /numbers/landline/inbox/update:
    post:
      tags:
      - Numbers Landline
      summary: Update inbox
      description: 'REQUIRED SCOPES [''numbers-landline:write'']

        Update inbox'
      operationId: d7d94c74c6905d0bd3883ef79dbcb945
      requestBody:
        content:
          application/json:
            schema:
              properties:
                landline_phone:
                  description: Phone
                  type: string
                phone_to_replace:
                  description: Phone to replace
                  type: string
              type: object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NumberResource'
      security:
      - apiAuth:
        - numbers-landline:write
      x-versions:
      - public
  /numbers/landline/verify/request:
    post:
      tags:
      - Numbers Landline
      summary: Request landline verification
      description: 'REQUIRED SCOPES [''numbers-landline:write'']

        Request landline verification'
      operationId: 76d577e320834965704cbbd737e53a1a
      requestBody:
        content:
          application/json:
            schema:
              properties:
                phone:
                  description: Phone
                  type: string
              type: object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  number:
                    $ref: '#/components/schemas/NumberResource'
                  verification_code:
                    title: Verification code
                    type: string
                type: object
      security:
      - apiAuth:
        - numbers-landline:write
      x-versions:
      - public
components:
  schemas:
    NumberResource:
      description: Class NumberResource
      properties:
        id:
          title: ID
          type: integer
        organization_id:
          title: Organization ID
          type: integer
        country:
          title: Country
          type: string
        state:
          title: State
          type: string
        city:
          title: City
          type: string
        number:
          title: Number
          type: string
        number_vendor_id:
          title: Number Vendor Id
          type: integer
        country_calling_code:
          title: Calling Code
          type: string
        national_number:
          title: National Number
          type: string
        formattedNumber:
          title: Formatted Number
          type: string
        formatted_number:
          title: Formatted Number
          type: string
        short_code:
          title: Is Shortcode
          type: integer
        is_landline:
          title: Is Landline
          type: integer
        is_toll_free:
          title: Is Toll Free
          type: boolean
        is_mobile:
          title: Is Mobile
          type: boolean
        is_aircall:
          title: Is AirCall
          type: boolean
        voice:
          title: Voice
          type: boolean
        use_organization_call_settings:
          title: Use Organization Call Settings
          type: boolean
        voice_outbound:
          title: Voice Outbound
          type: boolean
        mms:
          title: MMS
          type: boolean
        disabled:
          title: Is Disabled
          type: boolean
        has_profile:
          title: Has Profile
          type: boolean
        verified_status:
          title: Verified Status
          type: string
        area_code:
          title: Area Code
          properties:
            id:
              title: ID
              type: integer
            area_code:
              title: Area Code
              type: string
            state_code:
              title: State Code
              type: string
            state_name:
              title: State Name
              type: string
            country_code:
              title: Country Code
              type: string
            time_zone:
              title: Time Zone
              type: string
            group_id:
              title: Group ID
              type: integer
          type: object
        landline:
          title: Landline
          properties:
            id:
              title: ID
              type: integer
            number_id:
              title: Number ID
              type: integer
            address_sid:
              title: Address SID
              type: string
            sid:
              title: SID
              type: string
            document_sid:
              title: Document SID
              type: string
            status:
              title: Status
              type: string
            verification_attempts:
              title: Verification Attempts
              type: integer
            last_verify_attempt_at:
              title: Last Verify Date
              type: string
            landline_name:
              title: Landline Name
              type: string
            street_address:
              title: Street Address
              type: string
            city:
              title: City
              type: string
            state:
              title: State
              type: string
            zip_code:
              title: Zip Code
              type: string
            completed:
              title: Completed
              type: integer
            created_at:
              title: Create Date
              type: string
            updated_at:
              title: Update Date
              type: string
          type: object
        number_vendor:
          title: Number Vendor
          properties:
            id:
              title: ID
              type: integer
            is_active:
              title: Is Active
              type: boolean
            key:
              title: Key
              type: string
            name:
              title: Name
              type: string
            credentials_prefix:
              title: Credentials Prefix
              type: string
            twilio_sid:
              title: Twilio SID
              type: string
            twilio_auth_token:
              title: Twilio Auth Token
              type: string
            is_billable:
              title: Is Billable
              type: integer
            created_at:
              title: Create Date
              type: string
            updated_at:
              title: Update Date
              type: string
          type: object
        number_caller_id:
          title: Twilio Caller ID Verification
          properties:
            caller_id_sid:
              title: Caller Id Verification Id
              type: string
            verified:
              title: Verified
              type: boolean
            failed_reason:
              title: Failed Reason
              type: string
          type: object
        call_forwarding:
          title: Call Forwarding
          properties:
            id:
              title: ID
              type: integer
            number_id:
              title: Number ID
              type: integer
            is_active:
              title: Is Active
              type: boolean
            is_screening:
              title: Is Screening
              type: boolean
            is_call_whisper:
              title: Is Call Whisper
              type: boolean
            call_whisper:
              title: Call Whisper
              type: string
            country:
              title: Country
              type: string
            number:
              title: Number
              type: string
            country_calling_code:
              title: Calling Code
              type: string
            national_number:
              title: National Number
              type: string
            formatted_number:
              title: Formatted Number
              type: string
            extension:
              title: Extension
              type: string
            created_at:
              title: Create Date
              type: string
            updated_at:
              title: Update Date
              type: string
          type: object
        numberable_id:
          title: Numberable ID
          type: integer
        numberable_type:
          title: Numberable Type
          type: string
        numberable:
          oneOf:
          - title: Team
            properties:
              id:
                title: ID
                type: integer
              organization_id:
                title: Organization ID
                type: integer
              owner_id:
                title: Owner ID
                type: integer
              team_id:
                title: Team ID
                type: integer
              name:
                title: Name
                type: string
              created_at:
                title: Create Date
                type: string
              updated_at:
                title: Update Date
                type: string
            type: object
          - title: Shortcode
            properties:
              id:
                title: ID
                type: integer
              organization_id:
                title: Organization ID
                type: integer
              owner_id:
                title: Owner ID
                type: integer
              name:
                title: Name
                type: string
              inbox_identifier:
                title: Inbox Identifier
                type: string
              last_assigned_user_id:
                title: Last Assigned User ID
                type: integer
              default_assigned_user_id:
                title: Default Assigne User ID
                type: integer
            type: object
      type: object
      xml:
        name: NumberResource
    TeamResource:
      description: Class TeamResource
      properties:
        id:
          type: integer
        organization_id:
          type: integer
        owner_id:
          type: integer
        default_assigned_user_id:
          type: integer
        is_smart:
          type: boolean
        is_round_robin:
          type: boolean
        color_coding_enabled:
          type: boolean
        use_global_conversation_history:
          type: boolean
        use_conversation_history:
          type: boolean
        round_robin_users:
          type:
          - array
          - 'null'
          items:
            type: integer
        deprioritized_numbers:
          type:
          - array
          - 'null'
          items:
            type: integer
        is_geomatch:
          type: boolean
        is_hubspot_assignment:
          type: boolean
        name:
          type: string
        inbox_identifier:
          type: string
        email_to_sms:
          type:
          - string
          - 'null'
          example: null
        created_at:
          type: string
        updated_at:
          type: string
        disabled:
          type:
          - boolean
          - 'null'
          example: null
        users_count:
          type: integer
        member_ids:
          type: array
          items:
            type: integer
        business_hours:
          type:
          - object
          - 'null'
          example: null
        unread:
          type: integer
          example: 0
        unread_calls:
          type: integer
          example: 4
        unread_messages_count:
          type: integer
          example: 7
        unread_mentions_count:
          type: integer
          example: 2
        number:
          $ref: '#/components/schemas/NumberResource'
        call_via_aircall:
          type:
          - boolean
          - 'null'
          example: null
        numbers:
          type: array
          items:
            $ref: '#/components/schemas/NumberResource'
        numbers_count:
          type: integer
        voicemail:
          type:
          - object
          - 'null'
          example: null
        ivr:
          type:
          - object
          - 'null'
          example: null
        owner:
          type:
          - object
          - 'null'
          example: null
        is_favorite:
          type: boolean
          example: false
        type:
          type: string
          example: inbox
        followup:
          type:
          - object
          - 'null'
          example: null
      type: object
      xml:
        name: TeamResource
  securitySchemes:
    apiAuth:
      type: http
      description: Login with email and password to get the authentication token
      bearerFormat: JWT
      scheme: bearer