All URIs are relative to https://api.telnyx.com/v2
Method | HTTP request | Description |
---|---|---|
retrieveCallStatus | GET /calls/{call_control_id} | Retrieve call status |
RetrieveCallStatusResponse retrieveCallStatus(callControlId)
Retrieve call status
Returns the status of a call (data is available 10 minutes after call ended).
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.CallInformationApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
CallInformationApi apiInstance = new CallInformationApi();
String callControlId = "callControlId_example"; // String | Unique identifier and token for controlling the call
try {
RetrieveCallStatusResponse result = apiInstance.retrieveCallStatus(callControlId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CallInformationApi#retrieveCallStatus");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
callControlId | String | Unique identifier and token for controlling the call |
- Content-Type: Not defined
- Accept: application/json