List Conversations

In this building block you will see how to list all Conversations.

Example

Prerequisites

Use your existing application

You will need to use an existing Application that contains Conversations in order to receive some results here. See the Create Conversation building block for information on how to create an Application and some sample Conversations.

Write the code

Add the following to list-conversations.sh:

Copy to Clipboard
# Gets a list of conversations from an application ID (app ID is in the JWT).
curl "https://api.nexmo.com/beta/conversations" \
     -H 'Authorization: Bearer '$JWT\
     -H 'Content-Type: application/json'

View full source

Run your code

Save this file to your machine and run it:

$ bash list-conversations.sh

Try it out

When you run the code you will retrieve a list of all Conversations.