All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| deleteRecording | DELETE /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Delete Recording |
| deleteRecordingMedia | DELETE /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Delete Recording Media |
| deleteRecordingTranscription | DELETE /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Delete Transcription |
| downloadCallRecording | GET /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/media | Download Recording |
| getCallRecording | GET /accounts/{accountId}/calls/{callId}/recordings/{recordingId} | Get Call Recording |
| getRecordingTranscription | GET /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Get Transcription |
| listAccountCallRecordings | GET /accounts/{accountId}/recordings | Get Call Recordings |
| listCallRecordings | GET /accounts/{accountId}/calls/{callId}/recordings | List Call Recordings |
| transcribeCallRecording | POST /accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription | Create Transcription Request |
| updateCallRecordingState | PUT /accounts/{accountId}/calls/{callId}/recording | Update Recording |
deleteRecording()
Delete the recording information, media and transcription. Note: After the deletion is requested and a 204 is returned, neither the recording metadata nor the actual media nor its transcription will be accessible anymore. However, the media of the specified recording is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
import {
RecordingsApi,
Configuration
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new RecordingsApi(configuration);
let accountId: string; //Your Bandwidth Account ID. (default to undefined)
let callId: string; //Programmable Voice API Call ID. (default to undefined)
let recordingId: string; //Programmable Voice API Recording ID. (default to undefined)
const { status, data } = await apiInstance.deleteRecording(
accountId,
callId,
recordingId
);| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | [string] | Your Bandwidth Account ID. | defaults to undefined |
| callId | [string] | Programmable Voice API Call ID. | defaults to undefined |
| recordingId | [string] | Programmable Voice API Recording ID. | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | Recording was deleted. | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 405 | Method Not Allowed | - |
| 415 | Unsupported Media Type | - |
| 429 | Too Many Requests | * Retry-After - When you should try your request again. |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteRecordingMedia()
Deletes the specified recording's media.
import {
RecordingsApi,
Configuration
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new RecordingsApi(configuration);
let accountId: string; //Your Bandwidth Account ID. (default to undefined)
let callId: string; //Programmable Voice API Call ID. (default to undefined)
let recordingId: string; //Programmable Voice API Recording ID. (default to undefined)
const { status, data } = await apiInstance.deleteRecordingMedia(
accountId,
callId,
recordingId
);| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | [string] | Your Bandwidth Account ID. | defaults to undefined |
| callId | [string] | Programmable Voice API Call ID. | defaults to undefined |
| recordingId | [string] | Programmable Voice API Recording ID. | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | The recording media was successfully deleted. | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 405 | Method Not Allowed | - |
| 415 | Unsupported Media Type | - |
| 429 | Too Many Requests | * Retry-After - When you should try your request again. |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteRecordingTranscription()
Deletes the specified recording's transcription. Note: After the deletion is requested and a 204 is returned, the transcription will not be accessible anymore. However, it is not deleted immediately. This deletion process, while transparent and irreversible, can take an additional 24 to 48 hours.
import {
RecordingsApi,
Configuration
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new RecordingsApi(configuration);
let accountId: string; //Your Bandwidth Account ID. (default to undefined)
let callId: string; //Programmable Voice API Call ID. (default to undefined)
let recordingId: string; //Programmable Voice API Recording ID. (default to undefined)
const { status, data } = await apiInstance.deleteRecordingTranscription(
accountId,
callId,
recordingId
);| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | [string] | Your Bandwidth Account ID. | defaults to undefined |
| callId | [string] | Programmable Voice API Call ID. | defaults to undefined |
| recordingId | [string] | Programmable Voice API Recording ID. | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | The transcription was successfully deleted. | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 405 | Method Not Allowed | - |
| 415 | Unsupported Media Type | - |
| 429 | Too Many Requests | * Retry-After - When you should try your request again. |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
File downloadCallRecording()
Downloads the specified recording.
import {
RecordingsApi,
Configuration
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new RecordingsApi(configuration);
let accountId: string; //Your Bandwidth Account ID. (default to undefined)
let callId: string; //Programmable Voice API Call ID. (default to undefined)
let recordingId: string; //Programmable Voice API Recording ID. (default to undefined)
const { status, data } = await apiInstance.downloadCallRecording(
accountId,
callId,
recordingId
);| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | [string] | Your Bandwidth Account ID. | defaults to undefined |
| callId | [string] | Programmable Voice API Call ID. | defaults to undefined |
| recordingId | [string] | Programmable Voice API Recording ID. | defaults to undefined |
File
- Content-Type: Not defined
- Accept: audio/vnd.wave, audio/mpeg, application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 405 | Method Not Allowed | - |
| 415 | Unsupported Media Type | - |
| 429 | Too Many Requests | * Retry-After - When you should try your request again. |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CallRecordingMetadata getCallRecording()
Returns metadata for the specified recording.
import {
RecordingsApi,
Configuration
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new RecordingsApi(configuration);
let accountId: string; //Your Bandwidth Account ID. (default to undefined)
let callId: string; //Programmable Voice API Call ID. (default to undefined)
let recordingId: string; //Programmable Voice API Recording ID. (default to undefined)
const { status, data } = await apiInstance.getCallRecording(
accountId,
callId,
recordingId
);| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | [string] | Your Bandwidth Account ID. | defaults to undefined |
| callId | [string] | Programmable Voice API Call ID. | defaults to undefined |
| recordingId | [string] | Programmable Voice API Recording ID. | defaults to undefined |
CallRecordingMetadata
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 405 | Method Not Allowed | - |
| 415 | Unsupported Media Type | - |
| 429 | Too Many Requests | * Retry-After - When you should try your request again. |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RecordingTranscriptions getRecordingTranscription()
Downloads the specified transcription. If the recording was multi-channel, then there will be 2 transcripts. The caller/called party transcript will be the first item while <PlayAudio> and <SpeakSentence> transcript will be the second item. During a <Transfer> the A-leg transcript will be the first item while the B-leg transcript will be the second item.
import {
RecordingsApi,
Configuration
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new RecordingsApi(configuration);
let accountId: string; //Your Bandwidth Account ID. (default to undefined)
let callId: string; //Programmable Voice API Call ID. (default to undefined)
let recordingId: string; //Programmable Voice API Recording ID. (default to undefined)
const { status, data } = await apiInstance.getRecordingTranscription(
accountId,
callId,
recordingId
);| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | [string] | Your Bandwidth Account ID. | defaults to undefined |
| callId | [string] | Programmable Voice API Call ID. | defaults to undefined |
| recordingId | [string] | Programmable Voice API Recording ID. | defaults to undefined |
RecordingTranscriptions
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 405 | Method Not Allowed | - |
| 415 | Unsupported Media Type | - |
| 429 | Too Many Requests | * Retry-After - When you should try your request again. |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array listAccountCallRecordings()
Returns a list of metadata for the recordings associated with the specified account. The list can be filtered by the optional from, to, minStartTime, and maxStartTime arguments. The list is capped at 1000 entries and may be empty if no recordings match the specified criteria.
import {
RecordingsApi,
Configuration
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new RecordingsApi(configuration);
let accountId: string; //Your Bandwidth Account ID. (default to undefined)
let to: string; //Filter results by the `to` field. (optional) (default to undefined)
let from: string; //Filter results by the `from` field. (optional) (default to undefined)
let minStartTime: string; //Filter results to recordings which have a `startTime` after or including `minStartTime` (in ISO8601 format). (optional) (default to undefined)
let maxStartTime: string; //Filter results to recordings which have a `startTime` before `maxStartTime` (in ISO8601 format). (optional) (default to undefined)
const { status, data } = await apiInstance.listAccountCallRecordings(
accountId,
to,
from,
minStartTime,
maxStartTime
);| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | [string] | Your Bandwidth Account ID. | defaults to undefined |
| to | [string] | Filter results by the `to` field. | (optional) defaults to undefined |
| from | [string] | Filter results by the `from` field. | (optional) defaults to undefined |
| minStartTime | [string] | Filter results to recordings which have a `startTime` after or including `minStartTime` (in ISO8601 format). | (optional) defaults to undefined |
| maxStartTime | [string] | Filter results to recordings which have a `startTime` before `maxStartTime` (in ISO8601 format). | (optional) defaults to undefined |
Array
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 405 | Method Not Allowed | - |
| 415 | Unsupported Media Type | - |
| 429 | Too Many Requests | * Retry-After - When you should try your request again. |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array listCallRecordings()
Returns a (potentially empty) list of metadata for the recordings that took place during the specified call.
import {
RecordingsApi,
Configuration
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new RecordingsApi(configuration);
let accountId: string; //Your Bandwidth Account ID. (default to undefined)
let callId: string; //Programmable Voice API Call ID. (default to undefined)
const { status, data } = await apiInstance.listCallRecordings(
accountId,
callId
);| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | [string] | Your Bandwidth Account ID. | defaults to undefined |
| callId | [string] | Programmable Voice API Call ID. | defaults to undefined |
Array
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 405 | Method Not Allowed | - |
| 415 | Unsupported Media Type | - |
| 429 | Too Many Requests | * Retry-After - When you should try your request again. |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
transcribeCallRecording(transcribeRecording)
Generate the transcription for a specific recording. Transcription can succeed only for recordings of length greater than 500 milliseconds and less than 4 hours.
import {
RecordingsApi,
Configuration,
TranscribeRecording
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new RecordingsApi(configuration);
let accountId: string; //Your Bandwidth Account ID. (default to undefined)
let callId: string; //Programmable Voice API Call ID. (default to undefined)
let recordingId: string; //Programmable Voice API Recording ID. (default to undefined)
let transcribeRecording: TranscribeRecording; //
const { status, data } = await apiInstance.transcribeCallRecording(
accountId,
callId,
recordingId,
transcribeRecording
);| Name | Type | Description | Notes |
|---|---|---|---|
| transcribeRecording | TranscribeRecording | ||
| accountId | [string] | Your Bandwidth Account ID. | defaults to undefined |
| callId | [string] | Programmable Voice API Call ID. | defaults to undefined |
| recordingId | [string] | Programmable Voice API Recording ID. | defaults to undefined |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | Transcription was successfully requested. | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 405 | Method Not Allowed | - |
| 415 | Unsupported Media Type | - |
| 429 | Too Many Requests | * Retry-After - When you should try your request again. |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateCallRecordingState(updateCallRecording)
Pause or resume a recording on an active phone call.
import {
RecordingsApi,
Configuration,
UpdateCallRecording
} from 'bandwidth-sdk';
const configuration = new Configuration();
const apiInstance = new RecordingsApi(configuration);
let accountId: string; //Your Bandwidth Account ID. (default to undefined)
let callId: string; //Programmable Voice API Call ID. (default to undefined)
let updateCallRecording: UpdateCallRecording; //
const { status, data } = await apiInstance.updateCallRecordingState(
accountId,
callId,
updateCallRecording
);| Name | Type | Description | Notes |
|---|---|---|---|
| updateCallRecording | UpdateCallRecording | ||
| accountId | [string] | Your Bandwidth Account ID. | defaults to undefined |
| callId | [string] | Programmable Voice API Call ID. | defaults to undefined |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 405 | Method Not Allowed | - |
| 415 | Unsupported Media Type | - |
| 429 | Too Many Requests | * Retry-After - When you should try your request again. |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]