Skip to main content

Log Out

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

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

Request Information

Opcion HTTP Valor
Resource /Integra/resources/api/AgentLogoff
Content-Type application/x-www-form-urlencoded
Authorization Basic Token

HTTP



HTTP Request

Request Parameters

Parametro Tipo Requerido Descripción
agent TextoText (String) Si Username to log out
interface TextoText (String) No Phone number/extension of the SIP for the agent
message TextoText (String) No Message to save

Code Examples

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

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