Salesmsg Analytics API

The Analytics APIs provide access to statistics and performance data across messages, conversations, contacts, calls, and conversions. Use these endpoints to retrieve time-series charts and aggregated metrics filtered by date range, members, inboxes, numbers, and tags. All Analytics endpoints require the analytics:read scope.

GitHub OpenAPI

Operations 18

GET /core/analytics/calling/export Export Calling Analytics #
GET /core/analytics/calling Get calling analytics #
GET /core/analytics/contacts Get Contacts Analytics #
GET /core/analytics/contacts/export Export Contacts Analytics #
GET /core/analytics/conversations Get Conversations Analytics #
GET /core/analytics/conversations/export Export Conversations Analytics #
GET /core/analytics/conversions/list Get Conversions List Analytics #
GET /core/analytics/conversions/{conversion}/chart Get Conversion Chart #
GET /core/analytics/conversions/{conversion}/export Export Conversion #
GET /core/analytics/conversions Get Conversions Analytics #
GET /core/analytics/conversions/export Export Conversions Analytics #
POST /core/analytics/credits-usage/details Get Credits Usage Details #
GET /core/analytics/messages Get Messages Analytics #
GET /core/analytics/messages/export Export Messages Analytics #
GET /core/analytics/overall/{section} Get Overall Analytics #
GET /core/analytics/performance/members Get Performance Members Analytics #
GET /core/analytics/performance Get Performance Analytics #
GET /core/analytics/performance/export Export Performance Analytics #

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-analytics-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-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SalesMessage Public Analytics 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: Analytics
  description: 'The Analytics APIs provide access to statistics and performance data across messages, conversations, contacts, calls, and conversions. Use these endpoints to retrieve time-series charts and aggregated metrics filtered by date range, members, inboxes, numbers, and tags.


    All Analytics endpoints require the analytics:read scope.'
paths:
  /core/analytics/calling/export:
    get:
      tags:
      - Analytics
      summary: Export Calling Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 21d547234566f36a01f0513fbd2d7bc4
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/calling:
    get:
      tags:
      - Analytics
      summary: Get calling analytics
      description: 'REQUIRED SCOPES [''analytics:read'']

        Retrieve statistics and charts for inbound and outbound calls within the specified time range.'
      operationId: b69dc913a9bdc4691089f7df66eecf07
      parameters:
      - name: from
        in: query
        description: Start date for the statistics range (YYYY-MM-DD)
        required: true
        schema:
          type: string
          format: date
      - name: to
        in: query
        description: End date for the statistics range (YYYY-MM-DD)
        required: true
        schema:
          type: string
          format: date
      - name: interval
        in: query
        description: Interval for grouping the statistics
        required: true
        schema:
          type: string
          enum:
          - day
          - week
          - month
          - year
      - name: timezone
        in: query
        description: Timezone in which the statistics should be calculated
        required: true
        schema:
          type: string
      - name: filter[members]
        in: query
        description: Filter by members (comma-separated or array)
        required: false
        schema:
          type: array
          items:
            type: integer
      - name: filter[inboxes]
        in: query
        description: Filter by inboxes (comma-separated or array)
        required: false
        schema:
          type: array
          items:
            type: integer
      - name: filter[numbers]
        in: query
        description: Filter by numbers (comma-separated or array)
        required: false
        schema:
          type: array
          items:
            type: integer
      - name: filter[tags]
        in: query
        description: Filter by tags (comma-separated or array)
        required: false
        schema:
          type: array
          items:
            type: integer
      responses:
        '200':
          description: Successful response with calling analytics
          content:
            application/json:
              schema:
                properties:
                  statistic:
                    type: array
                    items:
                      $ref: '#/components/schemas/CallingStatistic'
                    example:
                    - key: outbound_calls
                      label: Outbound Calls
                      value: 0
                      prevValue: 0
                      parent: ''
                    - key: inbound_calls
                      label: Inbound Calls
                      value: 3
                      prevValue: 8
                      parent: ''
                    - key: avg_duration_outbound
                      label: Avg Duration Outbound
                      value: 0
                      prevValue: 0
                      parent: outbound_calls
                    - key: answered_outbound
                      label: Answered Outbound
                      value: 0
                      prevValue: 0
                      parent: outbound_calls
                    - key: unanswered_outbound
                      label: Unanswered Outbound
                      value: 0
                      prevValue: 0
                      parent: outbound_calls
                    - key: busy_outbound
                      label: Busy Outbound
                      value: 0
                      prevValue: 0
                      parent: outbound_calls
                    - key: failed_outbound
                      label: Failed Outbound
                      value: 0
                      prevValue: 0
                      parent: outbound_calls
                    - key: avg_duration_inbound
                      label: Avg Duration Inbound
                      value: 1
                      prevValue: 0
                      parent: inbound_calls
                    - key: answered_inbound
                      label: Answered Inbound
                      value: 1
                      prevValue: 0
                      parent: inbound_calls
                    - key: answered_inbound_human
                      label: Answered Inbound Human
                      value: 1
                      prevValue: 0
                      parent: inbound_calls
                    - key: answered_inbound_ai
                      label: Answered Inbound Ai
                      value: 0
                      prevValue: 0
                      parent: inbound_calls
                    - key: missed_inbound
                      label: Missed Inbound
                      value: 2
                      prevValue: 8
                      parent: inbound_calls
                    - key: busy_inbound
                      label: Busy Inbound
                      value: 0
                      prevValue: 0
                      parent: inbound_calls
                    - key: failed_inbound
                      label: Failed Inbound
                      value: 0
                      prevValue: 0
                      parent: inbound_calls
                    - key: forwarded
                      label: Forwarded
                      value: 1
                      prevValue: 0
                      parent: ''
                    - key: avg_duration_forwarded
                      label: Avg Duration Forwarded
                      value: 1
                      prevValue: 0
                      parent: forwarded
                  charts:
                    type: array
                    items:
                      $ref: '#/components/schemas/CallingChartData'
                type: object
        '500':
          description: Internal server error
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/contacts:
    get:
      tags:
      - Analytics
      summary: Get Contacts Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: dd705359e04993a5e4a966b90f1846f5
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/contacts/export:
    get:
      tags:
      - Analytics
      summary: Export Contacts Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: a46e430cb1dcb40ff08aef98e76092a2
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/conversations:
    get:
      tags:
      - Analytics
      summary: Get Conversations Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 59b0c779d00e3b47435ad32b17a7b5ac
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/conversations/export:
    get:
      tags:
      - Analytics
      summary: Export Conversations Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 6a46393a3a73ab59e97118aa7a3feb9c
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/conversions/list:
    get:
      tags:
      - Analytics
      summary: Get Conversions List Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: f0a589a2a84ab5dcdaca70c1c93a3d21
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/conversions/{conversion}/chart:
    get:
      tags:
      - Analytics
      summary: Get Conversion Chart
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 87182ad2602d1364085e252a9b79a93c
      parameters:
      - name: conversion
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/conversions/{conversion}/export:
    get:
      tags:
      - Analytics
      summary: Export Conversion
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 7387aca3abaa5524f67338f14fce0d45
      parameters:
      - name: conversion
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/conversions:
    get:
      tags:
      - Analytics
      summary: Get Conversions Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 0db762f086120c66f7a9b886dee278e3
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/conversions/export:
    get:
      tags:
      - Analytics
      summary: Export Conversions Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 60351bef6f121507937a77640155f77e
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/credits-usage/details:
    post:
      tags:
      - Analytics
      summary: Get Credits Usage Details
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 96c0c5225700e5f6de06b502f99540b7
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/messages:
    get:
      tags:
      - Analytics
      summary: Get Messages Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 0f8ab5ac152acec1c562b34b001fe68e
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/messages/export:
    get:
      tags:
      - Analytics
      summary: Export Messages Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 0ae3e68644b128286a4929e4970ab12f
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/overall/{section}:
    get:
      tags:
      - Analytics
      summary: Get Overall Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 6c8293cd11fed0eb0ab5b75616bba94f
      parameters:
      - name: section
        in: path
        required: true
        schema:
          type: string
          enum:
          - messages
          - calls
          - performance
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/performance/members:
    get:
      tags:
      - Analytics
      summary: Get Performance Members Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 3aa47ad353d6fe230625e3888c1dcce9
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/performance:
    get:
      tags:
      - Analytics
      summary: Get Performance Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 31ea585fdc521f8b4f69f91343db2c5b
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
  /core/analytics/performance/export:
    get:
      tags:
      - Analytics
      summary: Export Performance Analytics
      description: REQUIRED SCOPES ['analytics:read']
      operationId: 06923344ad804d676b4ce83c7f0eb9e2
      responses:
        '200':
          description: OK
      security:
      - apiAuth:
        - analytics:read
      x-versions:
      - public
components:
  schemas:
    CallingStatistic:
      title: Calling Statistic
      description: Statistic entry for calling analytics
      properties:
        key:
          description: Statistic key
          type: string
          example: outbound_calls
        label:
          description: Human-readable label
          type: string
          example: Outbound Calls
        value:
          description: Current value of the statistic
          type: integer
          example: 0
        prevValue:
          description: Previous period value
          type: integer
          example: 0
        parent:
          description: Parent statistic key
          type:
          - string
          - 'null'
          example: ''
      type: object
    CallingChartData:
      title: Calling Chart Data
      description: Chart data entry for calling analytics
      properties:
        date:
          description: Date of the data point
          type: string
          format: date
          example: '2025-01-10'
        label:
          description: Label for the chart data point
          type: string
          example: '2025-01-10'
        outbound_calls:
          type: integer
          example: 0
        inbound_calls:
          type: integer
          example: 3
        avg_duration_outbound:
          type: number
          format: float
          example: 0
        answered_outbound:
          type: integer
          example: 0
        unanswered_outbound:
          type: integer
          example: 0
        busy_outbound:
          type: integer
          example: 0
        failed_outbound:
          type: integer
          example: 0
        avg_duration_inbound:
          type: number
          format: float
          example: 1
        answered_inbound:
          type: integer
          example: 1
        answered_inbound_human:
          type: integer
          example: 1
        answered_inbound_ai:
          type: integer
          example: 0
        missed_inbound:
          type: integer
          example: 2
        busy_inbound:
          type: integer
          example: 0
        failed_inbound:
          type: integer
          example: 0
        forwarded:
          type: integer
          example: 1
        avg_duration_forwarded:
          type: number
          format: float
          example: 1
      type: object
  securitySchemes:
    apiAuth:
      type: http
      description: Login with email and password to get the authentication token
      bearerFormat: JWT
      scheme: bearer