Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

AgentLogin

POST

https://instance.ucontactcloud.com/Integra/resources/auth/AgentLogin

Content-Type

application/x-www-form-urlencoded

Parámetros

agent

Nombre del agente

password

Password del agente

...

Code Block
languagejson
{
    "id": 9997,
    "name": "9999",
    "host": "instance.ucontactcloud.com",
    "nat": "yes",
    "type": "friend",
    "accountcode": "Jhon",
    "callgroup": "",
    "callerid": "9999",
    "canreinvite": "",
    "context": "entrantes",
    "dtmfmode": "rfc2833",
    "insecure": "",
    "language": "es",
    "mailbox": "",
    "md5secret": "U2FudGlhZ286NWI3MWRlYmEtZTVlOC00NDBhLWExY2ItZjgxMGU0Zjg5Nzkz",
    "pickupgroup": "",
    "qualify": "yes",
    "secret": "123456",
    "disallow": "all",
    "allow": "alaw;ulaw",
    "port": "",
    "defaultuser": "9999",
    "subscribecontext": "default",
    "record": "agent",
    "email": "",
    "phonetype": "SoftPhone",
    "LogLevel": "SEVERE",
    "limite": 0.0,
    "transport": "wss",
    "encryption": "yes",
    "did": "",
    "outboundproxy": "",
    "fullname": "John Doe"
}

AgentLogoff

POST

https://instance.ucontactcloud.com/Integra/resources/api/AgentLogoff

Content-Type

application/x-www-form-urlencoded

Parámetros

agent

Nombre del agente

interface

Callerid del agente. Esto se obtiene en el AgentLogin

message

Mensaje opcional. El mensaje quedará guardado en la tabla queue_log_repo

Headers

Authentication

Basic md5secret

...

Code Block
languagebash
curl --location --request POST 'https://instance.ucontactcloud.com/Integra/resources/api/AgentLogoff' \
--header 'Authorization: Basic U2FudGlhZ286NTA5NTY3MzItYjU5ZC00MDhjLThmZmUtM2I1MDc3ZDg3Y2Zi' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'agent=Jhon' \
--data-urlencode 'interface=9999' \
--data-urlencode 'message=Test'

HangupPhone

POST

https://instance.ucontactcloud.com/Integra/resources/Agents/HangupPhone

Content-Type

application/x-www-form-urlencoded

Parámetros

phone

Callerid del agente. Esto se obtiene en el AgentLogin

Headers

Authentication

Basic md5secret

...

8c78e1e1-5875-4ae7-a7ae-e3af3baeecdf

Transfer

POST

https://instance.ucontactcloud.com/Integra/resources/Agents/Transfer

Content-Type

application/x-www-form-urlencoded

Parámetros

channel

Canal de origen de la llamada

context

Contexto a transferir

exten

Extensión a transferir

Headers

Authentication

Basic md5secret

...