Chats v2

Send voice message with optional text (v2)

post/v2/chats/{id}/voice-message

Path parameters

idstring required

Request body

clientIdstring

Client-provided message ID for idempotency

audioS3Keystring required

S3 key of the uploaded audio file

textstring

Optional text message/comment to send with the voice message

durationSecondsnumber

Duration of the audio in seconds (client-provided)

Example request

{
  "clientId": "550e8400-e29b-41d4-a716-446655440000",
  "audioS3Key": "voice-messages/abc123.mp3",
  "text": "Listen to this!",
  "durationSeconds": 5.2
}

Response

balancenumber required

User coin balance after operation

Changes

No recorded changes to this endpoint across all 1 revision of this API.