Skip to content

Commit c04bd94

Browse files
authored
Merge pull request #410 from Invoca/JETS-261_update_call_ingestion_docs_for_phone_number_guidance
JETS-261: Add documentation for recommendations on phone number fields in call ingestion api
2 parents 89e6622 + 02bd2eb commit c04bd94

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

source/api_documentation/call_ingestion_api/index.rst

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ These are the call details used when creating the call in the Invoca platform.
4646

4747
`start_time` This is the date and time when the call started on the call origination platform. Please see the **Timestamp Formats** section below for descriptions of supported timestamps.
4848

49-
`destination_phone_number` DNIS in E.164 format +country national_number; example: ‘+18885551212’. UK and Spanish numbers are also supported. Their country codes are +44 and +34 respectively.
49+
`destination_phone_number` DNIS in E.164 format +country national_number; example: ‘+18885551212’. UK and Spanish numbers are also supported. Their country codes are +44 and +34 respectively. Recommended to always be set to the business's phone number. Please see **Recommendations on Phone Number Fields** section below for more details.
5050

51-
`calling_phone_number` ANI in E.164 format +country national_number; example: ‘+18885551212’.
51+
`calling_phone_number` ANI in E.164 format +country national_number; example: ‘+18885551212’. Recommended to always be set to the customer's phone number. Please see **Recommendations on Phone Number Fields** section below for more details.
5252

5353
`advertiser_campaign_id_from_network` The ID from network field on the advertiser campaign. The submitted call will be added to this campaign. *Please note that this campaign must be of type ExternalOnly* See :doc:`../network_integration/advertiser_campaigns//index` for more details.
5454

@@ -215,7 +215,18 @@ All examples below correspond to a date time of **11 April 2016** at **1 PM Paci
215215

216216
Example (no milliseconds): **2016/04/11 13:00:00 PM**
217217

218+
Recommendations on Phone Number Fields
219+
-------------------------------
220+
221+
For all calls submitted via the Call Ingestion API, regardless of whether the call is inbound or outbound, we recommend the customer's phone number is always set as the **calling_phone_number**, and the business or agent's phone number should always be set as the **destination_phone_number**.
222+
223+
This standardization ensures that all calls match the Invoca recording channel layout and enables consistency across reporting and features in the Invoca platform.
224+
225+
For example:
226+
227+
* If a customer calls a business (inbound), the customer's number is the **calling_phone_number** and the business's number is the **destination_phone_number**.
218228

229+
* If a business calls a customer (outbound), the customer's number is still the **calling_phone_number** and the business's number is still the **destination_phone_number**.
219230

220231
Example POST Request Using cURL
221232
-------------------------------

source/api_documentation/calls_in_progress_api/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Calls In Progress API
1010

1111

1212
The Calls In Progress API is used for interacting with pre-call insights for live calls as part of PreSense. It can retrieve
13-
information during a call. Calls become available via the api as soon as they are transferred to the campaign's destination.
13+
information during a call. Calls become available via the api as soon as they are transferred to the campaign's destination.
1414
Once the call is complete, it is no longer available via the API.
1515

1616
For authentication, use an API token. See :doc:`../manage_api_credentials` for details.
@@ -138,13 +138,13 @@ Examples
138138
~~~~~~~~~~~
139139
.. api_endpoint::
140140
:verb: GET
141-
:path: /calls_in_progress
141+
:path: /calls_in_progress/current_calls
142142
:description: Retrieve a specific call by Transaction ID
143143
:page: get_calls_by_transaction_id_for_attribution
144144

145145
.. api_endpoint::
146146
:verb: GET
147-
:path: /calls_in_progress
147+
:path: /calls_in_progress/current_calls
148148
:description: Retrieve a specific call by Call Record ID
149149
:page: get_calls_by_call_record_id_for_attribution
150150

0 commit comments

Comments
 (0)