Audit API

The Vonage Audit API allows you to view details of changes to your account. More information is available at https://developer.nexmo.com/en/audit/overview. Please note that the Audit API is currently in Beta

Descargar la especificación OpenAPI

Retrieve audit events

Get a series of audit events describing changes made to your Vonage API account over time.

gethttps://api.nexmo.com/beta/audit/events

Autenticación

ClaveDescripciónDóndeEjemplo
Authorization

Clave API codificada en Base64 y secreto unidos por dos puntos.
Seguir leyendo

Headers

Basic <base64>

Consulta Parámetros

event_type
string
ejemploAPP_CREATE

Filter results by this event type.

Debe ser uno de:USER_STATUSUSER_UPDATEUSER_BILLING_UPDATEUSER_CREATEUSER_LOGINUSER_LOGOUTUSER_PRODUCT_SEARCHUSER_API_KEYS_UPDATEACCOUNT_SECRET_DELETEACCOUNT_SECRET_CREATEACCOUNT_UPDATE_SPAMMERACCOUNT_UPDATE_SETTINGS_APINUMBER_ASSIGNNUMBER_UPDATEDNUMBER_RELEASENUMBER_LINKEDNUMBER_UNLINKEDAPP_CREATEAPP_UPDATEAPP_DELETEAPP_DISABLEAPP_ENABLEIP_WHITELIST_CREATEIP_WHITELIST_DELETEAUTORELOAD_ENABLEAUTORELOAD_UPDATEAUTORELOAD_DISABLE
date_from
string

Start of time range for audit events. DateTime in ISO-8601 format.

date_to
string

End of time range for audit events. DateTime in ISO-8601 format.

search_text
string

Return only audit events where the JSON object contains this search text. Must be legal text for a JSON attribute value, that is quotes and braces must be escaped.

page
string

Page number starting with page 1.

size
integer
Min1
Max100
Por defecto30

Number of elements per page.

Respuestas
Tipo de contenido
application/json

OK

_embedded
object

Container containing the events array.

events
array
id
string
ejemploaaaaaaaa-bbbb-cccc-dddd-0123456789ab

UUID of the audit event

event_type
string
ejemploAPP_CREATE

The type of the audit event.

Debe ser uno de:USER_STATUSUSER_UPDATEUSER_BILLING_UPDATEUSER_CREATEUSER_LOGINUSER_LOGOUTUSER_PRODUCT_SEARCHUSER_API_KEYS_UPDATEACCOUNT_SECRET_DELETEACCOUNT_SECRET_CREATEACCOUNT_UPDATE_SPAMMERACCOUNT_UPDATE_SETTINGS_APINUMBER_ASSIGNNUMBER_UPDATEDNUMBER_RELEASENUMBER_LINKEDNUMBER_UNLINKEDAPP_CREATEAPP_UPDATEAPP_DELETEAPP_DISABLEAPP_ENABLEIP_WHITELIST_CREATEIP_WHITELIST_DELETEAUTORELOAD_ENABLEAUTORELOAD_UPDATEAUTORELOAD_DISABLE
event_type_description
string
ejemploApplication created.

A description of the event type

created_at
string(date-time)
ejemplo2018-07-04T11:41:32

When the audit event was created.

user_email
string(email)
ejemplouser@example.org

Email of the user whose account the audit event is associated with.

user_id
integer
ejemplo1234567

The ID of the user that the audit event is associated with.

account_id
string
ejemploabcd1234

The NEXMO_API_KEY of the Vonage API account that the audit event is associated with.

source
string
ejemploCD

The source of the event. CD: Customer Dashboard DEVAPI: via Developer API

Debe ser uno de:CDDEVAPI
source_ip
string(ipv4)
ejemplo192.0.2.0

The IP address used to make the account change.

source_description
string(A human readable description of the `source`.)
ejemploCustomer Dashboard

Description of the audit event source.

Debe ser uno de:Customer DashboardDeveloper API
source_country
string
ejemploGB

ISO 3166-1 Alpha-2 country code recorded for the event.

context
Uno de
appId
string
ejemploaaaaaaaa-bbbb-cccc-dddd-0123456789ab

UUID of the app that was created

created
object
accountId
string
ejemploabcdef01

Which account the app is associated with

appId
string
ejemploaaaaaaaa-bbbb-cccc-dddd-0123456789ab

UUID of the app that was created

name
string
ejemploMy Voice App

The name of the application created

answer_url
object
method
string
ejemploGET

The HTTP method used to make a callback to your application

Debe ser uno de:GETPOST
url
string(url)
ejemplohttps://example.org/my-app-callback

The URL used for a callback to your application

event_url
object
method
string
ejemploGET

The HTTP method used to make a callback to your application

Debe ser uno de:GETPOST
url
string(url)
ejemplohttps://example.org/my-app-callback

The URL used for a callback to your application

type
string
ejemplovoice

The type of application created

_links
object

A link to this audit event object if you were to retrieve it individually.

self
href
string(uri)
ejemplohttps://api.nexmo.com/beta/audit/events/aaaaaaaa-bbbb-cccc-dddd-0123456789ab

URI of this document.

_links
object

Container containing self, next and last page links.

self
object
href
string(uri)
ejemplohttp://api.nexmo.com/beta/audit/events

URI of this document.

next
object
href
string(uri)
ejemplohttp://api.nexmo.com/beta/audit/events?page=2&size=30

URI of the next document.

last
object
href
string(uri)
ejemplohttp://api.nexmo.com/beta/audit/events?page=2&size=30

URI of the last document in the sequence.

page
object

Page containing results.

size
integer
Min1
Max100
Por defecto30
ejemplo100

The total number of items in this response (page).

totalElements
integer
ejemplo120

The total number of items across all pages.

totalPages
integer
ejemplo2

The number of pages of data in the response.

number
integer
ejemplo1

Which page of the pagination sequence you are looking at.

Ejemplo Respuesta

{
   "_embedded": {
      "events": [
         {
            "id": "aaaaaaaa-bbbb-cccc-dddd-0123456789ab",
            "event_type": "APP_CREATE",
            "event_type_description": "Application created.",
            "created_at": "2018-07-04T11:41:32",
            "user_email": "user@example.org",
            "user_id": 1234567,
            "account_id": "abcd1234",
            "source": "CD",
            "source_ip": "192.0.2.0",
            "source_description": "Customer Dashboard",
            "source_country": "GB",
            "context": {
               "created": {
                  "accountId": "abcdef01",
                  "appId": "aaaaaaaa-bbbb-cccc-dddd-0123456789ab",
                  "name": "My voice app",
                  "answer_url": {
                     "method": "GET",
                     "url": "https://example.org/call"
                  },
                  "type": "voice",
                  "event_url": {
                     "method": "POST",
                     "url": "https://example.org/event"
                  }
               }
            },
            "_links": {
               "self": {
                  "href": "https://api.nexmo.com/beta/audit/events/aaaaaaaa-bbbb-cccc-dddd-0123456789ab"
               }
            }
         }
      ]
   },
   "_links": {
      "self": {
         "href": "http://api.nexmo.com/beta/audit/events"
      },
      "next": {
         "href": "http://api.nexmo.com/beta/audit/events?page=2&size=30"
      },
      "last": {
         "href": "http://api.nexmo.com/beta/audit/events?page=2&size=30"
      }
   },
   "page": {
      "size": 100,
      "totalElements": 120,
      "totalPages": 2,
      "number": 1
   }
}

Retrieve audit event types

Get audit event types.

optionshttps://api.nexmo.com/beta/audit/events

Autenticación

ClaveDescripciónDóndeEjemplo
Authorization

Clave API codificada en Base64 y secreto unidos por dos puntos.
Seguir leyendo

Headers

Basic <base64>

Respuestas
Tipo de contenido
application/json

OK

eventTypes
array

An array of audit event types.

type
string
ejemploAPP_CREATE

The type of the audit event.

Debe ser uno de:USER_STATUSUSER_UPDATEUSER_BILLING_UPDATEUSER_CREATEUSER_LOGINUSER_LOGOUTUSER_PRODUCT_SEARCHUSER_API_KEYS_UPDATEACCOUNT_SECRET_DELETEACCOUNT_SECRET_CREATEACCOUNT_UPDATE_SPAMMERACCOUNT_UPDATE_SETTINGS_APINUMBER_ASSIGNNUMBER_UPDATEDNUMBER_RELEASENUMBER_LINKEDNUMBER_UNLINKEDAPP_CREATEAPP_UPDATEAPP_DELETEAPP_DISABLEAPP_ENABLEIP_WHITELIST_CREATEIP_WHITELIST_DELETEAUTORELOAD_ENABLEAUTORELOAD_UPDATEAUTORELOAD_DISABLE
description
string
ejemploApplication created.

A description of the event type

Ejemplo Respuesta

{
   "eventTypes": [
      {
         "type": "APP_CREATE",
         "description": "Application created."
      }
   ]
}

Retrieve individual audit event

Get the specified audit event.

gethttps://api.nexmo.com/beta/audit/events/:id

Autenticación

ClaveDescripciónDóndeEjemplo
Authorization

Clave API codificada en Base64 y secreto unidos por dos puntos.
Seguir leyendo

Headers

Basic <base64>

Ruta Parámetros

id
string
Requerido

The UUID of the audit event to retrieve

Respuestas
Tipo de contenido
application/json

OK

id
string
ejemploaaaaaaaa-bbbb-cccc-dddd-0123456789ab

UUID of the audit event

event_type
string
ejemploAPP_CREATE

The type of the audit event.

Debe ser uno de:USER_STATUSUSER_UPDATEUSER_BILLING_UPDATEUSER_CREATEUSER_LOGINUSER_LOGOUTUSER_PRODUCT_SEARCHUSER_API_KEYS_UPDATEACCOUNT_SECRET_DELETEACCOUNT_SECRET_CREATEACCOUNT_UPDATE_SPAMMERACCOUNT_UPDATE_SETTINGS_APINUMBER_ASSIGNNUMBER_UPDATEDNUMBER_RELEASENUMBER_LINKEDNUMBER_UNLINKEDAPP_CREATEAPP_UPDATEAPP_DELETEAPP_DISABLEAPP_ENABLEIP_WHITELIST_CREATEIP_WHITELIST_DELETEAUTORELOAD_ENABLEAUTORELOAD_UPDATEAUTORELOAD_DISABLE
event_type_description
string
ejemploApplication created.

A description of the event type

created_at
string(date-time)
ejemplo2018-07-04T11:41:32

When the audit event was created.

user_email
string(email)
ejemplouser@example.org

Email of the user whose account the audit event is associated with.

user_id
integer
ejemplo1234567

The ID of the user that the audit event is associated with.

account_id
string
ejemploabcd1234

The NEXMO_API_KEY of the Vonage API account that the audit event is associated with.

source
string
ejemploCD

The source of the event. CD: Customer Dashboard DEVAPI: via Developer API

Debe ser uno de:CDDEVAPI
source_ip
string(ipv4)
ejemplo192.0.2.0

The IP address used to make the account change.

source_description
string(A human readable description of the `source`.)
ejemploCustomer Dashboard

Description of the audit event source.

Debe ser uno de:Customer DashboardDeveloper API
source_country
string
ejemploGB

ISO 3166-1 Alpha-2 country code recorded for the event.

context
Uno de
appId
string
ejemploaaaaaaaa-bbbb-cccc-dddd-0123456789ab

UUID of the app that was created

created
object
accountId
string
ejemploabcdef01

Which account the app is associated with

appId
string
ejemploaaaaaaaa-bbbb-cccc-dddd-0123456789ab

UUID of the app that was created

name
string
ejemploMy Voice App

The name of the application created

answer_url
object
method
string
ejemploGET

The HTTP method used to make a callback to your application

Debe ser uno de:GETPOST
url
string(url)
ejemplohttps://example.org/my-app-callback

The URL used for a callback to your application

event_url
object
method
string
ejemploGET

The HTTP method used to make a callback to your application

Debe ser uno de:GETPOST
url
string(url)
ejemplohttps://example.org/my-app-callback

The URL used for a callback to your application

type
string
ejemplovoice

The type of application created

_links
object

A link to this audit event object if you were to retrieve it individually.

self
href
string(uri)
ejemplohttps://api.nexmo.com/beta/audit/events/aaaaaaaa-bbbb-cccc-dddd-0123456789ab

URI of this document.

Ejemplo Respuesta

{
   "id": "aaaaaaaa-bbbb-cccc-dddd-0123456789ab",
   "event_type": "APP_CREATE",
   "event_type_description": "Application created.",
   "created_at": "2018-07-04T11:41:32",
   "user_email": "user@example.org",
   "user_id": 1234567,
   "account_id": "abcd1234",
   "source": "CD",
   "source_ip": "192.0.2.0",
   "source_description": "Customer Dashboard",
   "source_country": "GB",
   "context": {
      "created": {
         "accountId": "abcdef01",
         "appId": "aaaaaaaa-bbbb-cccc-dddd-0123456789ab",
         "name": "My voice app",
         "answer_url": {
            "method": "GET",
            "url": "https://example.org/call"
         },
         "type": "voice",
         "event_url": {
            "method": "POST",
            "url": "https://example.org/event"
         }
      }
   },
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/beta/audit/events/aaaaaaaa-bbbb-cccc-dddd-0123456789ab"
      }
   }
}