Managing Capabilities

The vonage apps capabilities command can be used to add, update, and remove the Vonage API capabilities associated with your application.

Adding and Updating a Capability

To add a new capability to an application, or update the settings of a capability that an application has already been configured to use, run the command vonage apps capabilities update <application-id> <capability>.

Each API has a different set of flags for its associated settings to be configured; the list of flags for each API can be found in the relevant section below.

Network Features

Flag Description Type
--network-app-id Network registration application ID String
--network-redirect-url URL to redirect to exchange code for token String

Messages

Flag Description Type
--messages-inbound-url URL for inbound messages String
--messages-status-url URL for status messages String
--messages-version Version for webhook data. Must be either "v0.1" or "v1" String
--messages-authenticate-media Authenticate inbound media Boolean

Verify

Flag Description Type
--verify-status-url URL for verify status messages String

Voice

Flag Description Type
--voice-signed-callbacks Enable signed callbacks Boolean
--voice-conversations-ttl The time-to-live for conversations (measured in seconds)
--voice-leg-persistence-time The persistence duration for legs (measured in days)
--voice-region All inbound, programmable SIP and SIP connect calls will be sent to the selected region. If the call is using a regional endpoint this will override the application setting String
--voice-answer-url Answer Webhook URL Address String
--voice-answer-http Answer Webhook HTTP Method String
--voice-answer-connection-timeout Answer connection timeout
--voice-answer-socket-timeout Answer socket timeout
--voice-event-url Event Webhook URL Address String
--voice-event-http Event Webhook HTTP Method String
--voice-event-connection-timeout Event connection timeout
--voice-event-socket-timeout Event socket timeout
--voice-fallback-url Fallback Webhook URL Address String
--voice-fallback-http Fallback Webhook HTTP Method String
--voice-fallback-connection-timeout Fallback connection timeout
--voice-fallback-socket-timeout Fallback socket timeout

Video

Flag Description Type
--video-archive-status-url URL for Archive String
--video-archive-status-secret Secret for Archive URL String
--video-broadcast-status-url Broadcast status URL String
--video-broadcast-status-secret Secret for Broadcast URL String
--video-captions-status-url URL for caption status String
--video-captions-status-secret Secret for Caption Status String
--video-connection-created-url URL for created connections String
--video-connection-created-secret Secret for created connection URL String
--video-connection-destroyed-url URL for destroyed connections String
--video-connection-destroyed-secret Secret for destroyed connections String
--video-render-status-url URL for render status String
--video-render-status-secret Secret for render status String
--video-sip-call-created-url URL for SIP created calls String
--video-sip-call-created-secret Secret for SIP created String
--video-sip-call-destroyed-url URL for SIP destroyed String
--video-sip-call-destroyed-secret Secret for SIP destroyed String
--video-sip-call-mute-forced-url URL for SIP call muted String
--video-sip-call-mute-forced-secret Secret for call muted SIP String
--video-sip-call-updated-url URL for SIP updated String
--video-sip-call-updated-secret Secret for SIP updated String
--video-stream-created-url URL for stream created String
--video-stream-created-secret Secret for stream created String
--video-stream-destroyed-url URL for stream destroyed String
--video-stream-destroyed-secret Secret for stream destroyed String

Remove a Capability

You can remove a capability by running the command vonage apps capabilities rm <application-id> <capability>, where <application-id> is the ID of the application you want to update, and <capability> is the API capability you want to remove.