Skip to main content
POST
/
legacy
/
reporting
/
batch_detail_records
/
speech_to_text
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const speechToText = await client.legacy.reporting.batchDetailRecords.speechToText.create({
  end_date: '2020-07-01T00:00:00-06:00',
  start_date: '2020-07-01T00:00:00-06:00',
});

console.log(speechToText.data);
{
  "data": {
    "id": "ab76c3b6-80cd-11eb-9439-0242ac130002",
    "created_at": "2020-07-01T00:00:00-06:00",
    "start_date": "2020-07-01T00:00:00-06:00",
    "end_date": "2020-07-01T00:00:00-06:00",
    "download_link": "https://portal-cdrs-usage.s3.amazonaws.com",
    "status": "PENDING",
    "record_type": "speech_to_text_report"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Speech to Text batch report request data

Request object for Speech to Text detailed report

start_date
string<date-time>
required

Start date in ISO format with timezone

Example:

"2020-07-01T00:00:00-06:00"

end_date
string<date-time>
required

End date in ISO format with timezone (date range must be up to one month)

Example:

"2020-07-01T00:00:00-06:00"

Response

Speech to text batch report request created successfully

data
object