Audit API Overview

The Vonage Audit API enables you to monitor your account by tracking events. These events are generated when your account users work with the SDKs or interact with the Vonage API Dashboard. (Nexmo is now Vonage)

With this API you can:

  • Retrieve a list of Audit events.
  • Retrieve a specific Audit event.
  • Filter events by parameters such as date, user ID, and event type.


This API is currently in Beta.

Vonage always welcomes your feedback. Your suggestions help us improve the product. If you do need help, please email and include Audit API in the subject line. Please note that during the Beta period support times are limited to Monday to Friday.

During the Beta period Vonage may expand the capabilities of the Audit API.


In this document you can learn about:


Interactions with the Audit API are authenticated using Basic Authentication. Basic Authentication allows you to use your NEXMO_API_KEY and NEXMO_API_SECRET to validate your API requests. For more general information on authentication see Authentication.

Audit Events

Audit Events are activities that occur when a user interacts with the Vonage API or the Vonage API Dashboard. Audit events are represented by a JSON object. Examples of audit events include:

  • Account settings updates.
  • A Vonage Number gets assigned to an application.
  • Creation of a Vonage application.

Further information on types of audit events is given on the Audit Events page.

Audit Event object

An example audit event object is 'updating a number' which has event_type of NUMBER_UPDATED:

  "_links": {
    "self": {
      "href": ""
  "id": "aaaaaaaa-bbbb-cccc-dddd-0123456789ab",
  "event_type": "NUMBER_UPDATED",
  "event_type_description": "Number updated",
  "created_at": "2018-08-13T10:15:31",
  "account_id": "abcd1234",
  "source": "DEVAPI",
  "source_ip": "",
  "source_description": "Developer API",
  "source_country": "GB",
  "context": {
    "country": "GB",
    "msisdn": "447700900000",
    "voice-type": "sip",
    "voice-value": "",
    "accountId": "abcd1234"

Getting Started

This example shows you how to get started with the Audit API. It demonstrates how to retrieve a list of audit events.

You will need to ensure that the following replaceable values are set in the example code using any convenient method:

Key Description
NEXMO_API_KEY Your Vonage API key.
NEXMO_API_SECRET Your Vonage API secret.

In the following example the Create an application and Initialize your dependencies procedures are optional.


Create an application

A Nexmo application contains the required configuration for your project. You can create an application using the Nexmo CLI (see below) or via the dashboard. To learn more about applications see our Nexmo concepts guide.

Install the CLI

npm install -g nexmo-cli

Create an application

Once you have the CLI installed you can use it to create a Nexmo application. Run the following command and make a note of the application ID that it returns. This is the value to use in NEXMO_APPLICATION_ID in the example below. It will also create private.key in the current directory which you will need in the Initialize your dependencies step

Nexmo needs to connect to your local machine to access your answer_url. We recommend using ngrok to do this. Make sure to change in the examples below to your own ngrok URL.

nexmo app:create "Get Audit Events" --keyfile private.key
Initialize your dependencies

Create a file named and add the following code:

Copy to Clipboard
source "../"

View full source

Write the code

Add the following to

Copy to Clipboard
curl "" \

View full source

Run your code

Save this file to your machine and run it:



  • Audit Events: Audit events concepts, including types and structure of audit events.

Code Snippets

Use Cases

There is also a blog post on how to monitor your applications with the Audit API with Python you might find useful.