Application API

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.

Baixar a especificação 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

Autenticação

ChaveDescriçãoOndeExemplo
Authorization

Chave e segredo da API codificados em Base64, separados por dois pontos.
Leia mais

Headers

Basic <base64>

Consulta Parâmetros

page_size
integer

The number of applications per page

page
integer

The current page number (starts at 1)

Respostas
Tipo de conteúdo
application/json

Success

page_size
integer
exemplo10

The number of applications per page

page
integer
exemplo1

The current page number (starts at 1)

total_items
integer
exemplo6

The total number of applications

total_pages
integer
exemplo1

The total number of pages returned

_embedded
object

A list of applications matching your existing filters

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

The application's ID

name
string
exemploMy 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
exemplohttps://example.com/webhooks/answer

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

http_method
string
exemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
exemplo500

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
exemplo3000

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
exemplohttps://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
exemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
exemplo500

Connection timeout in milliseconds

socket_timeout
integer
exemplo3000

Reading timeout in milliseconds

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

The URL that Vonage sends events related to your call to

http_method
string
exemploPOST

The HTTP method used to send events to your server

connect_timeout
integer
exemplo500

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
exemplo3000

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
Padrãotrue

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
Mín.1
Max9000
Padrão48
exemplo12

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
Mín.1
Max31
Padrão2
exemplo10

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

region
string
exemploeu-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)
Deve ser uma das seguintes opções:na-eastna-westeu-easteu-westapac-sngapac-australia
messages
object

Messages / Dispatch related configuration

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

The URL that Vonage forwards inbound messages to on your server

http_method
string
exemploPOST

The HTTP method used to send inbound messages to your server

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

The URL that Vonage sends events related to your messages to

http_method
string
exemploPOST

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
exemplohttps://example.com/webhooks/event
http_method
string
exemploPOST
signed_callbacks
boolean
Padrãotrue

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
exemplo2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
exemplohttps://my-redirect-uri.example.com
meetings
object

Meetings related configuration

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

The URL that Vonage forwards recording information to on your server

http_method
string
exemploPOST

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

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

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

http_method
string
exemploPOST

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

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

The URL that Vonage forwards session information on your server.

http_method
string
exemploPOST

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

verify
object

Verify v2 related configuration

version
string
exemplov2

The version of the Verify API to use

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

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

http_method
string
exemploPOST

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

video
object

Video related configuration

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

The URL that Vonage sends events informing about the archive status

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends session notifications to

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is created

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is destroyed

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a render status changes

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when captions status changes

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a broadcast status changes

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

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
exemplotrue

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

Exemplo Resposta

{
   "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

Autenticação

ChaveDescriçãoOndeExemplo
Authorization

Chave e segredo da API codificados em Base64, separados por dois pontos.
Leia mais

Headers

Basic <base64>

Corpo da solicitação
Tipo de conteúdo
application/json

name
string
Obrigatório
exemploDemo Application

Application Name

keys
object
public_key
string
exemplo-----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
exemplohttps://example.com/webhooks/answer
http_method
string
exemploGET
Deve ser uma das seguintes opções:GETPOST
connect_timeout
integer
Mín.300
Max1000
Padrão1000
exemplo500

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
Mín.1000
Max5000
Padrão5000
exemplo3000

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
exemplohttps://fallback.example.com/webhooks/answer
http_method
string
exemploGET
Deve ser uma das seguintes opções:GETPOST
connect_timeout
integer
Mín.300
Max1000
Padrão1000
exemplo500

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
Mín.1000
Max5000
Padrão5000
exemplo3000

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
exemplohttps://example.com/webhooks/event
http_method
string
exemploPOST
Deve ser uma das seguintes opções:GETPOST
connect_timeout
integer
Mín.300
Max1000
Padrão1000
exemplo500

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
Mín.1000
Max10000
Padrão10000
exemplo3000

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
Padrãotrue

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
Mín.1
Max9000
Padrão48
exemplo12

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
Mín.1
Max31
Padrão2
exemplo10

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

region
string
exemploeu-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)
Deve ser uma das seguintes opções: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
exemplohttps://example.com/webhooks/event
http_method
string
exemploPOST
Deve ser uma das seguintes opções:GETPOST
signed_callbacks
boolean
Padrãotrue

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
exemplohttps://example.com/webhooks/inbound
http_method
string
exemploPOST
Deve ser uma das seguintes opções:POST
status_url
object

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

address
string
exemplohttps://example.com/webhooks/status
http_method
string
exemploPOST
Deve ser uma das seguintes opções: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
exemplo2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
exemplohttps://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
exemplohttps://example.com/webhooks/recordings
http_method
string
exemploPOST
Deve ser uma das seguintes opções:POST
room_changed
object

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

address
string
exemplohttps://example.com/webhooks/rooms
http_method
string
exemploPOST
Deve ser uma das seguintes opções:POST
session_changed
object

The URL that Vonage forwards session information on your server.

address
string
exemplohttps://example.com/webhooks/sessions
http_method
string
exemploPOST
Deve ser uma das seguintes opções:POST
verify
object

Verify v2 application webhook config

webhooks
object
status_url
object

Vonage will send Verify updates to this URL

address
string
exemplohttps://example.com/webhooks/status
http_method
string
exemploPOST
Deve ser uma das seguintes opções:POST
video
object

Video related configuration

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

The URL that Vonage sends events informing about the archive status

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends session notifications to

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is created

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is destroyed

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a render status changes

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when captions status changes

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a broadcast status changes

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

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
Padrãotrue
exemplotrue

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

Exemplo Solicitação

{
   "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
   }
}
{
   "name": "Demo Application"
}

Respostas
Tipo de conteúdo
application/json

Success

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

The application's ID

name
string
exemploMy 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
exemplohttps://example.com/webhooks/answer

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

http_method
string
exemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
exemplo500

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
exemplo3000

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
exemplohttps://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
exemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
exemplo500

Connection timeout in milliseconds

socket_timeout
integer
exemplo3000

Reading timeout in milliseconds

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

The URL that Vonage sends events related to your call to

http_method
string
exemploPOST

The HTTP method used to send events to your server

connect_timeout
integer
exemplo500

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
exemplo3000

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
Padrãotrue

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
Mín.1
Max9000
Padrão48
exemplo12

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
Mín.1
Max31
Padrão2
exemplo10

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

region
string
exemploeu-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)
Deve ser uma das seguintes opções:na-eastna-westeu-easteu-westapac-sngapac-australia
messages
object

Messages / Dispatch related configuration

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

The URL that Vonage forwards inbound messages to on your server

http_method
string
exemploPOST

The HTTP method used to send inbound messages to your server

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

The URL that Vonage sends events related to your messages to

http_method
string
exemploPOST

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
exemplohttps://example.com/webhooks/event
http_method
string
exemploPOST
signed_callbacks
boolean
Padrãotrue

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
exemplo2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
exemplohttps://my-redirect-uri.example.com
meetings
object

Meetings related configuration

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

The URL that Vonage forwards recording information to on your server

http_method
string
exemploPOST

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

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

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

http_method
string
exemploPOST

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

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

The URL that Vonage forwards session information on your server.

http_method
string
exemploPOST

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

verify
object

Verify v2 related configuration

version
string
exemplov2

The version of the Verify API to use

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

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

http_method
string
exemploPOST

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

video
object

Video related configuration

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

The URL that Vonage sends events informing about the archive status

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends session notifications to

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is created

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is destroyed

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a render status changes

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when captions status changes

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a broadcast status changes

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

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
exemplotrue

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
exemplo-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCA KOxjsU4pf/sMFi9N0jqcSLcjxu33G d/vynKnlw9SENi+UZR44GdjGdmfm1 tL1eA7IBh2HNnkYXnAwYzKJoa4eO3 0kYWekeIZawIwe/g9faFgkev+1xsO OUNhPx2LhuLmgwWSRS4L5W851Xe3f UQIDAQAB -----END PUBLIC KEY-----
private_key
string
exemplo-----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFA ASCBKcwggSjAgEAAoIBAQDEPpvi+3 RH1efQ\nkveWzZDrNNoEXmBw61w+O 0u/N36tJnN5XnYecU64yHzu2ByEr0 7iIvYbavFnADwl\nHMTJwqDQakpa3 8/SFRnTDq3zronvNZ6nOp7S6K7pcZ rw/CvrL6hXT1x7cGBZ4jPx\nqhjqY uJPgZD7OVB69oYOV92vIIJ7JLYwqb -----END PRIVATE KEY-----

Exemplo Resposta

{
   "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

Autenticação

ChaveDescriçãoOndeExemplo
Authorization

Chave e segredo da API codificados em Base64, separados por dois pontos.
Leia mais

Headers

Basic <base64>

Caminho Parâmetros

id
string
Obrigatório

The ID of the application

Respostas
Tipo de conteúdo
application/json

Success

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

The application's ID

name
string
exemploMy 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
exemplohttps://example.com/webhooks/answer

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

http_method
string
exemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
exemplo500

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
exemplo3000

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
exemplohttps://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
exemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
exemplo500

Connection timeout in milliseconds

socket_timeout
integer
exemplo3000

Reading timeout in milliseconds

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

The URL that Vonage sends events related to your call to

http_method
string
exemploPOST

The HTTP method used to send events to your server

connect_timeout
integer
exemplo500

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
exemplo3000

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
Padrãotrue

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
Mín.1
Max9000
Padrão48
exemplo12

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
Mín.1
Max31
Padrão2
exemplo10

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

region
string
exemploeu-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)
Deve ser uma das seguintes opções:na-eastna-westeu-easteu-westapac-sngapac-australia
messages
object

Messages / Dispatch related configuration

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

The URL that Vonage forwards inbound messages to on your server

http_method
string
exemploPOST

The HTTP method used to send inbound messages to your server

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

The URL that Vonage sends events related to your messages to

http_method
string
exemploPOST

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
exemplohttps://example.com/webhooks/event
http_method
string
exemploPOST
signed_callbacks
boolean
Padrãotrue

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
exemplo2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
exemplohttps://my-redirect-uri.example.com
meetings
object

Meetings related configuration

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

The URL that Vonage forwards recording information to on your server

http_method
string
exemploPOST

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

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

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

http_method
string
exemploPOST

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

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

The URL that Vonage forwards session information on your server.

http_method
string
exemploPOST

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

verify
object

Verify v2 related configuration

version
string
exemplov2

The version of the Verify API to use

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

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

http_method
string
exemploPOST

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

video
object

Video related configuration

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

The URL that Vonage sends events informing about the archive status

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends session notifications to

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is created

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is destroyed

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a render status changes

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when captions status changes

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a broadcast status changes

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

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
exemplotrue

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

Exemplo Resposta

{
   "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

Autenticação

ChaveDescriçãoOndeExemplo
Authorization

Chave e segredo da API codificados em Base64, separados por dois pontos.
Leia mais

Headers

Basic <base64>

Caminho Parâmetros

id
string
Obrigatório

The ID of the application

Corpo da solicitação
Tipo de conteúdo
application/json

name
string
Obrigatório
exemploDemo Application

Application Name

keys
object
public_key
string
exemplo-----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
exemplohttps://example.com/webhooks/answer
http_method
string
exemploGET
Deve ser uma das seguintes opções:GETPOST
connect_timeout
integer
Mín.300
Max1000
Padrão1000
exemplo500

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
Mín.1000
Max5000
Padrão5000
exemplo3000

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
exemplohttps://fallback.example.com/webhooks/answer
http_method
string
exemploGET
Deve ser uma das seguintes opções:GETPOST
connect_timeout
integer
Mín.300
Max1000
Padrão1000
exemplo500

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
Mín.1000
Max5000
Padrão5000
exemplo3000

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
exemplohttps://example.com/webhooks/event
http_method
string
exemploPOST
Deve ser uma das seguintes opções:GETPOST
connect_timeout
integer
Mín.300
Max1000
Padrão1000
exemplo500

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
Mín.1000
Max10000
Padrão10000
exemplo3000

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
Padrãotrue

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
Mín.1
Max9000
Padrão48
exemplo12

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
Mín.1
Max31
Padrão2
exemplo10

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

region
string
exemploeu-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)
Deve ser uma das seguintes opções: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
exemplohttps://example.com/webhooks/event
http_method
string
exemploPOST
Deve ser uma das seguintes opções:GETPOST
signed_callbacks
boolean
Padrãotrue

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
exemplohttps://example.com/webhooks/inbound
http_method
string
exemploPOST
Deve ser uma das seguintes opções:POST
status_url
object

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

address
string
exemplohttps://example.com/webhooks/status
http_method
string
exemploPOST
Deve ser uma das seguintes opções: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
exemplo2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
exemplohttps://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
exemplohttps://example.com/webhooks/recordings
http_method
string
exemploPOST
Deve ser uma das seguintes opções:POST
rooms_url
object

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

address
string
exemplohttps://example.com/webhooks/rooms
http_method
string
exemploPOST
Deve ser uma das seguintes opções:POST
sessions_url
object

The URL that Vonage forwards session information on your server.

address
string
exemplohttps://example.com/webhooks/sessions
http_method
string
exemploPOST
Deve ser uma das seguintes opções:POST
video
object

Video related configuration

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

The URL that Vonage sends events informing about the archive status

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends session notifications to

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is created

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is destroyed

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a render status changes

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when captions status changes

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a broadcast status changes

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

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
exemplotrue

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

Exemplo Solicitação

{
   "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
   }
}
{
   "name": "Demo Application"
}

Respostas
Tipo de conteúdo
application/json

Success

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

The application's ID

name
string
exemploMy 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
exemplohttps://example.com/webhooks/answer

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

http_method
string
exemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
exemplo500

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
exemplo3000

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
exemplohttps://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
exemploPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
exemplo500

Connection timeout in milliseconds

socket_timeout
integer
exemplo3000

Reading timeout in milliseconds

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

The URL that Vonage sends events related to your call to

http_method
string
exemploPOST

The HTTP method used to send events to your server

connect_timeout
integer
exemplo500

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
exemplo3000

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
Padrãotrue

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
Mín.1
Max9000
Padrão48
exemplo12

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
Mín.1
Max31
Padrão2
exemplo10

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

region
string
exemploeu-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)
Deve ser uma das seguintes opções:na-eastna-westeu-easteu-westapac-sngapac-australia
messages
object

Messages / Dispatch related configuration

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

The URL that Vonage forwards inbound messages to on your server

http_method
string
exemploPOST

The HTTP method used to send inbound messages to your server

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

The URL that Vonage sends events related to your messages to

http_method
string
exemploPOST

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
exemplohttps://example.com/webhooks/event
http_method
string
exemploPOST
signed_callbacks
boolean
Padrãotrue

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
exemplo2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
exemplohttps://my-redirect-uri.example.com
meetings
object

Meetings related configuration

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

The URL that Vonage forwards recording information to on your server

http_method
string
exemploPOST

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

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

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

http_method
string
exemploPOST

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

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

The URL that Vonage forwards session information on your server.

http_method
string
exemploPOST

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

verify
object

Verify v2 related configuration

version
string
exemplov2

The version of the Verify API to use

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

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

http_method
string
exemploPOST

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

video
object

Video related configuration

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

The URL that Vonage sends events informing about the archive status

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends session notifications to

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is created

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is destroyed

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a render status changes

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when captions status changes

active
boolean
exemplotrue

Whether the webhook is active

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

The URL that Vonage sends events when a broadcast status changes

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

Whether the webhook is active

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

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

active
boolean
exemplotrue

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
exemplotrue

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
exemplo-----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCA KOxjsU4pf/sMFi9N0jqcSLcjxu33G d/vynKnlw9SENi+UZR44GdjGdmfm1 tL1eA7IBh2HNnkYXnAwYzKJoa4eO3 0kYWekeIZawIwe/g9faFgkev+1xsO OUNhPx2LhuLmgwWSRS4L5W851Xe3f UQIDAQAB -----END PUBLIC KEY-----
private_key
string
exemplo-----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFA ASCBKcwggSjAgEAAoIBAQDEPpvi+3 RH1efQ\nkveWzZDrNNoEXmBw61w+O 0u/N36tJnN5XnYecU64yHzu2ByEr0 7iIvYbavFnADwl\nHMTJwqDQakpa3 8/SFRnTDq3zronvNZ6nOp7S6K7pcZ rw/CvrL6hXT1x7cGBZ4jPx\nqhjqY uJPgZD7OVB69oYOV92vIIJ7JLYwqb -----END PRIVATE KEY-----

Exemplo Resposta

{
   "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

Autenticação

ChaveDescriçãoOndeExemplo
Authorization

Chave e segredo da API codificados em Base64, separados por dois pontos.
Leia mais

Headers

Basic <base64>

Caminho Parâmetros

id
string
Obrigatório

The ID of the application

Respostas

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

Autenticação

ChaveDescriçãoOndeExemplo
Authorization

Seu token JSON da Web.
Saiba mais sobre os JWTs

Headers

Bearer <JWT>

Consulta Parâmetros

page_size
number
Mín.1
Max100
Padrão10
exemplo10

Return this amount of records in the response

order
string
Padrãoasc

Return the records in ascending or descending order.

Deve ser uma das seguintes opções: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
exemplomy_user_name

Unique name for a user

Respostas
Tipo de conteúdo
application/json

List of users

page_size
number
Obrigatório
Mín.1
Max100
Padrão10
exemplo10

The amount of records returned in this response

_embedded
object
Obrigatório

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

users
array
Obrigatório

List of users matching the provided filter

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

User ID

name
string
exemplomy_user_name

Unique name for a user

display_name
string
exemploMy User Name

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

_links
object
self
object
href
string
exemplohttps://api.nexmo.com/v1/users/USR-82e028d9-5201-4f1e-8188-604b2d3471ec
_links
object
Obrigatório

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

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

Exemplo Resposta

{
   "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

Autenticação

ChaveDescriçãoOndeExemplo
Authorization

Seu token JSON da Web.
Saiba mais sobre os JWTs

Headers

Bearer <JWT>

Corpo da solicitação
Tipo de conteúdo
application/json

name
string
exemplomy_user_name

Unique name for a user

display_name
string
exemploMy User Name

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

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

An image URL that you associate with the user

properties
object

User properties

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

custom key/value pairs

ttl
integer
Max2147483648
exemplo3600

Time to live in seconds

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

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

username
string
exemploNew SIP
password
string
exemploPassword
vbc
array
extension
string
exemplo403
websocket
array
uri
string
exemplowss://example.com/socket

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

content-type
string
exemploaudio/l16;rate=16000
Deve ser uma das seguintes opções:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
exemploABC123

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

sms
array
number
string
exemplo447700900000
mms
array
number
string
exemplo447700900000
whatsapp
array
number
string
exemplo447700900000
viber
array
number
string
exemplo447700900000
messenger
array
id
string
exemplo12345abcd

Exemplo Solicitação

{
   "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"
         }
      ]
   }
}
{}

Respostas
Tipo de conteúdo
application/json

Create a user response

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

User ID

name
string
exemplomy_user_name

Unique name for a user

display_name
string
exemploMy User Name

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

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

An image URL that you associate with the user

properties
object

User properties

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

custom key/value pairs

ttl
integer
Max2147483648
exemplo3600

Time to live in seconds

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

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

username
string
exemploNew SIP
password
string
exemploPassword
vbc
array
extension
string
exemplo403
websocket
array
uri
string
exemplowss://example.com/socket

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

content-type
string
exemploaudio/l16;rate=16000
Deve ser uma das seguintes opções:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
exemploABC123

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

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

Exemplo Resposta

{
   "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

Autenticação

ChaveDescriçãoOndeExemplo
Authorization

Seu token JSON da Web.
Saiba mais sobre os JWTs

Headers

Bearer <JWT>

Caminho Parâmetros

id | name
string
Obrigatório
exemploUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

Unique ID or name for a user

Respostas
Tipo de conteúdo
application/json

Retrieve a user

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

User ID

name
string
exemplomy_user_name

Unique name for a user

display_name
string
exemploMy User Name

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

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

An image URL that you associate with the user

properties
object

User properties

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

custom key/value pairs

ttl
integer
Max2147483648
exemplo3600

Time to live in seconds

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

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

username
string
exemploNew SIP
password
string
exemploPassword
vbc
array
extension
string
exemplo403
websocket
array
uri
string
exemplowss://example.com/socket

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

content-type
string
exemploaudio/l16;rate=16000
Deve ser uma das seguintes opções:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
exemploABC123

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

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

Exemplo Resposta

{
   "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

Autenticação

ChaveDescriçãoOndeExemplo
Authorization

Seu token JSON da Web.
Saiba mais sobre os JWTs

Headers

Bearer <JWT>

Caminho Parâmetros

id
string
Obrigatório
exemploUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

Unique ID for a user

Corpo da solicitação
Tipo de conteúdo
application/json

name
string
exemplomy_user_name

Unique name for a user

display_name
string
exemploMy User Name

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

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

An image URL that you associate with the user

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

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

username
string
exemploNew SIP
password
string
exemploPassword
vbc
array
extension
string
exemplo403
websocket
array
uri
string
exemplowss://example.com/socket

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

content-type
string
exemploaudio/l16;rate=16000
Deve ser uma das seguintes opções:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
exemploABC123

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

sms
array
number
string
exemplo447700900000
mms
array
number
string
exemplo447700900000
whatsapp
array
number
string
exemplo447700900000
viber
array
number
string
exemplo447700900000
messenger
array
id
string
exemplo12345abcd

Exemplo Solicitação

{
   "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"
         }
      ]
   }
}
{}

Respostas
Tipo de conteúdo
application/json

Update a user

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

User ID

name
string
exemplomy_user_name

Unique name for a user

display_name
string
exemploMy User Name

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

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

An image URL that you associate with the user

properties
object

User properties

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

custom key/value pairs

ttl
integer
Max2147483648
exemplo3600

Time to live in seconds

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

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

username
string
exemploNew SIP
password
string
exemploPassword
vbc
array
extension
string
exemplo403
websocket
array
uri
string
exemplowss://example.com/socket

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

content-type
string
exemploaudio/l16;rate=16000
Deve ser uma das seguintes opções:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
exemploABC123

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

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

Exemplo Resposta

{
   "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

Autenticação

ChaveDescriçãoOndeExemplo
Authorization

Seu token JSON da Web.
Saiba mais sobre os JWTs

Headers

Bearer <JWT>

Caminho Parâmetros

id
string
Obrigatório
exemploUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

Unique ID for a user

Respostas

Success response with no content

Erros

A seguir, apresentamos uma lista não exaustiva de códigos de erro que podem ocorrer durante o uso desta API.

Esses códigos são adicionais aos que constam em nosso site códigos de erro genéricos.

CódigoInformações
payload-validation

Descrição

Invalid request. See invalid_parameters field for details

Resolução

Review the documentation and send a valid POST request.

list-validation

Descrição

Invalid request. See invalid_parameters field for details

Resolução

Review the documentation and send a valid GET request.

rate-limit

Descrição

The request was rate limited

Resolução

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