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 Information

HTTP OptionMethod ValueResource
ResourcePOST Integra/resources/api/DispositionCall
MothodPOST

Request Header Request

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

ParametersRequest 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
No Level 2 disposition

l3


Text
No Level 3 disposition

d1


Text
No Extra data to save

d2


Text
No Extra data to save

comment


Text
No Comment for the disposition

schedule


Text
No Date and time to schedule the call in the format AAAA-MM-DD HH:MI:SS

camptoreschedule


Text
No Dialer to schedule the call

tag


Text
No Text for disposition tag or empty

HTTP Request

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"