Get list of legs for a given call

This example shows you how to make retrieve details on a call leg. This will return the call direction (inbound or outbound) status, and more.

Replace the following placeholder values in the sample code:

KeyDescription
bearer_tokenYour OAuth token. Read more about OAuth tokens
account_idThe Vonage Business Communications account ID.
leg_idThe leg id for the leg you would like to get
curl --location --request GET 'https://api.vonage.com/t/vbc.prod/telephony/v3/cc/accounts/$account_id/calls/$leg_id/legs' \--header 'Authorization: Bearer $bearer_token'