Skip to main content

Log Out

This API is used to log out the agent or user once they are no longer in use.

You can check the Postman Collection to test in your instance.

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/AgentLogoff

Request Header

KeyValue
Content-Type application/x-www-form-urlencoded
Authorization Basic Token

HTTP



HTTP Request

Request ParametersBody

Parameter Type Required Description
agent Text (String) Yes Username to log out
interface Text (String) No Phone number/extension of the SIP for the agent
message Text (String) No Message to save

Code Examples

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

HTTP

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, "agent={{User}}&interface=SIP/{{Extension}}&message={{Mensaje}}");
Request request = new Request.Builder()
  .url("https://{{domain}}.ucontactcloud.com/Integra/resources/api/AgentLogoff")
  .method("POST", body)
  .addHeader("Authorization", "Basic {{Token}}")
  .addHeader("Content-Type", "application/x-www-form-urlencoded")
  .build();
Response response = client.newCall(request).execute();
Python
import http.client

conn = http.client.HTTPSConnection("{{domain}}.ucontactcloud.com")
payload = 'agent={{User}}&interface=SIP/{{Extension}}&message={{Mensaje}}'
headers = {
  'Authorization': 'Basic {{Token}}',
  'Content-Type': 'application/x-www-form-urlencoded'
}
conn.request("POST", "/Integra/resources/api/AgentLogoff", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))



HTTP Response

Successful Response

Error Response

0