Returns an individual call identified by its CallSid. This endpoint is eventually consistent.
Call resource.
Conference does not exist
{- "data": {
- "account_sid": "61bf923e-5e4d-4595-a110-56190ea18a1b",
- "answered_by": null,
- "caller_name": "+13122010094",
- "date_created": "Thu, 15 Jun 2023 09:56:45 +0000",
- "date_updated": "Thu, 15 Jun 2023 09:56:56 +0000",
- "direction": "inbound",
- "duration": "11",
- "end_time": "Thu, 15 Jun 2023 09:56:56 +0000",
- "from": "+13123456789",
- "from_formatted": "(312) 345-6789",
- "price": null,
- "price_unit": null,
- "sid": "v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA",
- "start_time": "Thu, 15 Jun 2023 09:56:45 +0000",
- "status": "completed",
- "to": "+13987654321",
- "to_formatted": "(398) 765-4321",
- "uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls/v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA.json"
}
}
Update TeXML call. Please note that the keys present in the payload MUST BE formatted in CamelCase as specified in the example.
Update Call request object
Status | string The value to set the call status to. Setting the status to completed ends the call. |
Url | string The URL where TeXML will make a request to retrieve a new set of TeXML instructions to continue the call flow. |
Method | string HTTP request type used for |
FallbackUrl | string A failover URL for which Telnyx will retrieve the TeXML call instructions if the Url is not responding. |
FallbackMethod | string HTTP request type used for |
StatusCallback | string URL destination for Telnyx to send status callback events to for the call. |
StatusCallbackMethod | string HTTP request type used for |
Texml | string TeXML to replace the current one with. |
Call resource.
object (Call resource) | |||||||||||||||||||||||||||||||||||||
|
{- "Status": "completed"
}
{- "data": {
- "account_sid": "61bf923e-5e4d-4595-a110-56190ea18a1b",
- "answered_by": null,
- "caller_name": "+13122010094",
- "date_created": "Thu, 15 Jun 2023 09:56:45 +0000",
- "date_updated": "Thu, 15 Jun 2023 09:56:56 +0000",
- "direction": "inbound",
- "duration": "11",
- "end_time": "Thu, 15 Jun 2023 09:56:56 +0000",
- "from": "+13123456789",
- "from_formatted": "(312) 345-6789",
- "price": null,
- "price_unit": null,
- "sid": "v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA",
- "start_time": "Thu, 15 Jun 2023 09:56:45 +0000",
- "status": "completed",
- "to": "+13987654321",
- "to_formatted": "(398) 765-4321",
- "uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls/v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA.json"
}
}
Returns multiple call resouces for an account. This endpoint is eventually consistent.
Page | integer The number of the page to be displayed, zero-indexed, should be used in conjuction with PageToken. Example: Page=1 |
PageSize | integer The number of records to be displayed on a page Example: PageSize=10 |
PageToken | string Used to request the next page of results. |
To | string Filters calls by the to number. Example: To=+1312345678 |
From | string Filters calls by the from number. Example: From=+1312345678 |
Status | string Filters calls by status. Example: Status=no-answer |
StartTime | string Filters calls by the start date. Expected format is YYYY-MM-DD. Also accepts inequality operators, e.g. StartTime>=2023-05-22. Example: StartTime=>=2023-05-22 |
EndTime | string Filters calls by their end date. Expected format is YYYY-MM-DD. Also accepts inequality operators, e.g. EndTime>=2023-05-22. Example: EndTime=>=2023-05-22 |
Multiple call resources.
object (Multiple call resources) | |||||||||||||||||
|
Conference does not exist
{- "data": {
- "calls": [ ],
- "end": 0,
- "first_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls.json?Page=0&PageSize=1",
- "next_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls.json?Page=1&PageSize=1&PageToken=MTY4AjgyNDkwNzIxMQ",
- "page": 0,
- "page_size": 1,
- "start": 0,
- "uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls.json?Page=0&PageSize=1"
}
}
Returns multiple recording resources for an account.
Page | integer The number of the page to be displayed, zero-indexed, should be used in conjuction with PageToken. Example: Page=1 |
PageSize | integer The number of records to be displayed on a page Example: PageSize=10 |
DateCreated | string <datetime-iso8601> Filters recording by the creation date. Expected format is ISO8601 date or date-time, ie. {YYYY}-{MM}-{DD} or {YYYY}-{MM}-{DD}T{hh}:{mm}:{ss}Z. Also accepts inequality operators, e.g. DateCreated>=2023-05-22. Example: DateCreated=2023-05-22 |
Successful Get Call Recordings Response
Array of objects (Texml Get Call Recording Response Body) | |
end | integer The number of the last element on the page, zero-indexed. |
first_page_uri | string <uri> Relative uri to the first page of the query results |
previous_page_uri | string <uri> Relative uri to the previous page of the query results |
next_page_uri | string Relative uri to the next page of the query results |
page | integer Current page number, zero-indexed. |
page_size | integer The number of items on the page |
start | integer The number of the first element on the page, zero-indexed. |
uri | string The URI of the current page. |
{- "recordings": [
- {
- "account_sid": "61bf923e-5e4d-4595-a110-56190ea18a1b",
- "call_sid": "v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA",
- "conference_sid": "673611c9-3f0d-4b78-81ca-1a90840d9c88",
- "channels": 1,
- "date_created": "Fri, 11 Aug 2023 19:12:11 +0000",
- "date_updated": "Fri, 11 Aug 2023 19:12:11 +0000",
- "start_time": "Fri, 11 Aug 2023 19:12:11 +0000",
- "duration": "12",
- "sid": "e9cea0be-7dbd-4b98-98b1-c0089d9d43b0",
- "source": "StartCallRecordingAPI",
- "status": "paused",
- "error_code": null,
- "subresources_uris": {
- "transcriptions": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings/b08f0fa1-a32c-4218-b3b5-9cf78941ccac/Transcriptions.json"
}, - "uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings/b08f0fa1-a32c-4218-b3b5-9cf78941ccac.json",
}
], - "end": 19,
- "first_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings.json?Page=0&PageSize=1",
- "previous_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings.json?Page=0&PageSize=1",
- "next_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls.json?Page=1&PageSize=1",
- "page": 0,
- "page_size": 20,
- "start": 0,
- "uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings.json?Page=0&PageSize=1"
}
Returns recording resource identified by recording id.
Retrieves call recording resource.
account_sid | string (AccountSid) |
call_sid | string (CallControlId) |
conference_sid | string or null <uuid> (ConferenceSid) |
channels | integer (TwimlRecordingChannels) Default: 2 Enum: 1 2 |
date_created | string <datetime-rfc2822> (DateTimeRFC2822) |
date_updated | string <datetime-rfc2822> (DateTimeRFC2822) |
start_time | string <datetime-rfc2822> (DateTimeRFC2822) |
duration | string or null (TexmlRecordingDuration) The duration of this recording, given in seconds. |
sid | string (TexmlSid) Identifier of a resource. |
source | string (RecordingSource) Defines how the recording was created. |
status | string (TexmlRecordingStatus) Enum: "in-progress" "completed" "paused" "stopped" |
error_code | string or null (TexmlErrorCode) |
object (Texml recording subresources uris) Subresources details for a recording if available. | |
uri | string The relative URI for this recording resource. |
media_url | string <uri> (TexmlRecordingMediaUrl) |
{- "account_sid": "61bf923e-5e4d-4595-a110-56190ea18a1b",
- "call_sid": "v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA",
- "conference_sid": "673611c9-3f0d-4b78-81ca-1a90840d9c88",
- "channels": 1,
- "date_created": "Fri, 11 Aug 2023 19:12:11 +0000",
- "date_updated": "Fri, 11 Aug 2023 19:12:11 +0000",
- "start_time": "Fri, 11 Aug 2023 19:12:11 +0000",
- "duration": "12",
- "sid": "e9cea0be-7dbd-4b98-98b1-c0089d9d43b0",
- "source": "StartCallRecordingAPI",
- "status": "paused",
- "error_code": null,
- "subresources_uris": {
- "transcriptions": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings/b08f0fa1-a32c-4218-b3b5-9cf78941ccac/Transcriptions.json"
}, - "uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings/b08f0fa1-a32c-4218-b3b5-9cf78941ccac.json",
}
Deletes recording resource identified by recording id.
{- "code": "string",
- "title": "string",
- "detail": "string",
- "source": {
- "pointer": "/json/pointer",
- "parameter": "string"
}, - "meta": { }
}
Starts recording with specified parameters for call idientified by call_sid.
Starts call recording on a call.
RecordingStatusCallbackEvent | string (RecordingStatusCallbackEvent) Default: "completed" Recording status callback event types. |
RecordingStatusCallback | string <uri> (TexmlStatusCallback) Url where status callbacks will be sent. |
RecordingStatusCallbackMethod | string (TexmlStatusCallbackMethod) Default: "POST" HTTP method used to send status callbacks. |
RecordingChannels | string (TexmlRecordingChannels) Default: "dual" When |
RecordingTrack | string (RecordingTrack) Default: "both" The audio track to be recorded. |
Successful call recording create response
account_sid | string (AccountSid) |
call_sid | string (CallControlId) |
conference_sid | string or null <uuid> (ConferenceSid) |
channels | integer (TwimlRecordingChannels) Default: 2 Enum: 1 2 |
date_created | string <datetime-rfc2822> (DateTimeRFC2822) |
date_updated | string <datetime-rfc2822> (DateTimeRFC2822) |
start_time | string <datetime-rfc2822> (DateTimeRFC2822) |
duration | string or null (TexmlRecordingDuration) The duration of this recording, given in seconds. |
sid | string (TexmlSid) Identifier of a resource. |
source | string (RecordingSource) Defines how the recording was created. |
error_code | string or null (TexmlErrorCode) |
track | string (RecordingTrack) Default: "both" The audio track to be recorded. |
uri | string The relative URI for this recording resource. |
RecordingStatusCallbackEvent=in-progress&RecordingStatusCallback=http%3A%2F%2Fwebhook.com%2Fcallback&RecordingStatusCallbackMethod=GET&RecordingChannels=mono&RecordingTrack=inbound
{- "account_sid": "61bf923e-5e4d-4595-a110-56190ea18a1b",
- "call_sid": "v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA",
- "conference_sid": "673611c9-3f0d-4b78-81ca-1a90840d9c88",
- "channels": 1,
- "date_created": "Fri, 11 Aug 2023 19:12:11 +0000",
- "date_updated": "Fri, 11 Aug 2023 19:12:11 +0000",
- "start_time": "Fri, 11 Aug 2023 19:12:11 +0000",
- "duration": "12",
- "sid": "e9cea0be-7dbd-4b98-98b1-c0089d9d43b0",
- "source": "StartCallRecordingAPI",
- "error_code": null,
- "track": "inbound",
- "uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls/v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA/Recordings/b08f0fa1-a32c-4218-b3b5-9cf78941ccac.json"
}
Returns recordings for a call identified by call_sid.
Successful Get Call Recordings Response
Array of objects (Texml Get Call Recording Response Body) | |
end | integer The number of the last element on the page, zero-indexed. |
first_page_uri | string <uri> Relative uri to the first page of the query results |
previous_page_uri | string <uri> Relative uri to the previous page of the query results |
next_page_uri | string Relative uri to the next page of the query results |
page | integer Current page number, zero-indexed. |
page_size | integer The number of items on the page |
start | integer The number of the first element on the page, zero-indexed. |
uri | string The URI of the current page. |
{- "recordings": [
- {
- "account_sid": "61bf923e-5e4d-4595-a110-56190ea18a1b",
- "call_sid": "v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA",
- "conference_sid": "673611c9-3f0d-4b78-81ca-1a90840d9c88",
- "channels": 1,
- "date_created": "Fri, 11 Aug 2023 19:12:11 +0000",
- "date_updated": "Fri, 11 Aug 2023 19:12:11 +0000",
- "start_time": "Fri, 11 Aug 2023 19:12:11 +0000",
- "duration": "12",
- "sid": "e9cea0be-7dbd-4b98-98b1-c0089d9d43b0",
- "source": "StartCallRecordingAPI",
- "status": "paused",
- "error_code": null,
- "subresources_uris": {
- "transcriptions": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings/b08f0fa1-a32c-4218-b3b5-9cf78941ccac/Transcriptions.json"
}, - "uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings/b08f0fa1-a32c-4218-b3b5-9cf78941ccac.json",
}
], - "end": 19,
- "first_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings.json?Page=0&PageSize=1",
- "previous_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings.json?Page=0&PageSize=1",
- "next_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls.json?Page=1&PageSize=1",
- "page": 0,
- "page_size": 20,
- "start": 0,
- "uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings.json?Page=0&PageSize=1"
}
Updates recording resource for particular call.
account_sid required | string (AccountSid) The id of the account the resource belongs to. Example: 61bf923e-5e4d-4595-a110-56190ea18a1b |
call_sid required | string (CallControlId) The CallSid that identifies the call resource. Example: v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA |
recording_id required | string <uuid> Uniquely identifies the recording by id. Example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 |
Update call recording on a call.
Successful call recording create response
account_sid | string (AccountSid) |
call_sid | string (CallControlId) |
conference_sid | string or null <uuid> (ConferenceSid) |
channels | integer (TwimlRecordingChannels) Default: 2 Enum: 1 2 |
date_created | string <datetime-rfc2822> (DateTimeRFC2822) |
date_updated | string <datetime-rfc2822> (DateTimeRFC2822) |
start_time | string <datetime-rfc2822> (DateTimeRFC2822) |
duration | string or null (TexmlRecordingDuration) The duration of this recording, given in seconds. |
sid | string (TexmlSid) Identifier of a resource. |
source | string (RecordingSource) Defines how the recording was created. |
error_code | string or null (TexmlErrorCode) |
track | string (RecordingTrack) Default: "both" The audio track to be recorded. |
uri | string The relative URI for this recording resource. |
Status=paused
{- "account_sid": "61bf923e-5e4d-4595-a110-56190ea18a1b",
- "call_sid": "v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA",
- "conference_sid": "673611c9-3f0d-4b78-81ca-1a90840d9c88",
- "channels": 1,
- "date_created": "Fri, 11 Aug 2023 19:12:11 +0000",
- "date_updated": "Fri, 11 Aug 2023 19:12:11 +0000",
- "start_time": "Fri, 11 Aug 2023 19:12:11 +0000",
- "duration": "12",
- "sid": "e9cea0be-7dbd-4b98-98b1-c0089d9d43b0",
- "source": "StartCallRecordingAPI",
- "error_code": null,
- "track": "inbound",
- "uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls/v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA/Recordings/b08f0fa1-a32c-4218-b3b5-9cf78941ccac.json"
}
Returns recordings for a conference identified by conference_sid.
Successful Get Call Recordings Response
Array of objects (Texml Get Call Recording Response Body) | |
end | integer The number of the last element on the page, zero-indexed. |
first_page_uri | string <uri> Relative uri to the first page of the query results |
previous_page_uri | string <uri> Relative uri to the previous page of the query results |
next_page_uri | string Relative uri to the next page of the query results |
page | integer Current page number, zero-indexed. |
page_size | integer The number of items on the page |
start | integer The number of the first element on the page, zero-indexed. |
uri | string The URI of the current page. |
{- "recordings": [
- {
- "account_sid": "61bf923e-5e4d-4595-a110-56190ea18a1b",
- "call_sid": "v3:KBnLO0ZK3DhKM5s7bE9VluaSmKsOchKht_fUYvxcp8ysbmzCCtpkmA",
- "conference_sid": "673611c9-3f0d-4b78-81ca-1a90840d9c88",
- "channels": 1,
- "date_created": "Fri, 11 Aug 2023 19:12:11 +0000",
- "date_updated": "Fri, 11 Aug 2023 19:12:11 +0000",
- "start_time": "Fri, 11 Aug 2023 19:12:11 +0000",
- "duration": "12",
- "sid": "e9cea0be-7dbd-4b98-98b1-c0089d9d43b0",
- "source": "StartCallRecordingAPI",
- "status": "paused",
- "error_code": null,
- "subresources_uris": {
- "transcriptions": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings/b08f0fa1-a32c-4218-b3b5-9cf78941ccac/Transcriptions.json"
}, - "uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings/b08f0fa1-a32c-4218-b3b5-9cf78941ccac.json",
}
], - "end": 19,
- "first_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings.json?Page=0&PageSize=1",
- "previous_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings.json?Page=0&PageSize=1",
- "next_page_uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Calls.json?Page=1&PageSize=1",
- "page": 0,
- "page_size": 20,
- "start": 0,
- "uri": "/v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Recordings.json?Page=0&PageSize=1"
}