Salesmsg Voice API

Voice

GitHub OpenAPI

Operations 17

GET /voice/voicemail/greeting/synthesize Synthesize a greeting message to speech #
GET /voice/ivr/greeting/synthesize Synthesize a greeting message to speech #
GET /voice/record/{recordingId}/token Listen to the voice record new #
GET /voice/record/{recordingId} Listen to the voice record #
GET /voice/voicemail/drops Get list of voicemail drop audiofiles #
POST /voice/voicemail/drops/upload Upload voicemail drop file #
PUT /voice/voicemail/drops/update/{voicemailDrop} Update voicemail drop name #
DELETE /voice/voicemail/drops/delete/{voicemailDrop} Delete voicemail drop audiofile #
GET /voice/voicemail-record/{recordingId} Listen to the voicemail record #
POST /voice/voicemail/settings/{team} Update voicemail settings #
POST /voice/voicemail/greeting/upload/{team} Upload a voicemail greeting #
PUT /voice/voicemail/greeting/update/{greeting} Update voicemail greeting name #
DELETE /voice/voicemail/greeting/delete/{greeting} Delete a voicemail greeting #
POST /voice/ivr/greeting/{team} Create a new IVR greeting for a team #
PUT /voice/ivr/greeting/{greeting} Update an existing IVR greeting #
DELETE /voice/ivr/greeting/{greeting} Delete an existing IVR greeting #
POST /voice/ivr/settings/{team} Set IVR settings for a team #

Specifications

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-voice-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-voice-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SalesMessage Public Voice 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: Voice
  description: Voice
paths:
  /voice/voicemail/greeting/synthesize:
    get:
      tags:
      - Voice
      summary: Synthesize a greeting message to speech
      description: 'REQUIRED SCOPES [''voice:read'']

        Synthesize a greeting message to speech'
      operationId: f69c2e20b12469e20ebb73ccab9d11b4
      parameters:
      - name: message
        in: query
        description: The text message to synthesize
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful operation
          content:
            audio/mpeg:
              schema:
                type: string
                format: binary
        '422':
          description: Validation error
        '401':
          description: Unauthenticated
      security:
      - apiAuth:
        - voice:read
      x-versions:
      - public
  /voice/ivr/greeting/synthesize:
    get:
      tags:
      - Voice
      summary: Synthesize a greeting message to speech
      description: 'REQUIRED SCOPES [''voice:read'']

        Synthesize a greeting message to speech'
      operationId: da2a629aff9188e5417b7440f82b1d40
      parameters:
      - name: message
        in: query
        description: The text message to synthesize
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful operation
          content:
            audio/mpeg:
              schema:
                type: string
                format: binary
        '422':
          description: Validation error
        '401':
          description: Unauthenticated
      security:
      - apiAuth:
        - voice:read
      x-versions:
      - public
  /voice/record/{recordingId}/token:
    get:
      tags:
      - Voice
      summary: Listen to the voice record new
      description: 'REQUIRED SCOPES [''voice:read'']

        Listen to the voice record new'
      operationId: ListenToTheVoiceRecordNew
      parameters:
      - name: recordingId
        in: path
        description: The ID of the Recording. This string starts with prefix \'RE\'.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            audio/wav:
              schema:
                type: string
                format: binary
      security:
      - apiAuth:
        - voice:read
      x-versions:
      - public
      x-operation-id-source: normalized
      x-operation-id-original: Listen to the voice record new
  /voice/record/{recordingId}:
    get:
      tags:
      - Voice
      summary: Listen to the voice record
      description: 'REQUIRED SCOPES [''voice:read'']

        Listen to the voice record'
      operationId: ListenToTheVoiceRecord
      parameters:
      - name: recordingId
        in: path
        description: The ID of the Recording. This string starts with prefix \'RE\'.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            audio/wav:
              schema:
                type: string
                format: binary
      security:
      - apiAuth:
        - voice:read
      x-versions:
      - public
      x-operation-id-source: normalized
      x-operation-id-original: Listen to the voice record
  /voice/voicemail/drops:
    get:
      tags:
      - Voice
      summary: Get list of voicemail drop audiofiles
      description: 'REQUIRED SCOPES [''voice:read'']

        Get list of voicemail drop audiofiles'
      operationId: 0c80645683399ba673ab04f87f1e1317
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VoicemailDropResource'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                    example: This action is unauthorized.
                  status:
                    type: integer
                    example: 403
                type: object
      security:
      - apiAuth:
        - voice:read
      x-versions:
      - public
  /voice/voicemail/drops/upload:
    post:
      tags:
      - Voice
      summary: Upload voicemail drop file
      description: 'REQUIRED SCOPES [''voice:write'']

        Upload voicemail drop file'
      operationId: 5cf02c5fa992faeb8e062d3f4f61a292
      requestBody:
        description: Voicemail Drop File
        required: true
        content:
          multipart/form-data:
            schema:
              properties:
                file:
                  description: Audio File
                  type: string
                  format: binary
                name:
                  title: Name
                  type: string
              type: object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VoicemailDropResource'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                    example: This action is unauthorized.
                  status:
                    type: integer
                    example: 403
                type: object
      security:
      - apiAuth:
        - voice:write
      x-versions:
      - public
  /voice/voicemail/drops/update/{voicemailDrop}:
    put:
      tags:
      - Voice
      summary: Update voicemail drop name
      description: 'REQUIRED SCOPES [''voice:write'']

        Update voicemail drop name'
      operationId: 7ab93f1a0a56b87d0588af84a60f086c
      parameters:
      - name: voicemailDrop
        in: path
        description: The ID of the Voicemail Drop Audiofile.
        required: true
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                name:
                  title: Name
                  type: string
              type: object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VoicemailDropResource'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                    example: This action is unauthorized.
                  status:
                    type: integer
                    example: 403
                type: object
      security:
      - apiAuth:
        - voice:write
      x-versions:
      - public
  /voice/voicemail/drops/delete/{voicemailDrop}:
    delete:
      tags:
      - Voice
      summary: Delete voicemail drop audiofile
      description: 'REQUIRED SCOPES [''voice:write'']

        Delete voicemail drop audiofile'
      operationId: 1cc397ba9d160cb98a7c566fa7b781d6
      parameters:
      - name: voicemailDrop
        in: path
        description: The ID of the Voicemail Drop Audiofile.
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  status:
                    type: string
                type: object
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                properties:
                  message:
                    type: string
                    example: This action is unauthorized.
                  status:
                    type: integer
                    example: 403
                type: object
      security:
      - apiAuth:
        - voice:write
      x-versions:
      - public
  /voice/voicemail-record/{recordingId}:
    get:
      tags:
      - Voice
      summary: Listen to the voicemail record
      description: 'REQUIRED SCOPES [''voice:read'']

        Listen to the voicemail record'
      operationId: ListenToTheVoicemailRecord
      parameters:
      - name: recordingId
        in: path
        description: The ID of the Recording. This string starts with prefix \'RE\'.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            audio/wav:
              schema:
                type: string
                format: binary
      security:
      - apiAuth:
        - voice:read
      x-versions:
      - public
      x-operation-id-source: normalized
      x-operation-id-original: Listen to the voicemail record
  /voice/voicemail/settings/{team}:
    post:
      tags:
      - Voice
      summary: Update voicemail settings
      description: 'REQUIRED SCOPES [''voice:write'']

        Listen to voice recording'
      operationId: d3859aac59cf781a4b63a1d0a8afa600
      parameters:
      - name: team
        in: path
        description: The ID of the Team.
        required: true
        schema:
          type: integer
      requestBody:
        content:
          application/json:
            schema:
              properties:
                is_active:
                  description: Enable/disable settings
                  type: boolean
                  example: true
                open_hours_greeting_id:
                  description: The ID of the greeting for regular business hours
                  type: integer
                  example: 0
                after_hours_greeting_id:
                  description: The ID of the greeting for regular after hours
                  type: integer
                  example: 0
                is_send_via_email:
                  description: Send recording of voicemails by email
                  type: boolean
                  example: false
                is_directly_voicemail:
                  description: Send incoming calls straight to voicemail
                  type: boolean
                  example: false
                ring_duration:
                  description: The amount of time in seconds before sending call to voicemail
                  type: integer
                  example: 15
              type: object
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VoicemailSettingResource'
      security:
      - apiAuth:
        - voice:write
      x-versions:
      - public
  /voice/voicemail/greeting/upload/{team}:
    post:
      tags:
      - Voice
      summary: Upload a voicemail greeting
      description: 'REQUIRED SCOPES [''voice:write'']

        Upload a voicemail greeting'
      operationId: cd3e7cc0960b2207faabaf5146d6ba64
      parameters:
      - name: team
        in: path
        description: The ID of the Team
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              properties:
                file:
                  description: The voicemail greeting audio file
                  type: string
                  format: binary
                name:
                  description: The name of the voicemail greeting
                  type: string
                type:
                  description: The type of the voicemail greeting
                  type: string
                  example: open_hours
                is_make_active:
                  description: Make voicemail greeting active if true
                  type: boolean
              type: object
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
        '422':
          description: Validation error
        '401':
          description: Unauthenticated
        '403':
          description: Forbidden
        '404':
          description: Team not found
      security:
      - apiAuth:
        - voice:write
      x-versions:
      - public
  /voice/voicemail/greeting/update/{greeting}:
    put:
      tags:
      - Voice
      summary: Update voicemail greeting name
      description: 'REQUIRED SCOPES [''voice:write'']

        Update voicemail greeting name'
      operationId: b53ddf089656f56a3e09848afc80f853
      parameters:
      - name: greeting
        in: path
        description: The ID of the Voicemail Greeting
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              properties:
                name:
                  description: The new name for the voicemail greeting
                  type: string
              type: object
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
        '422':
          description: Validation error
        '401':
          description: Unauthenticated
        '403':
          description: Forbidden
        '404':
          description: Voicemail Greeting not found
      security:
      - apiAuth:
        - voice:write
      x-versions:
      - public
  /voice/voicemail/greeting/delete/{greeting}:
    delete:
      tags:
      - Voice
      summary: Delete a voicemail greeting
      description: 'REQUIRED SCOPES [''voice:write'']

        Delete a voicemail greeting'
      operationId: 4e4c5ff40244a6baabb5ea5d6d66873d
      parameters:
      - name: greeting
        in: path
        description: The ID of the Voicemail Greeting to delete
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                properties:
                  status:
                    type: string
                    example: success
                type: object
        '401':
          description: Unauthenticated
        '403':
          description: Forbidden
        '404':
          description: Voicemail Greeting not found
      security:
      - apiAuth:
        - voice:write
      x-versions:
      - public
  /voice/ivr/greeting/{team}:
    post:
      tags:
      - Voice
      summary: Create a new IVR greeting for a team
      description: 'REQUIRED SCOPES [''voice:write'']

        Create a new IVR greeting for a specific team'
      operationId: 40790ed49f00dd87efbbd444a9967f87
      parameters:
      - name: team
        in: path
        description: The ID of the team
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              properties:
                file:
                  description: The audio file for the IVR greeting
                  type: string
                  format: binary
                name:
                  description: The name of the IVR greeting
                  type: string
                is_make_active:
                  type: boolean
              type: object
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                properties:
                  id:
                    title: ID
                    type: integer
                  organization_id:
                    title: Organization ID
                    type: integer
                  name:
                    title: Name
                    type: string
                  content_type:
                    title: Content Type
                    type: string
                  url:
                    title: URL
                    type: string
                type: object
        '422':
          description: Validation error
        '401':
          description: Unauthenticated
        '403':
          description: Forbidden
        '404':
          description: Team not found
      security:
      - apiAuth:
        - voice:write
      x-versions:
      - public
  /voice/ivr/greeting/{greeting}:
    put:
      tags:
      - Voice
      summary: Update an existing IVR greeting
      description: 'REQUIRED SCOPES [''voice:write'']

        Update an existing IVR greeting for a specific team'
      operationId: 11a2e4922f8bb35b3206bced5e718e2f
      parameters:
      - name: greeting
        in: path
        description: The ID of the IVR greeting
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              properties:
                name:
                  description: The new name for the ivr greeting
                  type: string
              type: object
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                properties:
                  id:
                    title: ID
                    type: integer
                  organization_id:
                    title: Organization ID
                    type: integer
                  name:
                    title: Name
                    type: string
                  content_type:
                    title: Content Type
                    type: string
                  url:
                    title: URL
                    type: string
                type: object
        '422':
          description: Validation error
        '401':
          description: Unauthenticated
        '403':
          description: Forbidden
        '404':
          description: IVR Greeting not found
      security:
      - apiAuth:
        - voice:write
      x-versions:
      - public
    delete:
      tags:
      - Voice
      summary: Delete an existing IVR greeting
      description: 'REQUIRED SCOPES [''voice:write'']

        Delete an existing IVR greeting for a specific team'
      operationId: 218f4ff37c436e4709fbbb016733accd
      parameters:
      - name: greeting
        in: path
        description: The ID of the IVR greeting to delete
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                properties:
                  status:
                    description: The status of the delete operation
                    type: string
                    enum:
                    - success
                    - failed
                type: object
        '401':
          description: Unauthenticated
        '403':
          description: Forbidden
        '404':
          description: IVR Greeting not found
      security:
      - apiAuth:
        - voice:write
      x-versions:
      - public
  /voice/ivr/settings/{team}:
    post:
      tags:
      - Voice
      summary: Set IVR settings for a team
      description: 'REQUIRED SCOPES [''voice:write'']

        Update or create IVR (Interactive Voice Response) settings for a specific team'
      operationId: da5d3d88f0a6cd2dc10b2da681340115
      parameters:
      - name: team
        in: path
        description: The ID of the team
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IvrSettingRequest'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IvrSettingsResource'
        '422':
          description: Validation error
        '401':
          description: Unauthenticated
        '403':
          description: Forbidden
        '404':
          description: Team not found
      security:
      - apiAuth:
        - voice:write
      x-versions:
      - public
components:
  schemas:
    IvrSettingsResource:
      properties:
        id:
          description: The unique identifier of the IVR setting
          type: integer
        organization_id:
          description: The ID of the organization this IVR setting belongs to
          type: integer
        team_id:
          description: The ID of the team this IVR setting belongs to
          type: integer
        organization_ivr_greeting_id:
          description: The ID of the organization's IVR greeting
          type:
          - integer
          - 'null'
        is_active:
          description: Whether the IVR setting is active
          type: boolean
        use_after_hours:
          description: Whether to use after hours settings
          type: boolean
        default_action:
          description: The default action for the IVR
          type: string
        menu_options:
          description: The menu options for the IVR
          type: array
          items:
            properties:
              keys:
                type: array
                items:
                  properties:
                    key:
                      type: integer
                    destination:
                      type: string
                    value:
                      type: string
                  type: object
            type: object
      type: object
    VoicemailDropResource:
      description: Class VoicemailDropResource
      properties:
        id:
          title: ID
          type: integer
        user_id:
          title: User ID
          type: integer
        name:
          title: Name
          type: string
        content_type:
          title: Content Type
          type: string
        url:
          title: URL
          type: string
        created_at:
          title: Created At
          type: string
        updated_at:
          title: Updated At
          type: string
        duration:
          title: Duration
          type: integer
      type: object
      xml:
        name: VoicemailDropResource
    VoicemailSettingResource:
      description: Class VoicemailSettingResource
      properties:
        id:
          title: ID
          type: integer
        owner_id:
          title: Owner ID
          type: integer
        organization_id:
          title: Organization ID
          type: integer
        team_id:
          title: Team ID
          type: string
        is_active:
          title: Is Active
          type: boolean
        is_send_via_email:
          title: Is send via email
          type: boolean
        open_hours_greeting_id:
          title: Open hours greeting ID
          type: integer
        after_hours_greeting_id:
          title: After hours greeting ID
          type: integer
      type: object
      xml:
        name: VoicemailSettingResource
    IvrSettingRequest:
      required:
      - is_active
      - menu_options
      - default_action
      properties:
        is_active:
          description: Whether the IVR setting is active
          type: boolean
        use_after_hours:
          description: Whether to use after hours settings
          type:
          - boolean
          - 'null'
        menu_options:
          type: array
          items:
            properties:
              keys:
                type: array
                items:
                  required:
                  - key
                  - destination
                  - value
                  properties:
                    key:
                      type: integer
                      maximum: 9
                      minimum: 0
                    destination:
                      type: string
                      enum:
                      - ENUM_VALUES_HERE
                    value:
                      description: 'For send_sms destination: object with message, media_url, images_url, etc.'
                  type: object
            type: object
        default_action:
          description: The default action for the IVR
          type: string
          enum:
          - ENUM_VALUES_HERE
      type: object
  securitySchemes:
    apiAuth:
      type: http
      description: Login with email and password to get the authentication token
      bearerFormat: JWT
      scheme: bearer