Java

Create the Users

Each participant in a Conversation is represented by a [User](/conversation/ concepts/user) object and must be authenticated by the Client SDK. In a production application, you would typically store this user information in a database.

Execute the following commands to create two users, Alice and Bob who will log in to the Vonage Client and participate in the in-app voice call (Conversation).

vonage conversations create `
  --name='your_conversation' `
  --display-name='Your conversation' `
  --image-url='https://manchuck.com' `
  --ttl=600 `
  --phone-number=16127779311  `
  --callback-url='https://example.com/conversations/callback' `
  --callback-event-mask='audio:mute:on' `
  --callback-event-mask='audio:mute:off' `
  --callback-method='GET' `
  --callback-application-id='00000000-0000-0000-0000-000000000000' `
  --callback-ncco-url='https://example.com/conversations/ncco'

✅ Fetching conversation

Name: your_conversation
Conversation ID: CON-00000000-0000-0000-0000-000000000000
Display Name: Your Conversation
Image URL: https://tinyurl.com/5ey2vhw2
State: ACTIVE
Time to Leave: 600
Created at: 08/29/1997, 02:14:00 AM
Updated at: Not Set
Destroyed at: Not Set
Sequence: 0

Media State:
  Earmuffed: ❌ No
  Muted: ❌ No
  Playing Stream: ❌ No
  Recording: ❌ No
  Transcribing: ❌ No
  Text To Speech: ❌ No

Make a note of user IDs as you'll need them later.