Application API

Version 2

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

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

OpenAPI-Spezifikation herunterladen

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

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt.
Mehr lesen

Headers

Basic <base64>

Abfrage Parameter

page_size
integer

The number of applications per page

page
integer

The current page number (starts at 1)

Antworten
Inhalt Typ
application/json

Success

page_size
integer
Beispiel10

The number of applications per page

page
integer
Beispiel1

The current page number (starts at 1)

total_items
integer
Beispiel6

The total number of applications

total_pages
integer
Beispiel1

The total number of pages returned

_embedded
object

A list of applications matching your existing filters

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

The application's ID

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

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

http_method
string
BeispielPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
Beispiel500

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
Beispiel3000

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
Beispielhttps://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
BeispielPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
Beispiel500

Connection timeout in milliseconds

socket_timeout
integer
Beispiel3000

Reading timeout in milliseconds

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

The URL that Vonage sends events related to your call to

http_method
string
BeispielPOST

The HTTP method used to send events to your server

connect_timeout
integer
Beispiel500

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
Beispiel3000

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
Standardtrue

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

conversations_ttl
integer
Min1
Max9000
Standard48
Beispiel12

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

leg_persistence_time
integer
Min1
Max31
Standard2
Beispiel10

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

region
string
Beispieleu-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)
Muss eines der folgenden sein:na-eastna-westeu-easteu-westapac-sngapac-australia
messages
object

Messages / Dispatch related configuration

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

The URL that Vonage forwards inbound messages to on your server

http_method
string
BeispielPOST

The HTTP method used to send inbound messages to your server

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

The URL that Vonage sends events related to your messages to

http_method
string
BeispielPOST

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
Beispielhttps://example.com/webhooks/event
http_method
string
BeispielPOST
signed_callbacks
boolean
Standardtrue

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

Meetings related configuration

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

The URL that Vonage forwards recording information to on your server

http_method
string
BeispielPOST

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

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

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

http_method
string
BeispielPOST

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

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

The URL that Vonage forwards session information on your server.

http_method
string
BeispielPOST

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

verify
object

Verify v2 related configuration

version
string
Beispielv2

The version of the Verify API to use

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

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

http_method
string
BeispielPOST

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

video
object

Video related configuration

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

The URL that Vonage sends events informing about the archive status

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends session notifications to

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is created

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is destroyed

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a render status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when captions status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a broadcast status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

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
Beispieltrue

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

Beispiel Antwort

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

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt.
Mehr lesen

Headers

Basic <base64>

Anfrage Körper
Inhalt Typ
application/json

name
string
Erforderlich
BeispielDemo Application

Application Name

keys
object
public_key
string
Beispiel-----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
Beispielhttps://example.com/webhooks/answer
http_method
string
BeispielGET
Muss eines der folgenden sein:GETPOST
connect_timeout
integer
Min300
Max1000
Standard1000
Beispiel500

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

socket_timeout
integer
Min1000
Max5000
Standard5000
Beispiel3000

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
Beispielhttps://fallback.example.com/webhooks/answer
http_method
string
BeispielGET
Muss eines der folgenden sein:GETPOST
connect_timeout
integer
Min300
Max1000
Standard1000
Beispiel500

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

socket_timeout
integer
Min1000
Max5000
Standard5000
Beispiel3000

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
Beispielhttps://example.com/webhooks/event
http_method
string
BeispielPOST
Muss eines der folgenden sein:GETPOST
connect_timeout
integer
Min300
Max1000
Standard1000
Beispiel500

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

socket_timeout
integer
Min1000
Max10000
Standard10000
Beispiel3000

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
Standardtrue

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

conversations_ttl
integer
Min1
Max9000
Standard48
Beispiel12

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

leg_persistence_time
integer
Min1
Max31
Standard2
Beispiel10

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

region
string
Beispieleu-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)
Muss eines der folgenden sein: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
Beispielhttps://example.com/webhooks/event
http_method
string
BeispielPOST
Muss eines der folgenden sein:GETPOST
signed_callbacks
boolean
Standardtrue

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
Beispielhttps://example.com/webhooks/inbound
http_method
string
BeispielPOST
Muss eines der folgenden sein:POST
status_url
object

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

address
string
Beispielhttps://example.com/webhooks/status
http_method
string
BeispielPOST
Muss eines der folgenden sein: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
Beispiel2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
Beispielhttps://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
Beispielhttps://example.com/webhooks/recordings
http_method
string
BeispielPOST
Muss eines der folgenden sein:POST
room_changed
object

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

address
string
Beispielhttps://example.com/webhooks/rooms
http_method
string
BeispielPOST
Muss eines der folgenden sein:POST
session_changed
object

The URL that Vonage forwards session information on your server.

address
string
Beispielhttps://example.com/webhooks/sessions
http_method
string
BeispielPOST
Muss eines der folgenden sein:POST
verify
object

Verify v2 application webhook config

webhooks
object
status_url
object

Vonage will send Verify updates to this URL

address
string
Beispielhttps://example.com/webhooks/status
http_method
string
BeispielPOST
Muss eines der folgenden sein:POST
video
object

Video related configuration

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

The URL that Vonage sends events informing about the archive status

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends session notifications to

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is created

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is destroyed

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a render status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when captions status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a broadcast status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

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
Standardtrue
Beispieltrue

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

Beispiel Anfrage

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

Antworten
Inhalt Typ
application/json

Success

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

The application's ID

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

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

http_method
string
BeispielPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
Beispiel500

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
Beispiel3000

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
Beispielhttps://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
BeispielPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
Beispiel500

Connection timeout in milliseconds

socket_timeout
integer
Beispiel3000

Reading timeout in milliseconds

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

The URL that Vonage sends events related to your call to

http_method
string
BeispielPOST

The HTTP method used to send events to your server

connect_timeout
integer
Beispiel500

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
Beispiel3000

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
Standardtrue

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

conversations_ttl
integer
Min1
Max9000
Standard48
Beispiel12

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

leg_persistence_time
integer
Min1
Max31
Standard2
Beispiel10

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

region
string
Beispieleu-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)
Muss eines der folgenden sein:na-eastna-westeu-easteu-westapac-sngapac-australia
messages
object

Messages / Dispatch related configuration

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

The URL that Vonage forwards inbound messages to on your server

http_method
string
BeispielPOST

The HTTP method used to send inbound messages to your server

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

The URL that Vonage sends events related to your messages to

http_method
string
BeispielPOST

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
Beispielhttps://example.com/webhooks/event
http_method
string
BeispielPOST
signed_callbacks
boolean
Standardtrue

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

Meetings related configuration

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

The URL that Vonage forwards recording information to on your server

http_method
string
BeispielPOST

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

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

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

http_method
string
BeispielPOST

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

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

The URL that Vonage forwards session information on your server.

http_method
string
BeispielPOST

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

verify
object

Verify v2 related configuration

version
string
Beispielv2

The version of the Verify API to use

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

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

http_method
string
BeispielPOST

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

video
object

Video related configuration

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

The URL that Vonage sends events informing about the archive status

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends session notifications to

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is created

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is destroyed

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a render status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when captions status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a broadcast status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

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
Beispieltrue

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

Beispiel Antwort

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

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt.
Mehr lesen

Headers

Basic <base64>

Pfad Parameter

id
string
Erforderlich

The ID of the application

Antworten
Inhalt Typ
application/json

Success

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

The application's ID

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

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

http_method
string
BeispielPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
Beispiel500

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
Beispiel3000

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
Beispielhttps://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
BeispielPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
Beispiel500

Connection timeout in milliseconds

socket_timeout
integer
Beispiel3000

Reading timeout in milliseconds

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

The URL that Vonage sends events related to your call to

http_method
string
BeispielPOST

The HTTP method used to send events to your server

connect_timeout
integer
Beispiel500

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
Beispiel3000

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
Standardtrue

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

conversations_ttl
integer
Min1
Max9000
Standard48
Beispiel12

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

leg_persistence_time
integer
Min1
Max31
Standard2
Beispiel10

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

region
string
Beispieleu-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)
Muss eines der folgenden sein:na-eastna-westeu-easteu-westapac-sngapac-australia
messages
object

Messages / Dispatch related configuration

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

The URL that Vonage forwards inbound messages to on your server

http_method
string
BeispielPOST

The HTTP method used to send inbound messages to your server

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

The URL that Vonage sends events related to your messages to

http_method
string
BeispielPOST

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
Beispielhttps://example.com/webhooks/event
http_method
string
BeispielPOST
signed_callbacks
boolean
Standardtrue

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

Meetings related configuration

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

The URL that Vonage forwards recording information to on your server

http_method
string
BeispielPOST

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

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

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

http_method
string
BeispielPOST

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

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

The URL that Vonage forwards session information on your server.

http_method
string
BeispielPOST

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

verify
object

Verify v2 related configuration

version
string
Beispielv2

The version of the Verify API to use

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

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

http_method
string
BeispielPOST

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

video
object

Video related configuration

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

The URL that Vonage sends events informing about the archive status

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends session notifications to

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is created

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is destroyed

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a render status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when captions status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a broadcast status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

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
Beispieltrue

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

Beispiel Antwort

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

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt.
Mehr lesen

Headers

Basic <base64>

Pfad Parameter

id
string
Erforderlich

The ID of the application

Anfrage Körper
Inhalt Typ
application/json

name
string
Erforderlich
BeispielDemo Application

Application Name

keys
object
public_key
string
Beispiel-----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
Beispielhttps://example.com/webhooks/answer
http_method
string
BeispielGET
Muss eines der folgenden sein:GETPOST
connect_timeout
integer
Min300
Max1000
Standard1000
Beispiel500

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

socket_timeout
integer
Min1000
Max5000
Standard5000
Beispiel3000

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
Beispielhttps://fallback.example.com/webhooks/answer
http_method
string
BeispielGET
Muss eines der folgenden sein:GETPOST
connect_timeout
integer
Min300
Max1000
Standard1000
Beispiel500

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

socket_timeout
integer
Min1000
Max5000
Standard5000
Beispiel3000

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
Beispielhttps://example.com/webhooks/event
http_method
string
BeispielPOST
Muss eines der folgenden sein:GETPOST
connect_timeout
integer
Min300
Max1000
Standard1000
Beispiel500

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

socket_timeout
integer
Min1000
Max10000
Standard10000
Beispiel3000

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
Standardtrue

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

conversations_ttl
integer
Min1
Max9000
Standard48
Beispiel12

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

leg_persistence_time
integer
Min1
Max31
Standard2
Beispiel10

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

region
string
Beispieleu-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)
Muss eines der folgenden sein: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
Beispielhttps://example.com/webhooks/event
http_method
string
BeispielPOST
Muss eines der folgenden sein:GETPOST
signed_callbacks
boolean
Standardtrue

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
Beispielhttps://example.com/webhooks/inbound
http_method
string
BeispielPOST
Muss eines der folgenden sein:POST
status_url
object

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

address
string
Beispielhttps://example.com/webhooks/status
http_method
string
BeispielPOST
Muss eines der folgenden sein: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
Beispiel2bzfIFqRG128IcjSj1YhZNtw6LADG
redirect_uri
string
Beispielhttps://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
Beispielhttps://example.com/webhooks/recordings
http_method
string
BeispielPOST
Muss eines der folgenden sein:POST
rooms_url
object

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

address
string
Beispielhttps://example.com/webhooks/rooms
http_method
string
BeispielPOST
Muss eines der folgenden sein:POST
sessions_url
object

The URL that Vonage forwards session information on your server.

address
string
Beispielhttps://example.com/webhooks/sessions
http_method
string
BeispielPOST
Muss eines der folgenden sein:POST
video
object

Video related configuration

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

The URL that Vonage sends events informing about the archive status

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends session notifications to

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is created

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is destroyed

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a render status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when captions status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a broadcast status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

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
Beispieltrue

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

Beispiel Anfrage

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

Antworten
Inhalt Typ
application/json

Success

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

The application's ID

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

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

http_method
string
BeispielPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
Beispiel500

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
Beispiel3000

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
Beispielhttps://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
BeispielPOST

The HTTP method used to fetch your NCCO from your answer_url

connect_timeout
integer
Beispiel500

Connection timeout in milliseconds

socket_timeout
integer
Beispiel3000

Reading timeout in milliseconds

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

The URL that Vonage sends events related to your call to

http_method
string
BeispielPOST

The HTTP method used to send events to your server

connect_timeout
integer
Beispiel500

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
Beispiel3000

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
Standardtrue

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

conversations_ttl
integer
Min1
Max9000
Standard48
Beispiel12

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

leg_persistence_time
integer
Min1
Max31
Standard2
Beispiel10

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

region
string
Beispieleu-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)
Muss eines der folgenden sein:na-eastna-westeu-easteu-westapac-sngapac-australia
messages
object

Messages / Dispatch related configuration

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

The URL that Vonage forwards inbound messages to on your server

http_method
string
BeispielPOST

The HTTP method used to send inbound messages to your server

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

The URL that Vonage sends events related to your messages to

http_method
string
BeispielPOST

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
Beispielhttps://example.com/webhooks/event
http_method
string
BeispielPOST
signed_callbacks
boolean
Standardtrue

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

Meetings related configuration

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

The URL that Vonage forwards recording information to on your server

http_method
string
BeispielPOST

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

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

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

http_method
string
BeispielPOST

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

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

The URL that Vonage forwards session information on your server.

http_method
string
BeispielPOST

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

verify
object

Verify v2 related configuration

version
string
Beispielv2

The version of the Verify API to use

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

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

http_method
string
BeispielPOST

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

video
object

Video related configuration

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

The URL that Vonage sends events informing about the archive status

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends session notifications to

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is created

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a stream is destroyed

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a render status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when captions status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

The URL that Vonage sends events when a broadcast status changes

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

Whether the webhook is active

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

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

active
boolean
Beispieltrue

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
Beispieltrue

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

Beispiel Antwort

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

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Base64-kodierter API-Schlüssel und Geheimnis, verbunden durch einen Doppelpunkt.
Mehr lesen

Headers

Basic <base64>

Pfad Parameter

id
string
Erforderlich

The ID of the application

Antworten

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

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Ihr JSON-Web-Token.
Lesen Sie mehr über JWTs

Headers

Bearer <JWT>

Abfrage Parameter

page_size
number
Min1
Max100
Standard10
Beispiel10

Return this amount of records in the response

order
string
Standardasc

Return the records in ascending or descending order.

Muss eines der folgenden sein: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
Beispielmy_user_name

Unique name for a user

Antworten
Inhalt Typ
application/json

List of users

page_size
number
Erforderlich
Min1
Max100
Standard10
Beispiel10

The amount of records returned in this response

_embedded
object
Erforderlich

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

users
array
Erforderlich

List of users matching the provided filter

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

User ID

name
string
Beispielmy_user_name

Unique name for a user

display_name
string
BeispielMy User Name

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

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

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

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

Beispiel Antwort

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

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Ihr JSON-Web-Token.
Lesen Sie mehr über JWTs

Headers

Bearer <JWT>

Anfrage Körper
Inhalt Typ
application/json

name
string
Beispielmy_user_name

Unique name for a user

display_name
string
BeispielMy User Name

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

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

An image URL that you associate with the user

properties
object

User properties

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

custom key/value pairs

ttl
integer
Max2147483648
Beispiel3600

Time to live in seconds

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

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

username
string
BeispielNew SIP
password
string
BeispielPassword
vbc
array
extension
string
Beispiel403
websocket
array
uri
string
Beispielwss://example.com/socket

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

content-type
string
Beispielaudio/l16;rate=16000
Muss eines der folgenden sein:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
BeispielABC123

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

sms
array
number
string
Beispiel447700900000
mms
array
number
string
Beispiel447700900000
whatsapp
array
number
string
Beispiel447700900000
viber
array
number
string
Beispiel447700900000
messenger
array
id
string
Beispiel12345abcd

Beispiel Anfrage

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

Antworten
Inhalt Typ
application/json

Create a user response

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

User ID

name
string
Beispielmy_user_name

Unique name for a user

display_name
string
BeispielMy User Name

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

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

An image URL that you associate with the user

properties
object

User properties

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

custom key/value pairs

ttl
integer
Max2147483648
Beispiel3600

Time to live in seconds

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

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

username
string
BeispielNew SIP
password
string
BeispielPassword
vbc
array
extension
string
Beispiel403
websocket
array
uri
string
Beispielwss://example.com/socket

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

content-type
string
Beispielaudio/l16;rate=16000
Muss eines der folgenden sein:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
BeispielABC123

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

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

Beispiel Antwort

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

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Ihr JSON-Web-Token.
Lesen Sie mehr über JWTs

Headers

Bearer <JWT>

Pfad Parameter

id | name
string
Erforderlich
BeispielUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

Unique ID or name for a user

Antworten
Inhalt Typ
application/json

Retrieve a user

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

User ID

name
string
Beispielmy_user_name

Unique name for a user

display_name
string
BeispielMy User Name

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

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

An image URL that you associate with the user

properties
object

User properties

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

custom key/value pairs

ttl
integer
Max2147483648
Beispiel3600

Time to live in seconds

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

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

username
string
BeispielNew SIP
password
string
BeispielPassword
vbc
array
extension
string
Beispiel403
websocket
array
uri
string
Beispielwss://example.com/socket

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

content-type
string
Beispielaudio/l16;rate=16000
Muss eines der folgenden sein:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
BeispielABC123

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

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

Beispiel Antwort

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

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Ihr JSON-Web-Token.
Lesen Sie mehr über JWTs

Headers

Bearer <JWT>

Pfad Parameter

id
string
Erforderlich
BeispielUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

Unique ID for a user

Anfrage Körper
Inhalt Typ
application/json

name
string
Beispielmy_user_name

Unique name for a user

display_name
string
BeispielMy User Name

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

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

An image URL that you associate with the user

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

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

username
string
BeispielNew SIP
password
string
BeispielPassword
vbc
array
extension
string
Beispiel403
websocket
array
uri
string
Beispielwss://example.com/socket

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

content-type
string
Beispielaudio/l16;rate=16000
Muss eines der folgenden sein:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
BeispielABC123

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

sms
array
number
string
Beispiel447700900000
mms
array
number
string
Beispiel447700900000
whatsapp
array
number
string
Beispiel447700900000
viber
array
number
string
Beispiel447700900000
messenger
array
id
string
Beispiel12345abcd

Beispiel Anfrage

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

Antworten
Inhalt Typ
application/json

Update a user

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

User ID

name
string
Beispielmy_user_name

Unique name for a user

display_name
string
BeispielMy User Name

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

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

An image URL that you associate with the user

properties
object

User properties

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

custom key/value pairs

ttl
integer
Max2147483648
Beispiel3600

Time to live in seconds

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

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

username
string
BeispielNew SIP
password
string
BeispielPassword
vbc
array
extension
string
Beispiel403
websocket
array
uri
string
Beispielwss://example.com/socket

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

content-type
string
Beispielaudio/l16;rate=16000
Muss eines der folgenden sein:audio/l16;rate=8000audio/l16;rate=16000
headers
object

Details of the Websocket to connect to

customer_id
string
BeispielABC123

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

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

Beispiel Antwort

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

Authentifizierung

SchlüsselBeschreibungWoBeispiel
Authorization

Ihr JSON-Web-Token.
Lesen Sie mehr über JWTs

Headers

Bearer <JWT>

Pfad Parameter

id
string
Erforderlich
BeispielUSR-82e028d9-5201-4f1e-8188-604b2d3471ec

Unique ID for a user

Antworten

Success response with no content

Fehler

Im Folgenden finden Sie eine nicht erschöpfende Liste von Fehlercodes, die bei der Verwendung dieser API auftreten können.

Diese Codes gelten zusätzlich zu unseren generische Fehlercodes.

CodeInformationen
payload-validation

Beschreibung

Invalid request. See invalid_parameters field for details

Auflösung

Review the documentation and send a valid POST request.

list-validation

Beschreibung

Invalid request. See invalid_parameters field for details

Auflösung

Review the documentation and send a valid GET request.

rate-limit

Beschreibung

The request was rate limited

Auflösung

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