Application API

Versión 2

Vonage provides an Application API to allow management of your Vonage Applications.

This API is backwards compatible with version 1. Applications created using version 1 of the API can also be managed using version 2 (this version) of the API.

Descargar la especificación OpenAPI

Application

A Vonage API application contains the security and configuration information you need to connect to Vonage endpoints and use the Vonage APIs.

List available applications

gethttps://api.nexmo.com/v2/applications

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

page_size
integer

The number of applications per page

page
integer

The current page number (starts at 1)

Respuestas
Tipo de contenido
application/json

Success

page_size
integer
ejemplo10

The number of applications per page

page
integer
ejemplo1

The current page number (starts at 1)

total_items
integer
ejemplo6

The total number of applications

total_pages
integer
ejemplo1

The total number of pages returned

_embedded
object

A list of applications matching your existing filters

applications
array
id
string
ejemplo78d335fa-323d-0114-9c3d-d6f0d48968cf

The application's ID

name
string
ejemploMy Application

Friendly identifier for your application. This is not unique

capabilities
object

Configuration for the products available in this application

voice
object

Voice related configuration

webhooks
object
answer_url
object
address
string
ejemplohttps://example.com/webhooks/answer

The URL that Vonage requests when a call is placed/received. Must return an NCCO

http_method
string
ejemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

fallback_answer_url
object
address
string
ejemplohttps://fallback.example.com/webhooks/answer

If your answer_url is offline or returns a HTTP error code, Vonage will make a request to a fallback_answer_url if it is set. This URL must return an NCCO.

http_method
string
ejemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
ejemplo500

Connection timeout in milliseconds

socket_timeout
integer
ejemplo3000

Reading timeout in milliseconds

event_url
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events related to your call to

http_method
string
ejemploPOST

The HTTP method used to send events to your server

connect_timeout
integer
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

signed_callbacks
boolean
Por defectotrue

Whether to use signed webhooks. This is a way of verifying that the request is coming from Vonage. Refer to the Webhooks documentation for more information.

conversations_ttl
integer
Min1
Max9000
Por defecto48
ejemplo12

The length of time named conversations will remain active for after creation, in hours. Maximum value is 9000 (i.e. 365 days).

leg_persistence_time
integer
Min1
Max31
Por defecto2
ejemplo10

The persistence duration for legs, in days. Maximum value is 31.

region
string
ejemploeu-west

Selecting a region means all inbound, programmable SIP and SIP connect calls will be sent to the selected region unless the call is sent to a regional endpoint, if the call is using a regional endpoint this will override the application setting. Use the following parameter values:

  • na-east - North America - East (api-us-3.vonage.com)
  • na-west - North America - West (api-us-4.vonage.com)
  • eu-east - Europe - East (api-eu-4.vonage.com)
  • eu-west - Europe - West (api-eu-3.vonage.com)
  • apac-sng - Singapore (api-ap-3.vonage.com)
  • apac-australia - Australia (api-ap-4.vonage.com)
Debe ser uno de:na-eastna-westeu-easteu-westapac-sngapac-australia
messages
object

Messages / Dispatch related configuration

webhooks
object
inbound_url
object
address
string
ejemplohttps://example.com/webhooks/inbound

The URL that Vonage forwards inbound messages to on your server

http_method
string
ejemploPOST

The HTTP method used to send inbound messages to your server

status_url
object
address
string
ejemplohttps://example.com/webhooks/status

The URL that Vonage sends events related to your messages to

http_method
string
ejemploPOST

The HTTP method used to send events to your server (always POST)

rtc
object

RTC / Conversation Service related configuration

webhooks
object
event_url
object
address
string
ejemplohttps://example.com/webhooks/event
http_method
string
ejemploPOST
signed_callbacks
boolean
Por defectotrue

Whether to use signed webhooks. This is a way of verifying that the request is coming from Vonage. Refer to the Webhooks documentation for more information.

vbc
object

Specify the vbc capability to enable zero-rated calls for VBC number programmability service applications. This is always an empty object.

network_apis
object

Network APIs

network_application_id
string
ejemplo2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
ejemplohttps://my-redirect-uri.example.com
meetings
object

Meetings related configuration

webhooks
object
recording_changed
object
address
string
ejemplohttps://example.com/webhooks/recordings

The URL that Vonage forwards recording information to on your server

http_method
string
ejemploPOST

The HTTP method used to send recording information to your server (always POST)

room_changed
object
address
string
ejemplohttps://example.com/webhooks/rooms

The URL that Vonage forwards meeting room information on your server.

http_method
string
ejemploPOST

The HTTP method used to send meeting room information to your server (always POST)

session_changed
object
address
string
ejemplohttps://example.com/webhooks/sessions

The URL that Vonage forwards session information on your server.

http_method
string
ejemploPOST

The HTTP method used to send session information to your server (always POST)

verify
object

Verify v2 related configuration

version
string
ejemplov2

The version of the Verify API to use

webhooks
object
status_url
object
address
string
ejemplohttps://example.com/webhooks/status

The URL that Vonage sends events related to your verify requests to

http_method
string
ejemploPOST

The HTTP method used to send events to your server (always POST)

video
object

Video related configuration

webhooks
object
archive_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events informing about the archive status

active
boolean
ejemplotrue

Whether the webhook is active

connection_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video connection is created

active
boolean
ejemplotrue

Whether the webhook is active

connection_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video connection is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

session_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video session is created

active
boolean
ejemplotrue

Whether the webhook is active

session_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video session is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

session_notification
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends session notifications to

active
boolean
ejemplotrue

Whether the webhook is active

stream_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a stream is created

active
boolean
ejemplotrue

Whether the webhook is active

stream_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a stream is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

render_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a render status changes

active
boolean
ejemplotrue

Whether the webhook is active

captions_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when captions status changes

active
boolean
ejemplotrue

Whether the webhook is active

broadcast_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a broadcast status changes

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is created

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_updated
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is updated

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_mute_forced
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is muted

active
boolean
ejemplotrue

Whether the webhook is active

storage
object
server_side_encryption
boolean

Whether to use server-side encryption

end_to_end_encryption
boolean

Whether to use end-to-end encryption

cloud_storage
boolean

Whether to use cloud storage feature

privacy
object

Application privacy config

improve_ai
boolean
ejemplotrue

If set to true, Vonage may store and use your content and data for the improvement of Vonage's AI based services and technologies.

Ejemplo Respuesta

{
   "page_size": 10,
   "page": 1,
   "total_items": 6,
   "total_pages": 1,
   "_embedded": {
      "applications": [
         {
            "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
            "name": "My Application",
            "capabilities": {
               "voice": {
                  "webhooks": {
                     "answer_url": {
                        "address": "https://example.com/webhooks/answer",
                        "http_method": "POST",
                        "connect_timeout": 500,
                        "socket_timeout": 3000
                     },
                     "fallback_answer_url": {
                        "address": "https://fallback.example.com/webhooks/answer",
                        "http_method": "POST",
                        "connect_timeout": 500,
                        "socket_timeout": 3000
                     },
                     "event_url": {
                        "address": "https://example.com/webhooks/event",
                        "http_method": "POST",
                        "connect_timeout": 500,
                        "socket_timeout": 3000
                     }
                  },
                  "signed_callbacks": false,
                  "conversations_ttl": 12,
                  "leg_persistence_time": 10,
                  "region": "eu-west"
               },
               "messages": {
                  "webhooks": {
                     "inbound_url": {
                        "address": "https://example.com/webhooks/inbound",
                        "http_method": "POST"
                     },
                     "status_url": {
                        "address": "https://example.com/webhooks/status",
                        "http_method": "POST"
                     }
                  }
               },
               "rtc": {
                  "webhooks": {
                     "event_url": {
                        "address": "https://example.com/webhooks/event",
                        "http_method": "POST"
                     }
                  },
                  "signed_callbacks": false
               },
               "vbc": {},
               "network_apis": {
                  "network_application_id": "2bzfIFqRG128IcjSj1YhZNtw6LADG",
                  "redirect_uri": "https://my-redirect-uri.example.com"
               },
               "meetings": {
                  "webhooks": {
                     "recording_changed": {
                        "address": "https://example.com/webhooks/recordings",
                        "http_method": "POST"
                     },
                     "room_changed": {
                        "address": "https://example.com/webhooks/rooms",
                        "http_method": "POST"
                     },
                     "session_changed": {
                        "address": "https://example.com/webhooks/sessions",
                        "http_method": "POST"
                     }
                  }
               },
               "verify": {
                  "version": "v2",
                  "webhooks": {
                     "status_url": {
                        "address": "https://example.com/webhooks/status",
                        "http_method": "POST"
                     }
                  }
               },
               "video": {
                  "webhooks": {
                     "archive_status": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "connection_created": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "connection_destroyed": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "session_created": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "session_destroyed": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "session_notification": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "stream_created": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "stream_destroyed": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "render_status": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "captions_status": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "broadcast_status": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "sip_call_created": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "sip_call_updated": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "sip_call_destroyed": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     },
                     "sip_call_mute_forced": {
                        "address": "https://example.com/webhooks/event",
                        "active": true
                     }
                  },
                  "storage": {
                     "server_side_encryption": false,
                     "end_to_end_encryption": false,
                     "cloud_storage": false
                  }
               }
            },
            "privacy": {
               "improve_ai": true
            }
         }
      ]
   }
}

Create an application

posthttps://api.nexmo.com/v2/applications

Autenticación

ClaveDescripciónDóndeEjemplo
Authorization

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

Headers

Basic <base64>

Cuerpo de la solicitud
Tipo de contenido
application/json

name
string
Requerido
ejemploDemo Application

Application Name

keys
object
public_key
string
ejemplo-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCA KOxjsU4pf/sMFi9N0jqcSLcjxu33G d/vynKnlw9SENi+UZR44GdjGdmfm1 tL1eA7IBh2HNnkYXnAwYzKJoa4eO3 0kYWekeIZawIwe/g9faFgkev+1xsO OUNhPx2LhuLmgwWSRS4L5W851Xe3f UQIDAQAB -----END PUBLIC KEY-----

Public key

capabilities
object

Your application can use multiple products. This contains the configuration for each product. This replaces the application type from version 1 of the Application API.

voice
object

Voice application webhook config

webhooks
object
answer_url
object

The URL that Vonage makes a request to when a call is placed/received. Must return an NCCO

address
string
ejemplohttps://example.com/webhooks/answer
http_method
string
ejemploGET
Debe ser uno de:GETPOST
connect_timeout
integer
Min300
Max1000
Por defecto1000
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
Min1000
Max5000
Por defecto5000
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

fallback_answer_url
object

If your answer_url is offline or returns a HTTP error code, Vonage will make a request to a fallback_answer_url if it is set. This URL must return an NCCO.

address
string
ejemplohttps://fallback.example.com/webhooks/answer
http_method
string
ejemploGET
Debe ser uno de:GETPOST
connect_timeout
integer
Min300
Max1000
Por defecto1000
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
Min1000
Max5000
Por defecto5000
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

event_url
object

Vonage will send call events (e.g. ringing, answered) to this URL

address
string
ejemplohttps://example.com/webhooks/event
http_method
string
ejemploPOST
Debe ser uno de:GETPOST
connect_timeout
integer
Min300
Max1000
Por defecto1000
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
Min1000
Max10000
Por defecto10000
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

signed_callbacks
boolean
Por defectotrue

Whether to use signed webhooks. This is a way of verifying that the request is coming from Vonage. Refer to the Webhooks documentation for more information.

conversations_ttl
integer
Min1
Max9000
Por defecto48
ejemplo12

The length of time named conversations will remain active for after creation, in hours. Maximum value is 9000 (i.e. 365 days).

leg_persistence_time
integer
Min1
Max31
Por defecto2
ejemplo10

The persistence duration for legs, in days. Maximum value is 31.

region
string
ejemploeu-west

Selecting a region means all inbound, programmable SIP and SIP connect calls will be sent to the selected region unless the call is sent to a regional endpoint, if the call is using a regional endpoint this will override the application setting. Use the following parameter values:

  • na-east - North America - East (api-us-3.vonage.com)
  • na-west - North America - West (api-us-4.vonage.com)
  • eu-east - Europe - East (api-eu-4.vonage.com)
  • eu-west - Europe - West (api-eu-3.vonage.com)
  • apac-sng - Singapore (api-ap-3.vonage.com)
  • apac-australia - Australia (api-ap-4.vonage.com)
Debe ser uno de:na-eastna-westeu-easteu-westapac-sngapac-australia
rtc
object

RTC / Client SDK application webhook config

webhooks
object
event_url
object

Vonage will send RTC events to this URL

address
string
ejemplohttps://example.com/webhooks/event
http_method
string
ejemploPOST
Debe ser uno de:GETPOST
signed_callbacks
boolean
Por defectotrue

Whether to use signed webhooks. This is a way of verifying that the request is coming from Vonage. Refer to the Webhooks documentation for more information.

messages
object

Messages and Dispatch application webhook config

version
string

If not populated will be set to v1

webhooks
object
inbound_url
object

Vonage will forward inbound messages to this URL

address
string
ejemplohttps://example.com/webhooks/inbound
http_method
string
ejemploPOST
Debe ser uno de:POST
status_url
object

Vonage will send message status updates (e.g. delivered, seen) to this URL

address
string
ejemplohttps://example.com/webhooks/status
http_method
string
ejemploPOST
Debe ser uno de:POST
vbc
object

Specify vbc capability to enable zero-rated calls for VBC number programmability service applications. This must be an empty object.

network_apis
object

Network APIs

network_application_id
string
ejemplo2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
ejemplohttps://my-redirect-uri.example.com
meetings
object

Meetings related configuration

webhooks
object
recording_changed
object

The URL that Vonage forwards recording information to on your server

address
string
ejemplohttps://example.com/webhooks/recordings
http_method
string
ejemploPOST
Debe ser uno de:POST
room_changed
object

The URL that Vonage forwards meeting room information on your server.

address
string
ejemplohttps://example.com/webhooks/rooms
http_method
string
ejemploPOST
Debe ser uno de:POST
session_changed
object

The URL that Vonage forwards session information on your server.

address
string
ejemplohttps://example.com/webhooks/sessions
http_method
string
ejemploPOST
Debe ser uno de:POST
verify
object

Verify v2 application webhook config

webhooks
object
status_url
object

Vonage will send Verify updates to this URL

address
string
ejemplohttps://example.com/webhooks/status
http_method
string
ejemploPOST
Debe ser uno de:POST
video
object

Video related configuration

webhooks
object
archive_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events informing about the archive status

active
boolean
ejemplotrue

Whether the webhook is active

connection_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video connection is created

active
boolean
ejemplotrue

Whether the webhook is active

connection_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video connection is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

session_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video session is created

active
boolean
ejemplotrue

Whether the webhook is active

session_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video session is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

session_notification
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends session notifications to

active
boolean
ejemplotrue

Whether the webhook is active

stream_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a stream is created

active
boolean
ejemplotrue

Whether the webhook is active

stream_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a stream is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

render_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a render status changes

active
boolean
ejemplotrue

Whether the webhook is active

captions_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when captions status changes

active
boolean
ejemplotrue

Whether the webhook is active

broadcast_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a broadcast status changes

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is created

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_updated
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is updated

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_mute_forced
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is muted

active
boolean
ejemplotrue

Whether the webhook is active

storage
object
server_side_encryption
boolean

Whether to use server-side encryption

end_to_end_encryption
boolean

Whether to use end-to-end encryption

cloud_storage
boolean

Whether to use cloud storage feature

privacy
object

Application privacy config

improve_ai
boolean
Por defectotrue
ejemplotrue

If set to true, Vonage may store and use your content and data for the improvement of Vonage's AI based services and technologies.

Ejemplo Solicitar

{
   "name": "Demo Application",
   "keys": {
      "public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCA\nKOxjsU4pf/sMFi9N0jqcSLcjxu33G\nd/vynKnlw9SENi+UZR44GdjGdmfm1\ntL1eA7IBh2HNnkYXnAwYzKJoa4eO3\n0kYWekeIZawIwe/g9faFgkev+1xsO\nOUNhPx2LhuLmgwWSRS4L5W851Xe3f\nUQIDAQAB\n-----END PUBLIC KEY-----\n"
   },
   "capabilities": {
      "voice": {
         "webhooks": {
            "answer_url": {
               "address": "https://example.com/webhooks/answer",
               "http_method": "GET",
               "connect_timeout": 500,
               "socket_timeout": 3000
            },
            "fallback_answer_url": {
               "address": "https://fallback.example.com/webhooks/answer",
               "http_method": "GET",
               "connect_timeout": 500,
               "socket_timeout": 3000
            },
            "event_url": {
               "address": "https://example.com/webhooks/event",
               "http_method": "POST",
               "connect_timeout": 500,
               "socket_timeout": 3000
            }
         },
         "signed_callbacks": false,
         "conversations_ttl": 12,
         "leg_persistence_time": 10,
         "region": "eu-west"
      },
      "rtc": {
         "webhooks": {
            "event_url": {
               "address": "https://example.com/webhooks/event",
               "http_method": "POST"
            }
         },
         "signed_callbacks": false
      },
      "messages": {
         "version": "string",
         "webhooks": {
            "inbound_url": {
               "address": "https://example.com/webhooks/inbound",
               "http_method": "POST"
            },
            "status_url": {
               "address": "https://example.com/webhooks/status",
               "http_method": "POST"
            }
         }
      },
      "vbc": {},
      "network_apis": {
         "network_application_id": "2bzfIFqRG128IcjSj1YhZNtw6LADG",
         "redirect_uri": "https://my-redirect-uri.example.com"
      },
      "meetings": {
         "webhooks": {
            "recording_changed": {
               "address": "https://example.com/webhooks/recordings",
               "http_method": "POST"
            },
            "room_changed": {
               "address": "https://example.com/webhooks/rooms",
               "http_method": "POST"
            },
            "session_changed": {
               "address": "https://example.com/webhooks/sessions",
               "http_method": "POST"
            }
         }
      },
      "verify": {
         "webhooks": {
            "status_url": {
               "address": "https://example.com/webhooks/status",
               "http_method": "POST"
            }
         }
      },
      "video": {
         "webhooks": {
            "archive_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "connection_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "connection_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_notification": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "stream_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "stream_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "render_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "captions_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "broadcast_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_updated": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_mute_forced": {
               "address": "https://example.com/webhooks/event",
               "active": true
            }
         },
         "storage": {
            "server_side_encryption": false,
            "end_to_end_encryption": false,
            "cloud_storage": false
         }
      }
   },
   "privacy": {
      "improve_ai": true
   }
}

Respuestas
Tipo de contenido
application/json

Success

id
string
ejemplo78d335fa-323d-0114-9c3d-d6f0d48968cf

The application's ID

name
string
ejemploMy Application

Friendly identifier for your application. This is not unique

capabilities
object

Configuration for the products available in this application

voice
object

Voice related configuration

webhooks
object
answer_url
object
address
string
ejemplohttps://example.com/webhooks/answer

The URL that Vonage requests when a call is placed/received. Must return an NCCO

http_method
string
ejemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

fallback_answer_url
object
address
string
ejemplohttps://fallback.example.com/webhooks/answer

If your answer_url is offline or returns a HTTP error code, Vonage will make a request to a fallback_answer_url if it is set. This URL must return an NCCO.

http_method
string
ejemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
ejemplo500

Connection timeout in milliseconds

socket_timeout
integer
ejemplo3000

Reading timeout in milliseconds

event_url
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events related to your call to

http_method
string
ejemploPOST

The HTTP method used to send events to your server

connect_timeout
integer
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

signed_callbacks
boolean
Por defectotrue

Whether to use signed webhooks. This is a way of verifying that the request is coming from Vonage. Refer to the Webhooks documentation for more information.

conversations_ttl
integer
Min1
Max9000
Por defecto48
ejemplo12

The length of time named conversations will remain active for after creation, in hours. Maximum value is 9000 (i.e. 365 days).

leg_persistence_time
integer
Min1
Max31
Por defecto2
ejemplo10

The persistence duration for legs, in days. Maximum value is 31.

region
string
ejemploeu-west

Selecting a region means all inbound, programmable SIP and SIP connect calls will be sent to the selected region unless the call is sent to a regional endpoint, if the call is using a regional endpoint this will override the application setting. Use the following parameter values:

  • na-east - North America - East (api-us-3.vonage.com)
  • na-west - North America - West (api-us-4.vonage.com)
  • eu-east - Europe - East (api-eu-4.vonage.com)
  • eu-west - Europe - West (api-eu-3.vonage.com)
  • apac-sng - Singapore (api-ap-3.vonage.com)
  • apac-australia - Australia (api-ap-4.vonage.com)
Debe ser uno de:na-eastna-westeu-easteu-westapac-sngapac-australia
messages
object

Messages / Dispatch related configuration

webhooks
object
inbound_url
object
address
string
ejemplohttps://example.com/webhooks/inbound

The URL that Vonage forwards inbound messages to on your server

http_method
string
ejemploPOST

The HTTP method used to send inbound messages to your server

status_url
object
address
string
ejemplohttps://example.com/webhooks/status

The URL that Vonage sends events related to your messages to

http_method
string
ejemploPOST

The HTTP method used to send events to your server (always POST)

rtc
object

RTC / Conversation Service related configuration

webhooks
object
event_url
object
address
string
ejemplohttps://example.com/webhooks/event
http_method
string
ejemploPOST
signed_callbacks
boolean
Por defectotrue

Whether to use signed webhooks. This is a way of verifying that the request is coming from Vonage. Refer to the Webhooks documentation for more information.

vbc
object

Specify the vbc capability to enable zero-rated calls for VBC number programmability service applications. This is always an empty object.

network_apis
object

Network APIs

network_application_id
string
ejemplo2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
ejemplohttps://my-redirect-uri.example.com
meetings
object

Meetings related configuration

webhooks
object
recording_changed
object
address
string
ejemplohttps://example.com/webhooks/recordings

The URL that Vonage forwards recording information to on your server

http_method
string
ejemploPOST

The HTTP method used to send recording information to your server (always POST)

room_changed
object
address
string
ejemplohttps://example.com/webhooks/rooms

The URL that Vonage forwards meeting room information on your server.

http_method
string
ejemploPOST

The HTTP method used to send meeting room information to your server (always POST)

session_changed
object
address
string
ejemplohttps://example.com/webhooks/sessions

The URL that Vonage forwards session information on your server.

http_method
string
ejemploPOST

The HTTP method used to send session information to your server (always POST)

verify
object

Verify v2 related configuration

version
string
ejemplov2

The version of the Verify API to use

webhooks
object
status_url
object
address
string
ejemplohttps://example.com/webhooks/status

The URL that Vonage sends events related to your verify requests to

http_method
string
ejemploPOST

The HTTP method used to send events to your server (always POST)

video
object

Video related configuration

webhooks
object
archive_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events informing about the archive status

active
boolean
ejemplotrue

Whether the webhook is active

connection_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video connection is created

active
boolean
ejemplotrue

Whether the webhook is active

connection_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video connection is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

session_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video session is created

active
boolean
ejemplotrue

Whether the webhook is active

session_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video session is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

session_notification
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends session notifications to

active
boolean
ejemplotrue

Whether the webhook is active

stream_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a stream is created

active
boolean
ejemplotrue

Whether the webhook is active

stream_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a stream is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

render_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a render status changes

active
boolean
ejemplotrue

Whether the webhook is active

captions_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when captions status changes

active
boolean
ejemplotrue

Whether the webhook is active

broadcast_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a broadcast status changes

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is created

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_updated
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is updated

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_mute_forced
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is muted

active
boolean
ejemplotrue

Whether the webhook is active

storage
object
server_side_encryption
boolean

Whether to use server-side encryption

end_to_end_encryption
boolean

Whether to use end-to-end encryption

cloud_storage
boolean

Whether to use cloud storage feature

privacy
object

Application privacy config

improve_ai
boolean
ejemplotrue

If set to true, Vonage may store and use your content and data for the improvement of Vonage's AI based services and technologies.

keys
object
public_key
string
ejemplo-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCA KOxjsU4pf/sMFi9N0jqcSLcjxu33G d/vynKnlw9SENi+UZR44GdjGdmfm1 tL1eA7IBh2HNnkYXnAwYzKJoa4eO3 0kYWekeIZawIwe/g9faFgkev+1xsO OUNhPx2LhuLmgwWSRS4L5W851Xe3f UQIDAQAB -----END PUBLIC KEY-----
private_key
string
ejemplo-----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFA ASCBKcwggSjAgEAAoIBAQDEPpvi+3 RH1efQ\nkveWzZDrNNoEXmBw61w+O 0u/N36tJnN5XnYecU64yHzu2ByEr0 7iIvYbavFnADwl\nHMTJwqDQakpa3 8/SFRnTDq3zronvNZ6nOp7S6K7pcZ rw/CvrL6hXT1x7cGBZ4jPx\nqhjqY uJPgZD7OVB69oYOV92vIIJ7JLYwqb -----END PRIVATE KEY-----

Ejemplo Respuesta

{
   "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
   "name": "My Application",
   "capabilities": {
      "voice": {
         "webhooks": {
            "answer_url": {
               "address": "https://example.com/webhooks/answer",
               "http_method": "POST",
               "connect_timeout": 500,
               "socket_timeout": 3000
            },
            "fallback_answer_url": {
               "address": "https://fallback.example.com/webhooks/answer",
               "http_method": "POST",
               "connect_timeout": 500,
               "socket_timeout": 3000
            },
            "event_url": {
               "address": "https://example.com/webhooks/event",
               "http_method": "POST",
               "connect_timeout": 500,
               "socket_timeout": 3000
            }
         },
         "signed_callbacks": false,
         "conversations_ttl": 12,
         "leg_persistence_time": 10,
         "region": "eu-west"
      },
      "messages": {
         "webhooks": {
            "inbound_url": {
               "address": "https://example.com/webhooks/inbound",
               "http_method": "POST"
            },
            "status_url": {
               "address": "https://example.com/webhooks/status",
               "http_method": "POST"
            }
         }
      },
      "rtc": {
         "webhooks": {
            "event_url": {
               "address": "https://example.com/webhooks/event",
               "http_method": "POST"
            }
         },
         "signed_callbacks": false
      },
      "vbc": {},
      "network_apis": {
         "network_application_id": "2bzfIFqRG128IcjSj1YhZNtw6LADG",
         "redirect_uri": "https://my-redirect-uri.example.com"
      },
      "meetings": {
         "webhooks": {
            "recording_changed": {
               "address": "https://example.com/webhooks/recordings",
               "http_method": "POST"
            },
            "room_changed": {
               "address": "https://example.com/webhooks/rooms",
               "http_method": "POST"
            },
            "session_changed": {
               "address": "https://example.com/webhooks/sessions",
               "http_method": "POST"
            }
         }
      },
      "verify": {
         "version": "v2",
         "webhooks": {
            "status_url": {
               "address": "https://example.com/webhooks/status",
               "http_method": "POST"
            }
         }
      },
      "video": {
         "webhooks": {
            "archive_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "connection_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "connection_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_notification": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "stream_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "stream_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "render_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "captions_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "broadcast_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_updated": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_mute_forced": {
               "address": "https://example.com/webhooks/event",
               "active": true
            }
         },
         "storage": {
            "server_side_encryption": false,
            "end_to_end_encryption": false,
            "cloud_storage": false
         }
      }
   },
   "privacy": {
      "improve_ai": true
   },
   "keys": {
      "public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCA\nKOxjsU4pf/sMFi9N0jqcSLcjxu33G\nd/vynKnlw9SENi+UZR44GdjGdmfm1\ntL1eA7IBh2HNnkYXnAwYzKJoa4eO3\n0kYWekeIZawIwe/g9faFgkev+1xsO\nOUNhPx2LhuLmgwWSRS4L5W851Xe3f\nUQIDAQAB\n-----END PUBLIC KEY-----\n",
      "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFA\nASCBKcwggSjAgEAAoIBAQDEPpvi+3\nRH1efQ\\nkveWzZDrNNoEXmBw61w+O\n0u/N36tJnN5XnYecU64yHzu2ByEr0\n7iIvYbavFnADwl\\nHMTJwqDQakpa3\n8/SFRnTDq3zronvNZ6nOp7S6K7pcZ\nrw/CvrL6hXT1x7cGBZ4jPx\\nqhjqY\nuJPgZD7OVB69oYOV92vIIJ7JLYwqb\n-----END PRIVATE KEY-----\n"
   }
}

Get an application

gethttps://api.nexmo.com/v2/applications/: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 ID of the application

Respuestas
Tipo de contenido
application/json

Success

id
string
ejemplo78d335fa-323d-0114-9c3d-d6f0d48968cf

The application's ID

name
string
ejemploMy Application

Friendly identifier for your application. This is not unique

capabilities
object

Configuration for the products available in this application

voice
object

Voice related configuration

webhooks
object
answer_url
object
address
string
ejemplohttps://example.com/webhooks/answer

The URL that Vonage requests when a call is placed/received. Must return an NCCO

http_method
string
ejemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

fallback_answer_url
object
address
string
ejemplohttps://fallback.example.com/webhooks/answer

If your answer_url is offline or returns a HTTP error code, Vonage will make a request to a fallback_answer_url if it is set. This URL must return an NCCO.

http_method
string
ejemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
ejemplo500

Connection timeout in milliseconds

socket_timeout
integer
ejemplo3000

Reading timeout in milliseconds

event_url
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events related to your call to

http_method
string
ejemploPOST

The HTTP method used to send events to your server

connect_timeout
integer
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

signed_callbacks
boolean
Por defectotrue

Whether to use signed webhooks. This is a way of verifying that the request is coming from Vonage. Refer to the Webhooks documentation for more information.

conversations_ttl
integer
Min1
Max9000
Por defecto48
ejemplo12

The length of time named conversations will remain active for after creation, in hours. Maximum value is 9000 (i.e. 365 days).

leg_persistence_time
integer
Min1
Max31
Por defecto2
ejemplo10

The persistence duration for legs, in days. Maximum value is 31.

region
string
ejemploeu-west

Selecting a region means all inbound, programmable SIP and SIP connect calls will be sent to the selected region unless the call is sent to a regional endpoint, if the call is using a regional endpoint this will override the application setting. Use the following parameter values:

  • na-east - North America - East (api-us-3.vonage.com)
  • na-west - North America - West (api-us-4.vonage.com)
  • eu-east - Europe - East (api-eu-4.vonage.com)
  • eu-west - Europe - West (api-eu-3.vonage.com)
  • apac-sng - Singapore (api-ap-3.vonage.com)
  • apac-australia - Australia (api-ap-4.vonage.com)
Debe ser uno de:na-eastna-westeu-easteu-westapac-sngapac-australia
messages
object

Messages / Dispatch related configuration

webhooks
object
inbound_url
object
address
string
ejemplohttps://example.com/webhooks/inbound

The URL that Vonage forwards inbound messages to on your server

http_method
string
ejemploPOST

The HTTP method used to send inbound messages to your server

status_url
object
address
string
ejemplohttps://example.com/webhooks/status

The URL that Vonage sends events related to your messages to

http_method
string
ejemploPOST

The HTTP method used to send events to your server (always POST)

rtc
object

RTC / Conversation Service related configuration

webhooks
object
event_url
object
address
string
ejemplohttps://example.com/webhooks/event
http_method
string
ejemploPOST
signed_callbacks
boolean
Por defectotrue

Whether to use signed webhooks. This is a way of verifying that the request is coming from Vonage. Refer to the Webhooks documentation for more information.

vbc
object

Specify the vbc capability to enable zero-rated calls for VBC number programmability service applications. This is always an empty object.

network_apis
object

Network APIs

network_application_id
string
ejemplo2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
ejemplohttps://my-redirect-uri.example.com
meetings
object

Meetings related configuration

webhooks
object
recording_changed
object
address
string
ejemplohttps://example.com/webhooks/recordings

The URL that Vonage forwards recording information to on your server

http_method
string
ejemploPOST

The HTTP method used to send recording information to your server (always POST)

room_changed
object
address
string
ejemplohttps://example.com/webhooks/rooms

The URL that Vonage forwards meeting room information on your server.

http_method
string
ejemploPOST

The HTTP method used to send meeting room information to your server (always POST)

session_changed
object
address
string
ejemplohttps://example.com/webhooks/sessions

The URL that Vonage forwards session information on your server.

http_method
string
ejemploPOST

The HTTP method used to send session information to your server (always POST)

verify
object

Verify v2 related configuration

version
string
ejemplov2

The version of the Verify API to use

webhooks
object
status_url
object
address
string
ejemplohttps://example.com/webhooks/status

The URL that Vonage sends events related to your verify requests to

http_method
string
ejemploPOST

The HTTP method used to send events to your server (always POST)

video
object

Video related configuration

webhooks
object
archive_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events informing about the archive status

active
boolean
ejemplotrue

Whether the webhook is active

connection_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video connection is created

active
boolean
ejemplotrue

Whether the webhook is active

connection_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video connection is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

session_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video session is created

active
boolean
ejemplotrue

Whether the webhook is active

session_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video session is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

session_notification
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends session notifications to

active
boolean
ejemplotrue

Whether the webhook is active

stream_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a stream is created

active
boolean
ejemplotrue

Whether the webhook is active

stream_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a stream is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

render_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a render status changes

active
boolean
ejemplotrue

Whether the webhook is active

captions_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when captions status changes

active
boolean
ejemplotrue

Whether the webhook is active

broadcast_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a broadcast status changes

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is created

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_updated
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is updated

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_mute_forced
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is muted

active
boolean
ejemplotrue

Whether the webhook is active

storage
object
server_side_encryption
boolean

Whether to use server-side encryption

end_to_end_encryption
boolean

Whether to use end-to-end encryption

cloud_storage
boolean

Whether to use cloud storage feature

privacy
object

Application privacy config

improve_ai
boolean
ejemplotrue

If set to true, Vonage may store and use your content and data for the improvement of Vonage's AI based services and technologies.

Ejemplo Respuesta

{
   "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
   "name": "My Application",
   "capabilities": {
      "voice": {
         "webhooks": {
            "answer_url": {
               "address": "https://example.com/webhooks/answer",
               "http_method": "POST",
               "connect_timeout": 500,
               "socket_timeout": 3000
            },
            "fallback_answer_url": {
               "address": "https://fallback.example.com/webhooks/answer",
               "http_method": "POST",
               "connect_timeout": 500,
               "socket_timeout": 3000
            },
            "event_url": {
               "address": "https://example.com/webhooks/event",
               "http_method": "POST",
               "connect_timeout": 500,
               "socket_timeout": 3000
            }
         },
         "signed_callbacks": false,
         "conversations_ttl": 12,
         "leg_persistence_time": 10,
         "region": "eu-west"
      },
      "messages": {
         "webhooks": {
            "inbound_url": {
               "address": "https://example.com/webhooks/inbound",
               "http_method": "POST"
            },
            "status_url": {
               "address": "https://example.com/webhooks/status",
               "http_method": "POST"
            }
         }
      },
      "rtc": {
         "webhooks": {
            "event_url": {
               "address": "https://example.com/webhooks/event",
               "http_method": "POST"
            }
         },
         "signed_callbacks": false
      },
      "vbc": {},
      "network_apis": {
         "network_application_id": "2bzfIFqRG128IcjSj1YhZNtw6LADG",
         "redirect_uri": "https://my-redirect-uri.example.com"
      },
      "meetings": {
         "webhooks": {
            "recording_changed": {
               "address": "https://example.com/webhooks/recordings",
               "http_method": "POST"
            },
            "room_changed": {
               "address": "https://example.com/webhooks/rooms",
               "http_method": "POST"
            },
            "session_changed": {
               "address": "https://example.com/webhooks/sessions",
               "http_method": "POST"
            }
         }
      },
      "verify": {
         "version": "v2",
         "webhooks": {
            "status_url": {
               "address": "https://example.com/webhooks/status",
               "http_method": "POST"
            }
         }
      },
      "video": {
         "webhooks": {
            "archive_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "connection_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "connection_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_notification": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "stream_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "stream_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "render_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "captions_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "broadcast_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_updated": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_mute_forced": {
               "address": "https://example.com/webhooks/event",
               "active": true
            }
         },
         "storage": {
            "server_side_encryption": false,
            "end_to_end_encryption": false,
            "cloud_storage": false
         }
      }
   },
   "privacy": {
      "improve_ai": true
   }
}

Update an application

puthttps://api.nexmo.com/v2/applications/: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 ID of the application

Cuerpo de la solicitud
Tipo de contenido
application/json

name
string
Requerido
ejemploDemo Application

Application Name

keys
object
public_key
string
ejemplo-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCA KOxjsU4pf/sMFi9N0jqcSLcjxu33G d/vynKnlw9SENi+UZR44GdjGdmfm1 tL1eA7IBh2HNnkYXnAwYzKJoa4eO3 0kYWekeIZawIwe/g9faFgkev+1xsO OUNhPx2LhuLmgwWSRS4L5W851Xe3f UQIDAQAB -----END PUBLIC KEY-----

Public key

capabilities
object

Your application can use multiple products. This contains the configuration for each product. This replaces the application type from version 1 of the Application API.

voice
object

Voice application webhook config

webhooks
object
answer_url
object

The URL that Vonage make a request to when a call is placed/received. Must return an NCCO

address
string
ejemplohttps://example.com/webhooks/answer
http_method
string
ejemploGET
Debe ser uno de:GETPOST
connect_timeout
integer
Min300
Max1000
Por defecto1000
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
Min1000
Max5000
Por defecto5000
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

fallback_answer_url
object

If your answer_url is offline or returns a HTTP error code, Vonage will make a request to a fallback_answer_url if it is set. This URL must return an NCCO

address
string
ejemplohttps://fallback.example.com/webhooks/answer
http_method
string
ejemploGET
Debe ser uno de:GETPOST
connect_timeout
integer
Min300
Max1000
Por defecto1000
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
Min1000
Max5000
Por defecto5000
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

event_url
object

Vonage will send call events (e.g. ringing, answered) to this URL

address
string
ejemplohttps://example.com/webhooks/event
http_method
string
ejemploPOST
Debe ser uno de:GETPOST
connect_timeout
integer
Min300
Max1000
Por defecto1000
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
Min1000
Max10000
Por defecto10000
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

signed_callbacks
boolean
Por defectotrue

Whether to use signed webhooks. This is a way of verifying that the request is coming from Vonage. Refer to the Webhooks documentation for more information.

conversations_ttl
integer
Min1
Max9000
Por defecto48
ejemplo12

The length of time named conversations will remain active for after creation, in hours. Maximum value is 9000 (i.e. 365 days).

leg_persistence_time
integer
Min1
Max31
Por defecto2
ejemplo10

The persistence duration for legs, in days. Maximum value is 31.

region
string
ejemploeu-west

Selecting a region means all inbound, programmable SIP and SIP connect calls will be sent to the selected region unless the call is sent to a regional endpoint, if the call is using a regional endpoint this will override the application setting. Use the following parameter values:

  • na-east - North America - East (api-us-3.vonage.com)
  • na-west - North America - West (api-us-4.vonage.com)
  • eu-east - Europe - East (api-eu-4.vonage.com)
  • eu-west - Europe - West (api-eu-3.vonage.com)
  • apac-sng - Singapore (api-ap-3.vonage.com)
  • apac-australia - Australia (api-ap-4.vonage.com)
Debe ser uno de:na-eastna-westeu-easteu-westapac-sngapac-australia
rtc
object

RTC / Client SDK application webhook config

webhooks
object
event_url
object

Vonage will send RTC events to this URL

address
string
ejemplohttps://example.com/webhooks/event
http_method
string
ejemploPOST
Debe ser uno de:GETPOST
signed_callbacks
boolean
Por defectotrue

Whether to use signed webhooks. This is a way of verifying that the request is coming from Vonage. Refer to the Webhooks documentation for more information.

messages
object

Messages and Dispatch application webhook config

webhooks
object
inbound_url
object

Vonage will forward inbound messages to this URL

address
string
ejemplohttps://example.com/webhooks/inbound
http_method
string
ejemploPOST
Debe ser uno de:POST
status_url
object

Vonage will send message status updates (e.g. delivered, seen) to this URL

address
string
ejemplohttps://example.com/webhooks/status
http_method
string
ejemploPOST
Debe ser uno de:POST
vbc
object

Specify the vbc capability to enable zero-rated calls for VBC number programmability service applications. This must be an empty object.

network_apis
object

Network APIs

network_application_id
string
ejemplo2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
ejemplohttps://my-redirect-uri.example.com
meetings
object

Meetings related configuration

webhooks
object
recording_url
object

The URL that Vonage forwards recording information to on your server

address
string
ejemplohttps://example.com/webhooks/recordings
http_method
string
ejemploPOST
Debe ser uno de:POST
rooms_url
object

The URL that Vonage forwards meeting room information on your server.

address
string
ejemplohttps://example.com/webhooks/rooms
http_method
string
ejemploPOST
Debe ser uno de:POST
sessions_url
object

The URL that Vonage forwards session information on your server.

address
string
ejemplohttps://example.com/webhooks/sessions
http_method
string
ejemploPOST
Debe ser uno de:POST
video
object

Video related configuration

webhooks
object
archive_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events informing about the archive status

active
boolean
ejemplotrue

Whether the webhook is active

connection_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video connection is created

active
boolean
ejemplotrue

Whether the webhook is active

connection_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video connection is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

session_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video session is created

active
boolean
ejemplotrue

Whether the webhook is active

session_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video session is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

session_notification
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends session notifications to

active
boolean
ejemplotrue

Whether the webhook is active

stream_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a stream is created

active
boolean
ejemplotrue

Whether the webhook is active

stream_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a stream is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

render_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a render status changes

active
boolean
ejemplotrue

Whether the webhook is active

captions_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when captions status changes

active
boolean
ejemplotrue

Whether the webhook is active

broadcast_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a broadcast status changes

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is created

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_updated
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is updated

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_mute_forced
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is muted

active
boolean
ejemplotrue

Whether the webhook is active

storage
object
server_side_encryption
boolean

Whether to use server-side encryption

end_to_end_encryption
boolean

Whether to use end-to-end encryption

cloud_storage
boolean

Whether to use cloud storage feature

privacy
object

Application privacy config

improve_ai
boolean
ejemplotrue

If set to true, Vonage may store and use your content and data for the improvement of Vonage's AI based services and technologies.

Ejemplo Solicitar

{
   "name": "Demo Application",
   "keys": {
      "public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCA\nKOxjsU4pf/sMFi9N0jqcSLcjxu33G\nd/vynKnlw9SENi+UZR44GdjGdmfm1\ntL1eA7IBh2HNnkYXnAwYzKJoa4eO3\n0kYWekeIZawIwe/g9faFgkev+1xsO\nOUNhPx2LhuLmgwWSRS4L5W851Xe3f\nUQIDAQAB\n-----END PUBLIC KEY-----\n"
   },
   "capabilities": {
      "voice": {
         "webhooks": {
            "answer_url": {
               "address": "https://example.com/webhooks/answer",
               "http_method": "GET",
               "connect_timeout": 500,
               "socket_timeout": 3000
            },
            "fallback_answer_url": {
               "address": "https://fallback.example.com/webhooks/answer",
               "http_method": "GET",
               "connect_timeout": 500,
               "socket_timeout": 3000
            },
            "event_url": {
               "address": "https://example.com/webhooks/event",
               "http_method": "POST",
               "connect_timeout": 500,
               "socket_timeout": 3000
            }
         },
         "signed_callbacks": false,
         "conversations_ttl": 12,
         "leg_persistence_time": 10,
         "region": "eu-west"
      },
      "rtc": {
         "webhooks": {
            "event_url": {
               "address": "https://example.com/webhooks/event",
               "http_method": "POST"
            }
         },
         "signed_callbacks": false
      },
      "messages": {
         "webhooks": {
            "inbound_url": {
               "address": "https://example.com/webhooks/inbound",
               "http_method": "POST"
            },
            "status_url": {
               "address": "https://example.com/webhooks/status",
               "http_method": "POST"
            }
         }
      },
      "vbc": {},
      "network_apis": {
         "network_application_id": "2bzfIFqRG128IcjSj1YhZNtw6LADG",
         "redirect_uri": "https://my-redirect-uri.example.com"
      },
      "meetings": {
         "webhooks": {
            "recording_url": {
               "address": "https://example.com/webhooks/recordings",
               "http_method": "POST"
            },
            "rooms_url": {
               "address": "https://example.com/webhooks/rooms",
               "http_method": "POST"
            },
            "sessions_url": {
               "address": "https://example.com/webhooks/sessions",
               "http_method": "POST"
            }
         }
      },
      "video": {
         "webhooks": {
            "archive_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "connection_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "connection_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_notification": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "stream_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "stream_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "render_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "captions_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "broadcast_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_updated": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_mute_forced": {
               "address": "https://example.com/webhooks/event",
               "active": true
            }
         },
         "storage": {
            "server_side_encryption": false,
            "end_to_end_encryption": false,
            "cloud_storage": false
         }
      }
   },
   "privacy": {
      "improve_ai": true
   }
}

Respuestas
Tipo de contenido
application/json

Success

id
string
ejemplo78d335fa-323d-0114-9c3d-d6f0d48968cf

The application's ID

name
string
ejemploMy Application

Friendly identifier for your application. This is not unique

capabilities
object

Configuration for the products available in this application

voice
object

Voice related configuration

webhooks
object
answer_url
object
address
string
ejemplohttps://example.com/webhooks/answer

The URL that Vonage requests when a call is placed/received. Must return an NCCO

http_method
string
ejemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

fallback_answer_url
object
address
string
ejemplohttps://fallback.example.com/webhooks/answer

If your answer_url is offline or returns a HTTP error code, Vonage will make a request to a fallback_answer_url if it is set. This URL must return an NCCO.

http_method
string
ejemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
ejemplo500

Connection timeout in milliseconds

socket_timeout
integer
ejemplo3000

Reading timeout in milliseconds

event_url
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events related to your call to

http_method
string
ejemploPOST

The HTTP method used to send events to your server

connect_timeout
integer
ejemplo500

If Vonage can't connect to the webhook URL for this specified amount of time, then Vonage makes one additional attempt to connect to the webhook endpoint. This is an integer value specified in milliseconds.

socket_timeout
integer
ejemplo3000

If a response from the webhook URL can't be read for this specified amount of time, then Vonage makes one additional attempt to read the webhook endpoint. This is an integer value specified in milliseconds.

signed_callbacks
boolean
Por defectotrue

Whether to use signed webhooks. This is a way of verifying that the request is coming from Vonage. Refer to the Webhooks documentation for more information.

conversations_ttl
integer
Min1
Max9000
Por defecto48
ejemplo12

The length of time named conversations will remain active for after creation, in hours. Maximum value is 9000 (i.e. 365 days).

leg_persistence_time
integer
Min1
Max31
Por defecto2
ejemplo10

The persistence duration for legs, in days. Maximum value is 31.

region
string
ejemploeu-west

Selecting a region means all inbound, programmable SIP and SIP connect calls will be sent to the selected region unless the call is sent to a regional endpoint, if the call is using a regional endpoint this will override the application setting. Use the following parameter values:

  • na-east - North America - East (api-us-3.vonage.com)
  • na-west - North America - West (api-us-4.vonage.com)
  • eu-east - Europe - East (api-eu-4.vonage.com)
  • eu-west - Europe - West (api-eu-3.vonage.com)
  • apac-sng - Singapore (api-ap-3.vonage.com)
  • apac-australia - Australia (api-ap-4.vonage.com)
Debe ser uno de:na-eastna-westeu-easteu-westapac-sngapac-australia
messages
object

Messages / Dispatch related configuration

webhooks
object
inbound_url
object
address
string
ejemplohttps://example.com/webhooks/inbound

The URL that Vonage forwards inbound messages to on your server

http_method
string
ejemploPOST

The HTTP method used to send inbound messages to your server

status_url
object
address
string
ejemplohttps://example.com/webhooks/status

The URL that Vonage sends events related to your messages to

http_method
string
ejemploPOST

The HTTP method used to send events to your server (always POST)

rtc
object

RTC / Conversation Service related configuration

webhooks
object
event_url
object
address
string
ejemplohttps://example.com/webhooks/event
http_method
string
ejemploPOST
signed_callbacks
boolean
Por defectotrue

Whether to use signed webhooks. This is a way of verifying that the request is coming from Vonage. Refer to the Webhooks documentation for more information.

vbc
object

Specify the vbc capability to enable zero-rated calls for VBC number programmability service applications. This is always an empty object.

network_apis
object

Network APIs

network_application_id
string
ejemplo2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
ejemplohttps://my-redirect-uri.example.com
meetings
object

Meetings related configuration

webhooks
object
recording_changed
object
address
string
ejemplohttps://example.com/webhooks/recordings

The URL that Vonage forwards recording information to on your server

http_method
string
ejemploPOST

The HTTP method used to send recording information to your server (always POST)

room_changed
object
address
string
ejemplohttps://example.com/webhooks/rooms

The URL that Vonage forwards meeting room information on your server.

http_method
string
ejemploPOST

The HTTP method used to send meeting room information to your server (always POST)

session_changed
object
address
string
ejemplohttps://example.com/webhooks/sessions

The URL that Vonage forwards session information on your server.

http_method
string
ejemploPOST

The HTTP method used to send session information to your server (always POST)

verify
object

Verify v2 related configuration

version
string
ejemplov2

The version of the Verify API to use

webhooks
object
status_url
object
address
string
ejemplohttps://example.com/webhooks/status

The URL that Vonage sends events related to your verify requests to

http_method
string
ejemploPOST

The HTTP method used to send events to your server (always POST)

video
object

Video related configuration

webhooks
object
archive_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events informing about the archive status

active
boolean
ejemplotrue

Whether the webhook is active

connection_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video connection is created

active
boolean
ejemplotrue

Whether the webhook is active

connection_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video connection is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

session_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video session is created

active
boolean
ejemplotrue

Whether the webhook is active

session_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a video session is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

session_notification
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends session notifications to

active
boolean
ejemplotrue

Whether the webhook is active

stream_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a stream is created

active
boolean
ejemplotrue

Whether the webhook is active

stream_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a stream is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

render_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a render status changes

active
boolean
ejemplotrue

Whether the webhook is active

captions_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when captions status changes

active
boolean
ejemplotrue

Whether the webhook is active

broadcast_status
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a broadcast status changes

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_created
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is created

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_updated
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is updated

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_destroyed
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is destroyed

active
boolean
ejemplotrue

Whether the webhook is active

sip_call_mute_forced
object
address
string
ejemplohttps://example.com/webhooks/event

The URL that Vonage sends events when a sip call is muted

active
boolean
ejemplotrue

Whether the webhook is active

storage
object
server_side_encryption
boolean

Whether to use server-side encryption

end_to_end_encryption
boolean

Whether to use end-to-end encryption

cloud_storage
boolean

Whether to use cloud storage feature

privacy
object

Application privacy config

improve_ai
boolean
ejemplotrue

If set to true, Vonage may store and use your content and data for the improvement of Vonage's AI based services and technologies.

keys
object
public_key
string
ejemplo-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCA KOxjsU4pf/sMFi9N0jqcSLcjxu33G d/vynKnlw9SENi+UZR44GdjGdmfm1 tL1eA7IBh2HNnkYXnAwYzKJoa4eO3 0kYWekeIZawIwe/g9faFgkev+1xsO OUNhPx2LhuLmgwWSRS4L5W851Xe3f UQIDAQAB -----END PUBLIC KEY-----
private_key
string
ejemplo-----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFA ASCBKcwggSjAgEAAoIBAQDEPpvi+3 RH1efQ\nkveWzZDrNNoEXmBw61w+O 0u/N36tJnN5XnYecU64yHzu2ByEr0 7iIvYbavFnADwl\nHMTJwqDQakpa3 8/SFRnTDq3zronvNZ6nOp7S6K7pcZ rw/CvrL6hXT1x7cGBZ4jPx\nqhjqY uJPgZD7OVB69oYOV92vIIJ7JLYwqb -----END PRIVATE KEY-----

Ejemplo Respuesta

{
   "id": "78d335fa-323d-0114-9c3d-d6f0d48968cf",
   "name": "My Application",
   "capabilities": {
      "voice": {
         "webhooks": {
            "answer_url": {
               "address": "https://example.com/webhooks/answer",
               "http_method": "POST",
               "connect_timeout": 500,
               "socket_timeout": 3000
            },
            "fallback_answer_url": {
               "address": "https://fallback.example.com/webhooks/answer",
               "http_method": "POST",
               "connect_timeout": 500,
               "socket_timeout": 3000
            },
            "event_url": {
               "address": "https://example.com/webhooks/event",
               "http_method": "POST",
               "connect_timeout": 500,
               "socket_timeout": 3000
            }
         },
         "signed_callbacks": false,
         "conversations_ttl": 12,
         "leg_persistence_time": 10,
         "region": "eu-west"
      },
      "messages": {
         "webhooks": {
            "inbound_url": {
               "address": "https://example.com/webhooks/inbound",
               "http_method": "POST"
            },
            "status_url": {
               "address": "https://example.com/webhooks/status",
               "http_method": "POST"
            }
         }
      },
      "rtc": {
         "webhooks": {
            "event_url": {
               "address": "https://example.com/webhooks/event",
               "http_method": "POST"
            }
         },
         "signed_callbacks": false
      },
      "vbc": {},
      "network_apis": {
         "network_application_id": "2bzfIFqRG128IcjSj1YhZNtw6LADG",
         "redirect_uri": "https://my-redirect-uri.example.com"
      },
      "meetings": {
         "webhooks": {
            "recording_changed": {
               "address": "https://example.com/webhooks/recordings",
               "http_method": "POST"
            },
            "room_changed": {
               "address": "https://example.com/webhooks/rooms",
               "http_method": "POST"
            },
            "session_changed": {
               "address": "https://example.com/webhooks/sessions",
               "http_method": "POST"
            }
         }
      },
      "verify": {
         "version": "v2",
         "webhooks": {
            "status_url": {
               "address": "https://example.com/webhooks/status",
               "http_method": "POST"
            }
         }
      },
      "video": {
         "webhooks": {
            "archive_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "connection_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "connection_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "session_notification": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "stream_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "stream_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "render_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "captions_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "broadcast_status": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_created": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_updated": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_destroyed": {
               "address": "https://example.com/webhooks/event",
               "active": true
            },
            "sip_call_mute_forced": {
               "address": "https://example.com/webhooks/event",
               "active": true
            }
         },
         "storage": {
            "server_side_encryption": false,
            "end_to_end_encryption": false,
            "cloud_storage": false
         }
      }
   },
   "privacy": {
      "improve_ai": true
   },
   "keys": {
      "public_key": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCA\nKOxjsU4pf/sMFi9N0jqcSLcjxu33G\nd/vynKnlw9SENi+UZR44GdjGdmfm1\ntL1eA7IBh2HNnkYXnAwYzKJoa4eO3\n0kYWekeIZawIwe/g9faFgkev+1xsO\nOUNhPx2LhuLmgwWSRS4L5W851Xe3f\nUQIDAQAB\n-----END PUBLIC KEY-----\n",
      "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFA\nASCBKcwggSjAgEAAoIBAQDEPpvi+3\nRH1efQ\\nkveWzZDrNNoEXmBw61w+O\n0u/N36tJnN5XnYecU64yHzu2ByEr0\n7iIvYbavFnADwl\\nHMTJwqDQakpa3\n8/SFRnTDq3zronvNZ6nOp7S6K7pcZ\nrw/CvrL6hXT1x7cGBZ4jPx\\nqhjqY\nuJPgZD7OVB69oYOV92vIIJ7JLYwqb\n-----END PRIVATE KEY-----\n"
   }
}

Delete an application

Deleting an application cannot be undone.

deletehttps://api.nexmo.com/v2/applications/: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 ID of the application

Respuestas

Success

User

The concept of a user exists in Vonage APIs, you can associate one with a user in your own application if you choose. A user can have multiple memberships to conversations and can communicate with other users through various different mediums.

List users

gethttps://api.nexmo.com/v1/users

Autenticación

ClaveDescripciónDóndeEjemplo
Authorization

Su token web JSON.
Más información sobre los JWT

Headers

Bearer <JWT>

Consulta Parámetros

page_size
number
Min1
Max100
Por defecto10
ejemplo10

Return this amount of records in the response

order
string
Por defectoasc

Return the records in ascending or descending order.

Debe ser uno de:ascdescASCDESC
cursor
string

The cursor to start returning results from.

You are not expected to provide this manually, but to follow the url provided in _links.next.href or _links.prev.href in the response which contains a cursor value.

name
string
ejemplomy_user_name

Unique name for a user

Respuestas
Tipo de contenido
application/json

List of users

page_size
number
Requerido
Min1
Max100
Por defecto10
ejemplo10

The amount of records returned in this response

_embedded
object
Requerido

A list of user objects. See the get details of a specific user response fields for a description of the nested objects

users
array
Requerido

List of users matching the provided filter

id
string
ejemploUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

User ID

name
string
ejemplomy_user_name

Unique name for a user

display_name
string
ejemploMy User Name

A string to be displayed as user name. It does not need to be unique

_links
object
self
object
href
string
ejemplohttps://api.nexmo.com/v1/users/USR-82e028d9-5201-4f1e-8188-604b2d3471ec
_links
object
Requerido

A series of links between resources in this API in the http://stateless.co/hal_specification.html.

first
object
Requerido
href
string
ejemplohttps://api.nexmo.com/v1/users?order=desc&page_size=10
self
object
Requerido
href
string
ejemplohttps://api.nexmo.com/v1/users?order=desc&page_size=10&cursor=7EjDNQrAcipmOnc0HCzpQRkhBULzY44ljGUX4lXKyUIVfiZay5pv9wg%3D
next
object
href
string
ejemplohttps://api.nexmo.com/v1/users?order=desc&page_size=10&cursor=7EjDNQrAcipmOnc0HCzpQRkhBULzY44ljGUX4lXKyUIVfiZay5pv9wg%3D
prev
object
href
string
ejemplohttps://api.nexmo.com/v1/users?order=desc&page_size=10&cursor=7EjDNQrAcipmOnc0HCzpQRkhBULzY44ljGUX4lXKyUIVfiZay5pv9wg%3D

Ejemplo Respuesta

{
   "page_size": 10,
   "_embedded": {
      "users": [
         {
            "id": "USR-82e028d9-5201-4f1e-8188-604b2d3471ec",
            "name": "my_user_name",
            "display_name": "My User Name",
            "_links": {
               "self": {
                  "href": "https://api.nexmo.com/v1/users/USR-82e028d9-5201-4f1e-8188-604b2d3471ec"
               }
            }
         }
      ]
   },
   "_links": {
      "first": {
         "href": "https://api.nexmo.com/v1/users?order=desc&page_size=10"
      },
      "self": {
         "href": "https://api.nexmo.com/v1/users?order=desc&page_size=10&cursor=7EjDNQrAcipmOnc0HCzpQRkhBULzY44ljGUX4lXKyUIVfiZay5pv9wg%3D"
      },
      "next": {
         "href": "https://api.nexmo.com/v1/users?order=desc&page_size=10&cursor=7EjDNQrAcipmOnc0HCzpQRkhBULzY44ljGUX4lXKyUIVfiZay5pv9wg%3D"
      },
      "prev": {
         "href": "https://api.nexmo.com/v1/users?order=desc&page_size=10&cursor=7EjDNQrAcipmOnc0HCzpQRkhBULzY44ljGUX4lXKyUIVfiZay5pv9wg%3D"
      }
   }
}

Create a user

Note: Users must be created with an admin JWT.

posthttps://api.nexmo.com/v1/users

Autenticación

ClaveDescripciónDóndeEjemplo
Authorization

Su token web JSON.
Más información sobre los JWT

Headers

Bearer <JWT>

Cuerpo de la solicitud
Tipo de contenido
application/json

name
string
ejemplomy_user_name

Unique name for a user

display_name
string
ejemploMy User Name

A string to be displayed as user name. It does not need to be unique

image_url
string
ejemplohttps://example.com/image.png

An image URL that you associate with the user

properties
object

User properties

custom_data
object
ejemplo{ "custom_key": "custom_value" }

custom key/value pairs

ttl
integer
Max2147483648
ejemplo3600

Time to live in seconds

channels
object
pstn
array
number
integer
ejemplo123457
sip
array
uri
string
ejemplosip:4442138907@sip.example.com;transport=tls

Value must match regular expression ^(sip|sips):\+?([\w|:.\-@;,=%&]+)

username
string
ejemploNew SIP
password
string
ejemploPassword
vbc
array
extension
string
ejemplo403
websocket
array
uri
string
ejemplowss://example.com/socket

Value must match regular expression ^(ws|wss)://[a-zA-Z0-9~#%@&-_?\/.,:;)(][]*$

content-type
string
ejemploaudio/l16;rate=16000
Debe ser uno de:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
ejemploABC123

This is an example header. You can provide any headers you may need

sms
array
number
string
ejemplo447700900000
mms
array
number
string
ejemplo447700900000
whatsapp
array
number
string
ejemplo447700900000
viber
array
number
string
ejemplo447700900000
messenger
array
id
string
ejemplo12345abcd

Ejemplo Solicitar

{
   "name": "my_user_name",
   "display_name": "My User Name",
   "image_url": "https://example.com/image.png",
   "properties": {
      "custom_data": {
         "custom_key": "custom_value"
      },
      "ttl": 3600
   },
   "channels": {
      "pstn": [
         {
            "number": 123457
         }
      ],
      "sip": [
         {
            "uri": "sip:4442138907@sip.example.com;transport=tls",
            "username": "New SIP",
            "password": "Password"
         }
      ],
      "vbc": [
         {
            "extension": "403"
         }
      ],
      "websocket": [
         {
            "uri": "wss://example.com/socket",
            "content-type": "audio/l16;rate=16000",
            "headers": {
               "customer_id": "ABC123"
            }
         }
      ],
      "sms": [
         {
            "number": "447700900000"
         }
      ],
      "mms": [
         {
            "number": "447700900000"
         }
      ],
      "whatsapp": [
         {
            "number": "447700900000"
         }
      ],
      "viber": [
         {
            "number": "447700900000"
         }
      ],
      "messenger": [
         {
            "id": "12345abcd"
         }
      ]
   }
}

Respuestas
Tipo de contenido
application/json

Create a user response

id
string
ejemploUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

User ID

name
string
ejemplomy_user_name

Unique name for a user

display_name
string
ejemploMy User Name

A string to be displayed as user name. It does not need to be unique

image_url
string
ejemplohttps://example.com/image.png

An image URL that you associate with the user

properties
object

User properties

custom_data
object
ejemplo{ "custom_key": "custom_value" }

custom key/value pairs

ttl
integer
Max2147483648
ejemplo3600

Time to live in seconds

channels
object
pstn
array
number
integer
ejemplo123457
sip
array
uri
string
ejemplosip:4442138907@sip.example.com;transport=tls

Value must match regular expression ^(sip|sips):\+?([\w|:.\-@;,=%&]+)

username
string
ejemploNew SIP
password
string
ejemploPassword
vbc
array
extension
string
ejemplo403
websocket
array
uri
string
ejemplowss://example.com/socket

Value must match regular expression ^(ws|wss)://[a-zA-Z0-9~#%@&-_?\/.,:;)(][]*$

content-type
string
ejemploaudio/l16;rate=16000
Debe ser uno de:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
ejemploABC123

This is an example header. You can provide any headers you may need

sms
array
number
string
ejemplo447700900000
mms
array
number
string
ejemplo447700900000
whatsapp
array
number
string
ejemplo447700900000
viber
array
number
string
ejemplo447700900000
messenger
array
id
string
ejemplo12345abcd
_links
object
self
object
href
string
ejemplohttps://api.nexmo.com/v1/users/USR-82e028d9-5201-4f1e-8188-604b2d3471ec

Ejemplo Respuesta

{
   "id": "USR-82e028d9-5201-4f1e-8188-604b2d3471ec",
   "name": "my_user_name",
   "display_name": "My User Name",
   "image_url": "https://example.com/image.png",
   "properties": {
      "custom_data": {
         "custom_key": "custom_value"
      },
      "ttl": 3600
   },
   "channels": {
      "pstn": [
         {
            "number": 123457
         }
      ],
      "sip": [
         {
            "uri": "sip:4442138907@sip.example.com;transport=tls",
            "username": "New SIP",
            "password": "Password"
         }
      ],
      "vbc": [
         {
            "extension": "403"
         }
      ],
      "websocket": [
         {
            "uri": "wss://example.com/socket",
            "content-type": "audio/l16;rate=16000",
            "headers": {
               "customer_id": "ABC123"
            }
         }
      ],
      "sms": [
         {
            "number": "447700900000"
         }
      ],
      "mms": [
         {
            "number": "447700900000"
         }
      ],
      "whatsapp": [
         {
            "number": "447700900000"
         }
      ],
      "viber": [
         {
            "number": "447700900000"
         }
      ],
      "messenger": [
         {
            "id": "12345abcd"
         }
      ]
   },
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/v1/users/USR-82e028d9-5201-4f1e-8188-604b2d3471ec"
      }
   }
}

Retrieve a user

gethttps://api.nexmo.com/v1/users/:id

Autenticación

ClaveDescripciónDóndeEjemplo
Authorization

Su token web JSON.
Más información sobre los JWT

Headers

Bearer <JWT>

Ruta Parámetros

id | name
string
Requerido
ejemploUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

Unique ID or name for a user

Respuestas
Tipo de contenido
application/json

Retrieve a user

id
string
ejemploUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

User ID

name
string
ejemplomy_user_name

Unique name for a user

display_name
string
ejemploMy User Name

A string to be displayed as user name. It does not need to be unique

image_url
string
ejemplohttps://example.com/image.png

An image URL that you associate with the user

properties
object

User properties

custom_data
object
ejemplo{ "custom_key": "custom_value" }

custom key/value pairs

ttl
integer
Max2147483648
ejemplo3600

Time to live in seconds

channels
object
pstn
array
number
integer
ejemplo123457
sip
array
uri
string
ejemplosip:4442138907@sip.example.com;transport=tls

Value must match regular expression ^(sip|sips):\+?([\w|:.\-@;,=%&]+)

username
string
ejemploNew SIP
password
string
ejemploPassword
vbc
array
extension
string
ejemplo403
websocket
array
uri
string
ejemplowss://example.com/socket

Value must match regular expression ^(ws|wss)://[a-zA-Z0-9~#%@&-_?\/.,:;)(][]*$

content-type
string
ejemploaudio/l16;rate=16000
Debe ser uno de:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
ejemploABC123

This is an example header. You can provide any headers you may need

sms
array
number
string
ejemplo447700900000
mms
array
number
string
ejemplo447700900000
whatsapp
array
number
string
ejemplo447700900000
viber
array
number
string
ejemplo447700900000
messenger
array
id
string
ejemplo12345abcd
_links
object
self
object
href
string
ejemplohttps://api.nexmo.com/v1/users/USR-82e028d9-5201-4f1e-8188-604b2d3471ec

Ejemplo Respuesta

{
   "id": "USR-82e028d9-5201-4f1e-8188-604b2d3471ec",
   "name": "my_user_name",
   "display_name": "My User Name",
   "image_url": "https://example.com/image.png",
   "properties": {
      "custom_data": {
         "custom_key": "custom_value"
      },
      "ttl": 3600
   },
   "channels": {
      "pstn": [
         {
            "number": 123457
         }
      ],
      "sip": [
         {
            "uri": "sip:4442138907@sip.example.com;transport=tls",
            "username": "New SIP",
            "password": "Password"
         }
      ],
      "vbc": [
         {
            "extension": "403"
         }
      ],
      "websocket": [
         {
            "uri": "wss://example.com/socket",
            "content-type": "audio/l16;rate=16000",
            "headers": {
               "customer_id": "ABC123"
            }
         }
      ],
      "sms": [
         {
            "number": "447700900000"
         }
      ],
      "mms": [
         {
            "number": "447700900000"
         }
      ],
      "whatsapp": [
         {
            "number": "447700900000"
         }
      ],
      "viber": [
         {
            "number": "447700900000"
         }
      ],
      "messenger": [
         {
            "id": "12345abcd"
         }
      ]
   },
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/v1/users/USR-82e028d9-5201-4f1e-8188-604b2d3471ec"
      }
   }
}

Update a user

patchhttps://api.nexmo.com/v1/users/:id

Autenticación

ClaveDescripciónDóndeEjemplo
Authorization

Su token web JSON.
Más información sobre los JWT

Headers

Bearer <JWT>

Ruta Parámetros

id
string
Requerido
ejemploUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

Unique ID for a user

Cuerpo de la solicitud
Tipo de contenido
application/json

name
string
ejemplomy_user_name

Unique name for a user

display_name
string
ejemploMy User Name

A string to be displayed as user name. It does not need to be unique

image_url
string
ejemplohttps://example.com/image.png

An image URL that you associate with the user

channels
object
pstn
array
number
integer
ejemplo123457
sip
array
uri
string
ejemplosip:4442138907@sip.example.com;transport=tls

Value must match regular expression ^(sip|sips):\+?([\w|:.\-@;,=%&]+)

username
string
ejemploNew SIP
password
string
ejemploPassword
vbc
array
extension
string
ejemplo403
websocket
array
uri
string
ejemplowss://example.com/socket

Value must match regular expression ^(ws|wss)://[a-zA-Z0-9~#%@&-_?\/.,:;)(][]*$

content-type
string
ejemploaudio/l16;rate=16000
Debe ser uno de:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
ejemploABC123

This is an example header. You can provide any headers you may need

sms
array
number
string
ejemplo447700900000
mms
array
number
string
ejemplo447700900000
whatsapp
array
number
string
ejemplo447700900000
viber
array
number
string
ejemplo447700900000
messenger
array
id
string
ejemplo12345abcd

Ejemplo Solicitar

{
   "name": "my_user_name",
   "display_name": "My User Name",
   "image_url": "https://example.com/image.png",
   "channels": {
      "pstn": [
         {
            "number": 123457
         }
      ],
      "sip": [
         {
            "uri": "sip:4442138907@sip.example.com;transport=tls",
            "username": "New SIP",
            "password": "Password"
         }
      ],
      "vbc": [
         {
            "extension": "403"
         }
      ],
      "websocket": [
         {
            "uri": "wss://example.com/socket",
            "content-type": "audio/l16;rate=16000",
            "headers": {
               "customer_id": "ABC123"
            }
         }
      ],
      "sms": [
         {
            "number": "447700900000"
         }
      ],
      "mms": [
         {
            "number": "447700900000"
         }
      ],
      "whatsapp": [
         {
            "number": "447700900000"
         }
      ],
      "viber": [
         {
            "number": "447700900000"
         }
      ],
      "messenger": [
         {
            "id": "12345abcd"
         }
      ]
   }
}

Respuestas
Tipo de contenido
application/json

Update a user

id
string
ejemploUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

User ID

name
string
ejemplomy_user_name

Unique name for a user

display_name
string
ejemploMy User Name

A string to be displayed as user name. It does not need to be unique

image_url
string
ejemplohttps://example.com/image.png

An image URL that you associate with the user

properties
object

User properties

custom_data
object
ejemplo{ "custom_key": "custom_value" }

custom key/value pairs

ttl
integer
Max2147483648
ejemplo3600

Time to live in seconds

channels
object
pstn
array
number
integer
ejemplo123457
sip
array
uri
string
ejemplosip:4442138907@sip.example.com;transport=tls

Value must match regular expression ^(sip|sips):\+?([\w|:.\-@;,=%&]+)

username
string
ejemploNew SIP
password
string
ejemploPassword
vbc
array
extension
string
ejemplo403
websocket
array
uri
string
ejemplowss://example.com/socket

Value must match regular expression ^(ws|wss)://[a-zA-Z0-9~#%@&-_?\/.,:;)(][]*$

content-type
string
ejemploaudio/l16;rate=16000
Debe ser uno de:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
ejemploABC123

This is an example header. You can provide any headers you may need

sms
array
number
string
ejemplo447700900000
mms
array
number
string
ejemplo447700900000
whatsapp
array
number
string
ejemplo447700900000
viber
array
number
string
ejemplo447700900000
messenger
array
id
string
ejemplo12345abcd
_links
object
self
object
href
string
ejemplohttps://api.nexmo.com/v1/users/USR-82e028d9-5201-4f1e-8188-604b2d3471ec

Ejemplo Respuesta

{
   "id": "USR-82e028d9-5201-4f1e-8188-604b2d3471ec",
   "name": "my_user_name",
   "display_name": "My User Name",
   "image_url": "https://example.com/image.png",
   "properties": {
      "custom_data": {
         "custom_key": "custom_value"
      },
      "ttl": 3600
   },
   "channels": {
      "pstn": [
         {
            "number": 123457
         }
      ],
      "sip": [
         {
            "uri": "sip:4442138907@sip.example.com;transport=tls",
            "username": "New SIP",
            "password": "Password"
         }
      ],
      "vbc": [
         {
            "extension": "403"
         }
      ],
      "websocket": [
         {
            "uri": "wss://example.com/socket",
            "content-type": "audio/l16;rate=16000",
            "headers": {
               "customer_id": "ABC123"
            }
         }
      ],
      "sms": [
         {
            "number": "447700900000"
         }
      ],
      "mms": [
         {
            "number": "447700900000"
         }
      ],
      "whatsapp": [
         {
            "number": "447700900000"
         }
      ],
      "viber": [
         {
            "number": "447700900000"
         }
      ],
      "messenger": [
         {
            "id": "12345abcd"
         }
      ]
   },
   "_links": {
      "self": {
         "href": "https://api.nexmo.com/v1/users/USR-82e028d9-5201-4f1e-8188-604b2d3471ec"
      }
   }
}

Delete a user

Deleting a user cannot be undone.

deletehttps://api.nexmo.com/v1/users/:id

Autenticación

ClaveDescripciónDóndeEjemplo
Authorization

Su token web JSON.
Más información sobre los JWT

Headers

Bearer <JWT>

Ruta Parámetros

id
string
Requerido
ejemploUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

Unique ID for a user

Respuestas

Success response with no content

Errores

La siguiente es una lista no exhaustiva de códigos de error que pueden producirse al utilizar esta API.

Estos códigos se suman a cualquiera de nuestros códigos de error genéricos.

CódigoInformación
payload-validation

Descripción

Invalid request. See invalid_parameters field for details

Resolución

Review the documentation and send a valid POST request.

list-validation

Descripción

Invalid request. See invalid_parameters field for details

Resolución

Review the documentation and send a valid GET request.

rate-limit

Descripción

The request was rate limited

Resolución

The Redact API supports 170 requests per second. Reduce the frequency of your requests.