Skip to main content

Call Disposition

When a call is ended in uContact, a disposition can be added to identify how the call concluded, allowing for reporting or creating actions based on the disposition.

All data enclosed in "{{ }}" are values that will be replaced with the client's own data and/or the corresponding instance.


HTTP Request

Method Resource
POST Integra/resources/api/DispositionCall

Request Header

Key Value
Content-Type application/x-www-form-urlencoded
Authorization Basic {{Token}}

Request Body

Parameter Type Required Description

campaign

Text Yes Name of the campaign

agent

Text Yes Agent's username

callerid

Text Yes Phone number of the contact

guid

Text Yes Unique call identifier

l1

Text Yes Level 1 disposition

l2

Text Yes Level 2 disposition (Can be empty)

l3

Text Yes Level 3 disposition (Can be empty)

d1

Text Yes Extra data to save (Can be empty)

d2

Text Yes Extra data to save (Can be empty)

comment

Text Yes Comment for the disposition (Can be empty)

schedule

Text Yes Date and time to schedule the call in the format AAAA-MM-DD HH:MI:SS (Can be empty)

camptoreschedule

Text Yes Dialer to schedule the call (Can be empty)

tag

Text Yes Text for disposition tag or empty (Can be empty)

Code Examples

You can copy the following code examples and replace the "{{variable}}" with the correct data.

HTTP
POST /Integra/resources/api/DispositionCall HTTP/1.1
Host: {{Instancia}}.ucontactcloud.com
Content-Type: application/x-www-form-urlencoded
Authorization: Basic {{Token}}
Content-Length: 173

campaign=campana-%3E&agent=Vcisneros&callerid=1234567890&guid=f9b7ada3-a4e5-4795-834d-aa1c1a37ee57&l1=Tipificacion1&l2=&l3=&d2=&d2=&comment=&schedule=&camptoreschedule=&tag=
cURL
JavaScript
JQuery
C#
Java
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "campaign=campana->&agent=Vcisneros&callerid=1234567890&guid=f9b7ada3-a4e5-4795-834d-aa1c1a37ee57&l1=Tipificacion1&l2=&l3=&d2=&d2=&comment=&schedule=&camptoreschedule=&tag=");
Request request = new Request.Builder()
  .url("https://{{Instancia}}.ucontactcloud.com/Integra/resources/api/DispositionCall")
  .method("POST", body)
  .addHeader("Content-Type", "application/x-www-form-urlencoded")
  .addHeader("Authorization", "Basic {{Token}}")
  .build();
Response response = client.newCall(request).execute();
Python
import http.client

conn = http.client.HTTPSConnection("{{Instancia}}.ucontactcloud.com")
payload = 'campaign=campana-%3E&agent=Vcisneros&callerid=1234567890&guid=f9b7ada3-a4e5-4795-834d-aa1c1a37ee57&l1=Tipificacion1&l2=&l3=&d2=&d2=&comment=&schedule=&camptoreschedule=&tag='
headers = {
  'Content-Type': 'application/x-www-form-urlencoded',
  'Authorization': 'Basic {{Token}}'
}
conn.request("POST", "/Integra/resources/api/DispositionCall", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))



HTTP Response

Successful Response

Error Response

"0"