{"info":{"_postman_id":"809d92ca-95c0-4c98-a14a-87e494127e27","name":"BPCC Interaction Content API","description":"<html><head></head><body><p>With the BPCC Interaction Content API you currently can:</p>\n<ul>\n<li>Obtain <a href=\"https://help.brightpattern.com/5.3:Reporting-reference-guide/RecordingsDetailsFormat\">general metadata</a> for a service voice call.</li>\n<li>Obtain a regular audio recording of a service voice call in GSM format (a regular recording includes all call segments and voices of all call participants).</li>\n<li>Obtain audio recordings of individual participants in uncompressed PCM format (such recordings will be available if the multichannel call recording capability is enabled for your contact center).</li>\n</ul>\n<p>This document specifies the corresponding REST API methods, with example requests and responses. You can load this API into the <a href=\"https://www.getpostman.com/\">Postman API Development Environment</a> to interact with the API with your own access tokens.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6711197","collectionId":"809d92ca-95c0-4c98-a14a-87e494127e27","publishedId":"S1EUtb1f","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-04-22T22:19:45.000Z"},"item":[{"name":"Authentication","item":[{"name":"Get Access Token","id":"0bc6e70d-12fc-4185-8556-25801b9f578d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"","description":"<p><a href=\"https://help.brightpattern.com/5.2:Contact-center-administrator-guide/Users#Username\">Username</a> of a BP user authorized to <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/UsersandTeams/Privileges#Allow_recording_export_API_access\">export recordings via API</a>. </p>\n","type":"text"},{"key":"client_secret","value":"","description":"<p>API secret key generated for the above user.</p>\n","type":"text"},{"key":"scope","value":"","description":"<p>Your contact center domain name, e.g., <em>example.brightpattern.com</em>.</p>\n","type":"text"},{"key":"grant_type","value":"","description":"<p>Grant type. Must be set to <em>client_credentials</em>.</p>\n","type":"text"}]},"url":"https://:tenant_url/configapi/v2/oauth/token","description":"<p>Returns an access token that will be used to authenticate each subsequent request made via this API.</p>\n","urlObject":{"protocol":"https","port":"tenant_url","path":["configapi","v2","oauth","token"],"query":[],"variable":[{"description":{"content":"<p>Your contact center domain name, e.g., example.brightpattern.com.</p>\n","type":"text/plain"},"type":"string","value":"","key":"tenant_url"}]}},"response":[{"id":"f2bf3029-f2a2-4f55-965d-76124fafb828","name":"Get Access Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"admin","description":"[Username](https://help.brightpattern.com/5.2:Contact-center-administrator-guide/Users#Username) of a BP user authorized to [export recordings via API](https://help.brightpattern.com/5.3:Contact-center-administrator-guide/UsersandTeams/Privileges#Allow_recording_export_API_access). \n","type":"text"},{"key":"client_secret","value":"X0vhlwMc6YoEbQDDqQGM9nOw8p7v9110rjTL1COxGBnpIAZvY6ryrrBQT5N28qS9","description":"API secret key generated for the above user.","type":"text"},{"key":"scope","value":"sasha.brightpattern.com","description":"Your contact center domain name, e.g., *example.brightpattern.com*.","type":"text"},{"key":"grant_type","value":"client_credentials","description":"Grant type. Must be set to *client_credentials*.","type":"text"}]},"url":{"raw":"https://:tenant_url/configapi/v2/oauth/token","protocol":"https","port":"tenant_url","path":["configapi","v2","oauth","token"],"variable":[{"key":"tenant_url","value":"sasha.brightpattern.com","description":"Your contact center domain name, e.g., example.brightpattern.com."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Mon, 22 Apr 2019 03:22:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"242"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"F25D3BD6FCF559A63CAA5BBE5021C238B0F1B57D3D7D3EA3C9B4FA779B549A20\",\n    \"token_type\": \"Bearer\",\n    \"expires_in\": \"3600\",\n    \"scope\": \"sasha.brightpattern.com\"\n}"}],"_postman_id":"0bc6e70d-12fc-4185-8556-25801b9f578d"}],"id":"a300539f-5129-4a94-9d42-e1086b7d9eb3","description":"<p>The <a href=\"https://tools.ietf.org/html/rfc6749#section-4.4\">OAuth 2.0 Client Credentials Grant</a> is used to authenticate clients of this API. The authenticated user is checked for having appropriate privileges to perform the requested operation. The complete list of privileges can be found <a href=\"https://help.brightpattern.com/5.2:Contact-center-administrator-guide/Privileges\">here</a>. Privileges are assigned to users via one or more <a href=\"https://help.brightpattern.com/5.2:Contact-center-administrator-guide/Roles\">Roles</a>.</p>\n<p>To obtain an access token:</p>\n<ol>\n<li>Login to your BPCC configuraiton portal.</li>\n<li>Navigate to <a href=\"https://help.brightpattern.com/5.2:Contact-center-administrator-guide/Users\">Users</a> page.</li>\n<li>Select or create a user with privilege <em>Allow recording export API access</em>.</li>\n<li>Click the Generate button to generate an <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/UsersandTeams/Users#API_secret\">API secret key</a>. Copy the generated key and note the username for the next steps.</li>\n<li>Use the <em>Get Access Token</em> method to obtain an access token. Set the <em>client_id</em> to the username and <em>client_secret</em> to the generated API secrect key.</li>\n<li>Use the value of <em>access_token</em> returned in the response to set the <em>Authorization: Bearer [access token]</em> header of each subsequent request made via this API.</li>\n</ol>\n","event":[{"listen":"prerequest","script":{"id":"830434b2-fdf6-4177-acf1-6ecaaa137df8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"6541e414-87ee-4fbb-a0fc-359229bd1659","type":"text/javascript","exec":[""]}}],"_postman_id":"a300539f-5129-4a94-9d42-e1086b7d9eb3"},{"name":"Regular Call Recordings","item":[{"name":"Get Regular Recording Audio File","id":"e1142905-68c0-42e5-ad1b-e20e62ea9986","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"https://:tenant_url/configapi/v2/recordings/audio?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A&stepid=C6A1ECF1-6C4E-4D13-B848-718273ECB0CA&=","description":"<p>Returns an audio file with voices of all participants for the specified call recording in the GSM format.</p>\n","urlObject":{"protocol":"https","port":"tenant_url","path":["configapi","v2","recordings","audio"],"query":[{"description":{"content":"<p><a href=\"https://help.brightpattern.com/5.2:Reporting-reference-guide/GlobalInteractionIdentifier\">Global interaction identifier</a>.</p>\n","type":"text/plain"},"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A"},{"description":{"content":"<p>Identifier of the step of the interaction for which the recording is to be retrieved. Can be obtained via scenario variable <em>$(item.interactionStepId)</em> or the <em>callee_interaction_step_id</em> field of the <em>call_detail</em> table of the Reporting Database.</p>\n","type":"text/plain"},"key":"stepid","value":"C6A1ECF1-6C4E-4D13-B848-718273ECB0CA"},{"key":"","value":""}],"variable":[{"description":{"content":"<p>Your contact center domain name, e.g., example.brightpattern.com.</p>\n","type":"text/plain"},"type":"string","value":"","key":"tenant_url"}]}},"response":[{"id":"8d458bdc-3d87-4905-880c-b572610edb9f","name":"Get Audio File","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://:tenant_url/configapi/v2/recordings/audio?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A&stepid=C6A1ECF1-6C4E-4D13-B848-718273ECB0CA&=","protocol":"https","port":"tenant_url","path":["configapi","v2","recordings","audio"],"query":[{"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A","description":"[Global interaction identifier](https://help.brightpattern.com/5.2:Reporting-reference-guide/GlobalInteractionIdentifier)."},{"key":"stepid","value":"C6A1ECF1-6C4E-4D13-B848-718273ECB0CA","description":"Identifier of the step of the interaction for which the recording is to be retrieved. Can be obtained via scenario variable *$(item.interactionStepId)* or the *caller_interaction_step_id* field of the *call_detail* table of the Reporting Database."},{"key":"","value":""}],"variable":[{"key":"tenant_url","value":"sasha.brightpattern.com","description":"Your contact center domain name, e.g., example.brightpattern.com."}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"e1142905-68c0-42e5-ad1b-e20e62ea9986"},{"name":"Get Interaction Metadata","id":"c95712ce-7049-4885-8ac3-2edaabc1b5ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"https://:tenant_url/configapi/v2/recordings/metadata?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A&stepid=C6A1ECF1-6C4E-4D13-B848-718273ECB0CA","description":"<p>Returns the following metadata for the specified interaction:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Data Item</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Start Time</td>\n<td>Interaction start time</td>\n</tr>\n<tr>\n<td>Agent loginId</td>\n<td>Username of the agent who last handled this call</td>\n</tr>\n<tr>\n<td>Agent First Name</td>\n<td>First name of the agent who last handled this call</td>\n</tr>\n<tr>\n<td>Agent Last Name</td>\n<td>Last name of the agent who last handled this call</td>\n</tr>\n<tr>\n<td>Customer phone</td>\n<td>Customer’s phone number (technically, the phone number of the party opposite to the above agent)</td>\n</tr>\n<tr>\n<td>Direction</td>\n<td>Call direction relative to the above agent, Inbound or Outbound</td>\n</tr>\n<tr>\n<td>Service</td>\n<td>Name of the service or campaign associated with this call</td>\n</tr>\n<tr>\n<td>Disposition</td>\n<td>Disposition selected by the agent for this interaction</td>\n</tr>\n<tr>\n<td>Notes</td>\n<td>Notes entered by the agent for this interaction</td>\n</tr>\n<tr>\n<td>Voice Signature</td>\n<td>Indicates whether the recording contains a vocie signature.</td>\n</tr>\n<tr>\n<td>Flagged</td>\n<td>Indicates whether the interaction was flagged by the agent.</td>\n</tr>\n<tr>\n<td>Talk Time</td>\n<td>Overall call duration.</td>\n</tr>\n<tr>\n<td>RecordingId</td>\n<td>Name of the file that contains the recording of this interaction.</td>\n</tr>\n<tr>\n<td>Review URL</td>\n<td>Link for direct access to the recording via the Contact Center Administrator application (login required).</td>\n</tr>\n<tr>\n<td>Screen Recording</td>\n<td>Indicates whether an agent screen recording is available for this interaction.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","port":"tenant_url","path":["configapi","v2","recordings","metadata"],"query":[{"description":{"content":"<p><a href=\"https://help.brightpattern.com/5.3:Reporting-reference-guide/GlobalInteractionIdentifier\">Global interaction identifier</a>.</p>\n","type":"text/plain"},"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A"},{"description":{"content":"<p>Identifier of the step of the interaction for which metadata is being requested. Can be obtained via scenario variable <em>$(item.interactionStepId)</em> or the <em>callee_interaction_step_id</em> field of the <em>call_detail</em> table of the Reporting Database.</p>\n","type":"text/plain"},"key":"stepid","value":"C6A1ECF1-6C4E-4D13-B848-718273ECB0CA"}],"variable":[{"description":{"content":"<p>Your contact center domain name, e.g., example.brightpattern.com.</p>\n","type":"text/plain"},"type":"string","value":"","key":"tenant_url"}]}},"response":[{"id":"2a3924d9-6e99-4096-b486-0536d01979da","name":"Metadata for a call with a live agent","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://:tenant_url/configapi/v2/recordings/metadata?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A&stepid=C6A1ECF1-6C4E-4D13-B848-718273ECB0CA","protocol":"https","port":"tenant_url","path":["configapi","v2","recordings","metadata"],"query":[{"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A","description":"[Global interaction identifier](https://help.brightpattern.com/5.2:Reporting-reference-guide/GlobalInteractionIdentifier)."},{"key":"stepid","value":"C6A1ECF1-6C4E-4D13-B848-718273ECB0CA","description":"Identifier of the interaction step to be retrieved. Can be obtained via scenario variable *$(item.interactionStepId)* or the *caller_interaction_step_id* field of the *call_detail* table of the Reporting Database."}],"variable":[{"description":"Your contact center domain name, e.g., *example.brightpattern.com*.","key":"tenant_url","value":"sasha.brightpattern.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Fri, 15 Mar 2019 20:21:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"603"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"Start Time\": \"03/15/2019 07:49:31 PM UTC +00:00\",\n    \"Agent loginId\": \"navarro\",\n    \"Agent First Name\": \"Jose\",\n    \"Agent Last Name\": \"Navarro\",\n    \"Customer phone\": \"Restricted\",\n    \"Direction\": \"INBOUND\",\n    \"Service\": \"Support\",\n    \"Disposition\": \"Solved\",\n    \"Notes\": \"\",\n    \"Voice Signature\": \"0\",\n    \"Flagged\": \"0\",\n    \"Talk Time\": \"0:38\",\n    \"RecordingId\": \"20190315124931_Restricted_navarro_C6A1ECF16C4E4D13B848718273ECB0CA.wav\",\n    \"Global Interaction ID\": \"A44B62DE-75FB-47CD-A103-8F778CD1032A\",\n    \"Review URL\": \"https://sasha.brightpattern.com/admin?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A&stepId=C6A1ECF1-6C4E-4D13-B848-718273ECB0CA\",\n    \"Screen Recording\": \"0\"\n}"},{"id":"9137fc94-3e21-4345-a5fa-b6c4553a9c97","name":"Metadata of IVR-only Call","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://:tenant_url/configapi/v2/recordings/metadata?giid=9F63B008-4BA3-4022-90F7-A8B99ED1A3E8&stepid=89B5E090-F584-4AAA-973A-02C0524BF9CB","protocol":"https","port":"tenant_url","path":["configapi","v2","recordings","metadata"],"query":[{"key":"giid","value":"9F63B008-4BA3-4022-90F7-A8B99ED1A3E8","description":"[Global interaction identifier](https://help.brightpattern.com/5.2:Reporting-reference-guide/GlobalInteractionIdentifier)."},{"key":"stepid","value":"89B5E090-F584-4AAA-973A-02C0524BF9CB","description":"Identifier of the interaction step to be retrieved. Can be obtained via scenario variable *$(item.interactionStepId)* or the *caller_interaction_step_id* field of the *call_detail* table of the Reporting Database."}],"variable":[{"description":"Your contact center domain name, e.g., *example.brightpattern.com*.","key":"tenant_url","value":"sasha.brightpattern.com"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Fri, 15 Mar 2019 19:41:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"583"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"Start Time\": \"02/27/2019 01:04:52 AM UTC +00:00\",\n    \"Agent loginId\": null,\n    \"Agent First Name\": null,\n    \"Agent Last Name\": null,\n    \"Customer phone\": \"Restricted\",\n    \"Direction\": \"INBOUND\",\n    \"Service\": \"Sales\",\n    \"Disposition\": \"No agent\",\n    \"Notes\": \"\",\n    \"Voice Signature\": \"0\",\n    \"Flagged\": \"0\",\n    \"Talk Time\": \"0:11\",\n    \"RecordingId\": \"20190226170452_Restricted_89B5E090F5844AAA973A02C0524BF9CB.wav\",\n    \"Global Interaction ID\": \"9F63B008-4BA3-4022-90F7-A8B99ED1A3E8\",\n    \"Review URL\": \"https://sasha.brightpattern.com/admin?giid=9F63B008-4BA3-4022-90F7-A8B99ED1A3E8&stepId=89B5E090-F584-4AAA-973A-02C0524BF9CB\",\n    \"Screen Recording\": \"0\"\n}"}],"_postman_id":"c95712ce-7049-4885-8ac3-2edaabc1b5ad"},{"name":"Erase Call Recordings","id":"891e387b-ee31-4782-b128-8d593ba73816","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://<tenant_url>/configapi/v2/recordings/audio?giid=<GIID>&reason=<reason>","description":"<p>This method erases locally stored call recordings; the interaction’s <a href=\"https://help.brightpattern.com/5.3:Reporting-reference-guide/GlobalInteractionIdentifier\">Global Interaction Identifier (GIID)</a> must be included as a query parameter in the request URL</p>\n<h1 id=\"notes\">Notes</h1>\n<ul>\n<li><em>Reason</em> is an optional query parameter.</li>\n<li>This method applies to locally stored recordings only.</li>\n<li>If multiple recordings are associated with the <a href=\"https://help.brightpattern.com/5.3:Reporting-reference-guide/GlobalInteractionIdentifier\">specified GIID</a>, all of them will be erased.</li>\n<li>The erasure of recordings is:<ul>\n<li>Tracked via the <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/Security/AuditLog\">Audit Log</a></li>\n<li>Reflected in <a href=\"https://help.brightpattern.com/5.3:Reporting-reference-guide/InteractionRecordsSearch\">Interaction Records Search Results</a></li>\n<li>Reflected in <a href=\"https://help.brightpattern.com/5.3:Agent-guide/Work/CasesEmail/MyCasesInterface#Case_History\">case activity history</a></li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["configapi","v2","recordings","audio"],"host":["<tenant_url>"],"query":[{"description":{"content":"<p>The interaction's <a href=\"https://help.brightpattern.com/5.3:Reporting-reference-guide/GlobalInteractionIdentifier\">Global Interaction Identifier</a></p>\n","type":"text/plain"},"key":"giid","value":"<GIID>"},{"description":{"content":"<p>(Optional) The reason for erasing the recording(s)</p>\n","type":"text/plain"},"key":"reason","value":"<reason>"}],"variable":[]}},"response":[{"id":"9b52795c-4909-4e1b-97f3-181f220a70ca","name":"Erase Call Recordings","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/recordings/audio?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A&reason=credit_card_info","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","recordings","audio"],"query":[{"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A"},{"key":"reason","value":"credit_card_info"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"891e387b-ee31-4782-b128-8d593ba73816"}],"id":"ee890919-33af-4876-a45e-86798ac31aef","description":"<p>These methods enable retrieval of regular voice recordings (i.e., recordings where voices of all participating parties are recorded in the same audio file) and the related <a href=\"https://help.brightpattern.com/5.3:Reporting-reference-guide/RecordingsDetailsFormat\">call metadata</a>. Both audio files and metadata can be retrieved immediately upon call termination. Parameters required for recording identificaiton can be obtained via scenario variables <em>$(item.globalInteractionId)</em> and <em>$(item.interactionStepId)</em>.\nRegular call recordings are exported in GSM format.</p>\n","event":[{"listen":"prerequest","script":{"id":"8fc0f216-e6cf-44c9-974b-f55430e3236c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"45640944-0074-4b65-b880-ce0eae67a921","type":"text/javascript","exec":[""]}}],"_postman_id":"ee890919-33af-4876-a45e-86798ac31aef"},{"name":"Multichannel Call Recordings","item":[{"name":"Get Multichannel Recording Structure","id":"64930044-62e3-4e02-82e2-a97433cbac7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"<token>"},"isInherited":false},"method":"GET","header":[],"url":"https://:tenant_url/configapi/v2/multi_channel_recordings?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A","description":"<p>This method is used to get information about the structure of a specific multichannel call recording. The call is identified by the Global Interaction Identifier (GIID). <a href=\"https://help.brightpattern.com/5.2:Reporting-reference-guide/GlobalInteractionIdentifier#How_GIIDs_Are_Exposed\">This article</a> describes the various ways the GIID of a call can be obtained.</p>\n<p>The API response is an array of objects, where each object contains the metadata for a specific interaction related to the GIID.</p>\n<h2 id=\"response-body\">Response Body</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>_id</td>\n<td>Internal use only.</td>\n</tr>\n<tr>\n<td>tenant_id</td>\n<td>Internal use only.</td>\n</tr>\n<tr>\n<td>global_interaction_id</td>\n<td>The GIID of this interaction. (The same GIID that was used to get this metadata.)</td>\n</tr>\n<tr>\n<td>interaction_id</td>\n<td>The GIID may refer to several related interactions (for example, a primary customer-agent call and a related consult call). Thus, in addition to the GIID, each interaction has a globally unique interaction_id. Each interaction has a list of <em>parties</em>.</td>\n</tr>\n<tr>\n<td>parties</td>\n<td>An array of Party Objects, where each object contains information about a participant in the call. See the <strong>Party Object</strong> structure below.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"party-object\">Party Object</h2>\n<p>The <code>parties</code> array contains one or more Party Objects.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>party_id</td>\n<td>Identifier of a party within the interaction identified by the <em>interaction_id</em>. Note that this identifier is used exclusively for retrieval of the party's audio via the <em>Get Party Audio File</em> method and is not intended to be used for any other purposes.</td>\n</tr>\n<tr>\n<td>party_type</td>\n<td>USER - the given party is a configured BPCC user (typically, an agent);  <br />CONTACT - the given party is a known customer;  <br />UNIDENTIFIED - the given party could not be identified as either a BPCC user or a known customer.</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>Party's first name if available.</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>Party's last name if available.</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>Party's phone number used for the given call if available.</td>\n</tr>\n<tr>\n<td>user_id</td>\n<td>Internal use only.</td>\n</tr>\n<tr>\n<td>recordings</td>\n<td>An array of Recording Segment Objects. Because call recording can be stopped and started, each party can have multiple segments. See the <strong>Recording Segment Object</strong> structure below.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"recording-segment-object\">Recording Segment Object</h2>\n<p>The <code>recordings</code> array contains one or more Recording Segment Objects.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>duration</td>\n<td>The duration of this specific recording segment, in seconds (returned as a string).</td>\n</tr>\n<tr>\n<td>start_time</td>\n<td>The UTC timestamp for when the recording segment began, in ISO 8601 format.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","port":"tenant_url","path":["configapi","v2","multi_channel_recordings"],"query":[{"description":{"content":"<p><a href=\"https://help.brightpattern.com/5.3:Reporting-reference-guide/GlobalInteractionIdentifier\">Global interaction identifier</a>.</p>\n","type":"text/plain"},"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A"}],"variable":[]}},"response":[{"id":"6e9052fb-7a85-4be7-95f8-fcd8ced306fb","name":"Multichannel recording description for a simple call","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://:tenant_url/configapi/v2/multi_channel_recordings?giid=A44B62DE-75FB-47CD-A103-8F778CD1032A","protocol":"https","port":"tenant_url","path":["configapi","v2","multi_channel_recordings"],"query":[{"key":"giid","value":"A44B62DE-75FB-47CD-A103-8F778CD1032A","description":"[Global interaction identifier](https://help.brightpattern.com/5.2:Reporting-reference-guide/GlobalInteractionIdentifier)."}],"variable":[{"key":"tenant_url","value":"sasha.brightpattern.com","description":"Your contact center domain name, e.g., *example.brightpattern.com*."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0"},{"key":"Date","value":"Fri, 15 Mar 2019 21:22:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"668"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n{\n    \"_id\": \"685a29343a36e54583e5952c\",\n    \"tenant_id\": \"C809D1F5-84C2-447E-AA03-E3D5000BA779\",\n    \"global_interaction_id\": \"6F5D2671-0574-46F8-8417-EB0EA985A751\",\n    \"interaction_id\": \"0FABD496-A231-4411-82BD-C68262862F36\",\n    \"parties\": [\n    {\n        \"first_name\": \"Susan\",\n        \"last_name\": \"Mallorie\",\n        \"party_id\": \"6C631399-D74A-4F6E-AF17-523A286817DA\",\n        \"party_type\": \"USER\",\n        \"phone\": \"1000\",\n        \"recordings\": [\n        {\n            \"duration\": \"37\",\n            \"start_time\": \"2025-06-24T04:26:32.427Z\"\n        }],\n        \"user_id\": \"0EB98877-9517-4CB6-87C3-4A46EF6E6087\"\n    },\n    {\n        \"first_name\": \"Allen\",\n        \"last_name\": \"Hartzell\",\n        \"party_id\": \"AB694080-1C65-4C5D-B893-0FEEE9CBCFDA\",\n        \"party_type\": \"USER\",\n        \"phone\": \"2042\",\n        \"recordings\": [\n        {\n            \"duration\": \"37\",\n            \"start_time\": \"2025-06-24T04:26:32.427Z\"\n        }],\n        \"user_id\": \"390FE1FC-1FBE-43C2-A527-32B39BD63036\"\n    }]\n}]"}],"_postman_id":"64930044-62e3-4e02-82e2-a97433cbac7c"},{"name":"Get Multichannel Recording Segment Audio File","id":"c1afb3f6-202e-49e0-955e-9aa48772d08c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer 4AE7486E2E7BCFB2D977D3829D0781357A7D831D9C92B32ACF5863CDF2C2CC05","type":"text"}],"url":"https://:tenant_url/configapi/v2/multi_channel_recordings/audio?giid=B3178008-47BA-4CAB-B620-CB3C8864BCB6&iid=A274FC70-770E-45B0-AC77-491EF6CD8E05&party=98141181&recid=0","description":"<p>Gets the desired segment of a multichannel recording identified by the GIID, interaction ID, party ID, and optionally the ordinal number of the desired segement. The latter is essential only if according to your practices recording may be stopped and started again while a call is in progress.</p>\n","urlObject":{"protocol":"https","port":"tenant_url","path":["configapi","v2","multi_channel_recordings","audio"],"query":[{"description":{"content":"<p><a href=\"https://help.brightpattern.com/5.3:Reporting-reference-guide/GlobalInteractionIdentifier\">Global interaction identifier</a>. <strong>Letters in the GIID must be in uppercase.</strong></p>\n","type":"text/plain"},"key":"giid","value":"B3178008-47BA-4CAB-B620-CB3C8864BCB6"},{"description":{"content":"<p>Identifier of the interaction for which a recording is being requested. (Returned by the Get Multi-channel Recording Metadata method.) <strong>Letters in the identifier must be in uppercase.</strong></p>\n","type":"text/plain"},"key":"iid","value":"A274FC70-770E-45B0-AC77-491EF6CD8E05"},{"description":{"content":"<p>Identifier of the party whose audio recording is being requested. (Returned by the Get Multi-channel Recording Metadata method.) </p>\n","type":"text/plain"},"key":"party","value":"98141181"},{"description":{"content":"<p>Ordinal number (starting from 0) of the desired recording segment of the above party.   Optional; if not specified, the first segment in the array is returned.</p>\n","type":"text/plain"},"key":"recid","value":"0"}],"variable":[{"description":{"content":"<p>Your contact center domain name, e.g., example.brightpattern.com.</p>\n","type":"text/plain"},"type":"string","value":"","key":"tenant_url"}]}},"response":[],"_postman_id":"c1afb3f6-202e-49e0-955e-9aa48772d08c"}],"id":"508f3a7f-0813-4b6b-99a6-9db8b1901a23","description":"<p>These methods are used to extract individual segments of multichannel call recordings (i.e., recordings where voice of each paricipating party is recorded into a separate audio file).</p>\n<p>The <em>Get Multichannel Recording Structure</em> method should be used first to obtain the Interaction IDs, Party IDs, and optionally segments, to be used in the subsequent <em>Get Multichannel Recording Segment Audio File</em> requests.</p>\n<p>Segments of multichannel recordings are available for export immediately upon call termination. </p>\n<p>Segments of multichannel recordings are exported in uncompressed PCM format for maximun speech quality. Note that because of the large  size of multichannel PCM recording files, they are typically stored in the system for a limited amount of time. Check with your service provider about your limits, and consider overnight export of selected recordings for the previous working day.</p>\n","event":[{"listen":"prerequest","script":{"id":"1540d080-5b84-44c0-b20e-96c1cae68231","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0cee1497-0d59-4190-a62c-1c6416b2faaf","type":"text/javascript","exec":[""]}}],"_postman_id":"508f3a7f-0813-4b6b-99a6-9db8b1901a23"},{"name":"Error Codes","item":[],"id":"cd778b47-9f11-4ca4-9f16-d289a617f18e","description":"<ul>\n<li><p><strong>400 Bad Request</strong> - Indicates that the requested operation cannot be performed either because it violates data integrity rules or not supported by the API. The body of the error message may contain information about a specific element of the request (e.g., a specific object property) that is causing the request to be rejected.</p>\n</li>\n<li><p><strong>401 Authentication Failed</strong></p>\n</li>\n<li><p><strong>403 Not Authorized</strong> - The user is authenticated but does not have sufficient privileges to perform the requested operation.</p>\n</li>\n<li><p><strong>404 Not Found</strong> - For GET methods, indicates that the requested interaction or audio file cannot be found. </p>\n</li>\n<li><p><strong>415 Unsupported Media Type</strong> - The media type is either not specified or specified incorrectly.</p>\n</li>\n<li><p><strong>500 Request Failed</strong> - Incorrect endpoint specification.</p>\n</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"420b721e-6e6c-4db3-a0bb-aeff7bcf51eb","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f4c87bb4-b030-497e-9dd7-e6c9a94cf0de","type":"text/javascript","exec":[""]}}],"_postman_id":"cd778b47-9f11-4ca4-9f16-d289a617f18e"}],"event":[{"listen":"prerequest","script":{"id":"adee3ff1-168a-43c1-9358-b16ce0e2a2ac","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"10fafed6-72ad-4dd2-a7aa-0058be800101","type":"text/javascript","exec":[""]}}]}