MENU navbar-image

Introducción

Este API contiene la lógica de negocio que se encarga de alimentar el sistema de Atención Profesional de Cyberfuel S.A. Los usuarios de consumo no deberán ser de uso compartido y deberá mantenerse una segmentación en su uso, único y exclusivo para el fin que fueron brindados.

Este API contiene la lógica de negocio que se encarga de alimentar el sistema de Atención Profesional de Cyberfuel S.A. 

Los usuarios de consumo no deberán ser de uso compartido y deberá mantenerse una segmentación en su uso, único y exclusivo para el fin que fueron brindados. 

El acceso no autorizado a este API es prohibido. 

Autenticación de Solicitudes

Para autenticar sus solicitudes, incluya los siguientes headers con las credenciales asignadas al proyecto o desarrollador: X-User-Consumo y X-User-Secret.

Todos los endpoints autenticados están marcados con una insignia de requiere autenticación en la documentación.

Si requiere acceso desde otro proyecto distinto al API de Atención Profesional, favor solicitar un nuevo acceso vía correo electrónico al mail: jmora@cyberfuel.com

Departamentos SuperAdmin

Listar Departamentos

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/departments/list';
$response = $client->post(
    $url,
    [
        'headers' => [
            'X-User-Consumo' => 'string required Identificador del consumidor.',
            'X-User-Secret' => 'string required Clave secreta del consumidor.',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'paginate' => 'N',
            'page' => 75,
            'quantity_x_page' => 14,
            'filters' => [
                'name' => 'jgu',
                'id_company' => 10,
                'hour' => 'yabowim',
            ],
            'nombre_param1' => 'factura_profesional',
            'nombre_param2' => 'activo',
            'nombre_param3' => 'S',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/departments/list"
);

const headers = {
    "X-User-Consumo": "string required Identificador del consumidor.",
    "X-User-Secret": "string required Clave secreta del consumidor.",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "paginate": "N",
    "page": 75,
    "quantity_x_page": 14,
    "filters": {
        "name": "jgu",
        "id_company": 10,
        "hour": "yabowim"
    },
    "nombre_param1": "factura_profesional",
    "nombre_param2": "activo",
    "nombre_param3": "S"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": {
        "alias_sistema": "Local1",
        "message": "Registro creado correctamente.",
        "token_generado": "<string del token generado para consumo del SSO>"
    },
    "status": "ok",
    "message": "Registro creado correctamente.",
    "code": 200,
    "id_bitacora_log": 736014
}
 

Example response (422):


{
    "data": {
        "alias_sistema": "Local1",
        "message": "Registro creado correctamente.",
        "token_generado": "<string del token generado para consumo del SSO>"
    },
    "status": "ok",
    "message": "Registro creado correctamente.",
    "code": 200,
    "id_bitacora_log": 736014
}
 

Request   

POST api/admin/departments/list

Headers

X-User-Consumo      

Example: string required Identificador del consumidor.

X-User-Secret      

Example: string required Clave secreta del consumidor.

Content-Type      

Example: application/json

Body Parameters

paginate   string  optional  

Example: N

Must be one of:
  • S
  • N
page   integer  optional  

Must be at least 1. Example: 75

quantity_x_page   integer  optional  

This field is required when paginate is S. Must be at least 1. Must not be greater than 100. Example: 14

filters   object  optional  
name   string  optional  

Must not be greater than 100 characters. Example: jgu

id_company   integer  optional  

The id of an existing record in the company table. Example: 10

hour   string  optional  

Must not be greater than 50 characters. Example: yabowim

nombre_param1   string   

alias del sistema a integrar. Example: factura_profesional

nombre_param2   estado  optional  

del registro a crear, activo o inactivo. Example: activo

nombre_param3   string  optional  

Opcional, Se define para actualizar o no el token de acceso de un registro existente S,N. Example: S

Endpoints sin agrupar

POST api/correo/getConfigCorreos

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/correo/getConfigCorreos';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/correo/getConfigCorreos"
);

fetch(url, {
    method: "POST",
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/correo/getConfigCorreos

Lista los clientes con filtros y paginación.

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/clients/list';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'paginate' => 'N',
            'page' => 66,
            'quantity_x_page' => 16,
            'filters' => [
                'name' => 'accusantium',
                'email' => 'minnie.leannon@example.net',
                'token' => 'consectetur',
                'plan' => 'aspernatur',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/clients/list"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "paginate": "N",
    "page": 66,
    "quantity_x_page": 16,
    "filters": {
        "name": "accusantium",
        "email": "minnie.leannon@example.net",
        "token": "consectetur",
        "plan": "aspernatur"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/admin/clients/list

Headers

Content-Type      

Example: application/json

Body Parameters

paginate   string  optional  

Example: N

Must be one of:
  • S
  • N
page   integer  optional  

Must be at least 1. Example: 66

quantity_x_page   integer  optional  

Must be at least 1. Must not be greater than 100. Example: 16

filters   object  optional  
name   string  optional  

Example: accusantium

email   string  optional  

Example: minnie.leannon@example.net

token   string  optional  

Example: consectetur

plan   string  optional  

Example: aspernatur

crea un nuevo cliente

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/clients/store';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'cdslrhop',
            'email' => 'crist.kenna@example.com',
            'id_plan' => 18,
            'balance' => 21.2949,
            'pay_day' => '2025-11-18T14:59:45',
            'user_name' => 'siojeobxgt',
            'user_email' => 'kthiel@example.org',
            'password' => '~OLfin`~L,4-_xe',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/clients/store"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "cdslrhop",
    "email": "crist.kenna@example.com",
    "id_plan": 18,
    "balance": 21.2949,
    "pay_day": "2025-11-18T14:59:45",
    "user_name": "siojeobxgt",
    "user_email": "kthiel@example.org",
    "password": "~OLfin`~L,4-_xe"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/admin/clients/store

Headers

Content-Type      

Example: application/json

Body Parameters

name   string   

Must not be greater than 191 characters. Example: cdslrhop

email   string   

Must be a valid email address. Must not be greater than 191 characters. Example: crist.kenna@example.com

id_plan   integer   

The id_plan of an existing record in the plans table. Example: 18

balance   number   

Example: 21.2949

pay_day   string   

Must be a valid date. Example: 2025-11-18T14:59:45

user_name   string   

Must not be greater than 191 characters. Example: siojeobxgt

user_email   string   

Must be a valid email address. Must not be greater than 191 characters. Example: kthiel@example.org

password   string   

Must be at least 8 characters. Example: ~OLfin~L,4-_xe`

PUT/PATCH: Actualiza datos del cliente

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/clients/update';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => 15,
            'name' => 'uumabkguocbthpfdonlsma',
            'email' => 'dare.dwight@example.net',
            'balance' => 3280.300161385,
            'pay_day' => '2025-11-18',
            'id_plan' => 20,
            'api' => '0',
            'messenger' => '1',
            'telegram' => '0',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/clients/update"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 15,
    "name": "uumabkguocbthpfdonlsma",
    "email": "dare.dwight@example.net",
    "balance": 3280.300161385,
    "pay_day": "2025-11-18",
    "id_plan": 20,
    "api": "0",
    "messenger": "1",
    "telegram": "0"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

PATCH api/admin/clients/update

Headers

Content-Type      

Example: application/json

Body Parameters

id   integer   

The id of an existing record in the company table. Example: 15

name   string   

Must match the regex /^[\pL\pN\s.-_'&]+$/u. Must be at least 1 character. Must not be greater than 255 characters. Example: uumabkguocbthpfdonlsma

email   string   

Must be a valid email address. Must not be greater than 255 characters. Example: dare.dwight@example.net

balance   number   

Example: 3280.300161385

pay_day   string   

Must be a valid date in the format Y-m-d. Example: 2025-11-18

id_plan   integer   

The id_plan of an existing record in the plans table. Example: 20

api   integer   

Example: 0

Must be one of:
  • 0
  • 1
messenger   integer   

Example: 1

Must be one of:
  • 0
  • 1
telegram   integer   

Example: 0

Must be one of:
  • 0
  • 1

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/clients/search';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_company' => 2,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/clients/search"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_company": 2
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Endpoint: Listar canales por empresa con filtros y paginación.

requires authentication

Orquesta: Request (validación) -> Service (ResponseFormat)

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/channels/list';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_company' => 13,
            'paginate' => 'N',
            'page' => 31,
            'quantity_x_page' => 23,
            'filters' => [
                'name' => 'est',
                'type' => 'itaque',
                'uuid' => '84baa15c-772e-3388-a1e2-dffb735192bf',
                'app_id' => 'nihil',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/channels/list"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_company": 13,
    "paginate": "N",
    "page": 31,
    "quantity_x_page": 23,
    "filters": {
        "name": "est",
        "type": "itaque",
        "uuid": "84baa15c-772e-3388-a1e2-dffb735192bf",
        "app_id": "nihil"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/admin/channels/list

Headers

Content-Type      

Example: application/json

Body Parameters

id_company   integer   

The id of an existing record in the company table. Example: 13

paginate   string  optional  

Example: N

Must be one of:
  • S
  • N
page   integer  optional  

Must be at least 1. Example: 31

quantity_x_page   integer  optional  

Must be at least 1. Must not be greater than 100. Example: 23

filters   object  optional  
name   string  optional  

Example: est

type   string  optional  

Example: itaque

uuid   string  optional  

Example: 84baa15c-772e-3388-a1e2-dffb735192bf

app_id   string  optional  

Example: nihil

Crear un nuevo canal.

requires authentication

Orquesta: Request (validación) -> Service (ResponseFormat)

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/channels/store';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_company' => 19,
            'name' => 'cjfklksjfyyboawzfdo',
            'app' => 'txcw',
            'type' => 'ruhplikypodext',
            'token' => 'stad',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/channels/store"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_company": 19,
    "name": "cjfklksjfyyboawzfdo",
    "app": "txcw",
    "type": "ruhplikypodext",
    "token": "stad"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/admin/channels/store

Headers

Content-Type      

Example: application/json

Body Parameters

id_company   integer   

The id of an existing record in the company table. Example: 19

name   string   

Must not be greater than 100 characters. Example: cjfklksjfyyboawzfdo

app   string   

Must not be greater than 100 characters. Example: txcw

type   string   

Must not be greater than 50 characters. Example: ruhplikypodext

Must be one of:
  • instagram
  • messenger
  • telegram
  • webchat
  • whatsapp
  • whatsappfb
token   string  optional  

This field is required unless type is in telegram. Must not be greater than 500 characters. Example: stad

PATCH api/admin/channels/update

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/channels/update';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_channel' => 13,
            'id_company' => 8,
            'name' => 'tfegjvoilqrnqnjrz',
            'app' => 'ngvgcjfddw',
            'type' => 'whatsappfb',
            'token' => 'ifhwatylsgkt',
            'secret_key' => 'rjqzjappxtoc',
            'additional_app_id' => 'pbzluury',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/channels/update"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_channel": 13,
    "id_company": 8,
    "name": "tfegjvoilqrnqnjrz",
    "app": "ngvgcjfddw",
    "type": "whatsappfb",
    "token": "ifhwatylsgkt",
    "secret_key": "rjqzjappxtoc",
    "additional_app_id": "pbzluury"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

PATCH api/admin/channels/update

Headers

Content-Type      

Example: application/json

Body Parameters

id_channel   integer   

The id_channel of an existing record in the channels table. Example: 13

id_company   integer   

The id of an existing record in the company table. Example: 8

name   string  optional  

Must not be greater than 100 characters. Example: tfegjvoilqrnqnjrz

app   string  optional  

Must not be greater than 100 characters. Example: ngvgcjfddw

type   string  optional  

Example: whatsappfb

Must be one of:
  • instagram
  • messenger
  • telegram
  • webchat
  • whatsapp
  • whatsappfb
token   string  optional  

Must not be greater than 500 characters. Example: ifhwatylsgkt

secret_key   string  optional  

Must not be greater than 255 characters. Example: rjqzjappxtoc

additional_app_id   string  optional  

Must not be greater than 100 characters. Example: pbzluury

GET api/admin/channels/show

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/channels/show';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_company' => 88,
            'id_channel' => 53,
            'type_channel' => 'webchat',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/channels/show"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_company": 88,
    "id_channel": 53,
    "type_channel": "webchat"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

GET api/admin/channels/show

Headers

Content-Type      

Example: application/json

Body Parameters

id_company   integer   

Must be at least 1. Example: 88

id_channel   integer   

Must be at least 1. Example: 53

type_channel   string   

Example: webchat

Must be one of:
  • instagram
  • messenger
  • telegram
  • webchat
  • whatsapp
  • whatsappfb

PATCH api/admin/channels/update-status

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/channels/update-status';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_channel' => 5,
            'channel_status' => '0',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/channels/update-status"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_channel": 5,
    "channel_status": "0"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

PATCH api/admin/channels/update-status

Headers

Content-Type      

Example: application/json

Body Parameters

id_channel   integer   

The id_channel of an existing record in the channels table. Example: 5

channel_status   integer   

Example: 0

Must be one of:
  • 0
  • 1

Listar planes con filtros y paginación.

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/plans/list';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'paginate' => 'N',
            'page' => 45,
            'quantity_x_page' => 4,
            'filters' => [
                'name' => 'skmaaewzdawrzsmitdtuh',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/plans/list"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "paginate": "N",
    "page": 45,
    "quantity_x_page": 4,
    "filters": {
        "name": "skmaaewzdawrzsmitdtuh"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/admin/plans/list

Headers

Content-Type      

Example: application/json

Body Parameters

paginate   string  optional  

Example: N

Must be one of:
  • S
  • N
page   integer  optional  

Must be at least 1. Example: 45

quantity_x_page   integer  optional  

Must be at least 1. Must not be greater than 100. Example: 4

filters   object  optional  
name   string  optional  

Must not be greater than 100 characters. Example: skmaaewzdawrzsmitdtuh

POST api/admin/plans/store

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/plans/store';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'zwavkpqhwmj',
            'total_dau' => 72,
            'price_additional_dau' => 37,
            'no_dau' => 89,
            'plan_price' => 40,
            'price_api' => 8,
            'price_messenger' => 25,
            'price_telegram' => 15,
            'max_users' => 47,
            'price_chatbot' => 71,
            'price_whatsapp' => 53,
            'price_agent' => 53,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/plans/store"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "zwavkpqhwmj",
    "total_dau": 72,
    "price_additional_dau": 37,
    "no_dau": 89,
    "plan_price": 40,
    "price_api": 8,
    "price_messenger": 25,
    "price_telegram": 15,
    "max_users": 47,
    "price_chatbot": 71,
    "price_whatsapp": 53,
    "price_agent": 53
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/admin/plans/store

Headers

Content-Type      

Example: application/json

Body Parameters

name   string   

Must be at least 3 characters. Must not be greater than 100 characters. Example: zwavkpqhwmj

total_dau   number   

Must be at least 0. Example: 72

price_additional_dau   number   

Must be at least 0. Example: 37

no_dau   number   

Must be at least 0. Example: 89

plan_price   number   

Must be at least 0. Example: 40

price_api   integer   

Must be at least 0. Example: 8

price_messenger   integer   

Must be at least 0. Example: 25

price_telegram   integer   

Must be at least 0. Example: 15

max_users   integer   

Must be at least 0. Example: 47

price_chatbot   integer  optional  

Must be at least 0. Example: 71

price_whatsapp   integer  optional  

Must be at least 0. Example: 53

price_agent   integer  optional  

Must be at least 0. Example: 53

PATCH api/admin/plans/update-status

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/plans/update-status';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_plan' => 3,
            'state' => '0',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/plans/update-status"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_plan": 3,
    "state": "0"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

PATCH api/admin/plans/update-status

Headers

Content-Type      

Example: application/json

Body Parameters

id_plan   integer   

The id_plan of an existing record in the plans table. Example: 3

state   integer   

Example: 0

Must be one of:
  • 0
  • 1

POST api/admin/departments/store

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/departments/store';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'company' => 9,
            'department_name' => 'rsemuevtqke',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/departments/store"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company": 9,
    "department_name": "rsemuevtqke"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/admin/departments/store

Headers

Content-Type      

Example: application/json

Body Parameters

company   integer   

The id of an existing record in the company table. Example: 9

department_name   string   

Must match the regex /^[\pL\pN\s-_.()áéíóúÁÉÍÓÚñÑüÜ]+$/u. Must be at least 5 characters. Must not be greater than 100 characters. Example: rsemuevtqke

hour   string  optional  

PATCH api/admin/departments/update

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/departments/update';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_department' => 18,
            'department_name' => 'prhicqkkbcm',
            'hour' => [
                'lunes_apertura' => ':19|20):32',
                'martes_apertura' => '22:14',
                'miercoles_apertura' => ':16:06',
                'jueves_apertura' => ':08|20):55',
                'viernes_apertura' => ':06|20):40',
                'sabado_apertura' => '22:53',
                'domingo_apertura' => ':16|22):54',
                'lunes_cierre' => ':17|21):38',
                'martes_cierre' => '20:57',
                'miercoles_cierre' => ':02|23):56',
                'jueves_cierre' => '23:29',
                'viernes_cierre' => ':07:53',
                'sabado_cierre' => '23:38',
                'domingo_cierre' => ':07|20):54',
                'defecto' => 'kyvtapggyowrugzavlqpxr',
                'email' => 'buford73@example.org',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/departments/update"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_department": 18,
    "department_name": "prhicqkkbcm",
    "hour": {
        "lunes_apertura": ":19|20):32",
        "martes_apertura": "22:14",
        "miercoles_apertura": ":16:06",
        "jueves_apertura": ":08|20):55",
        "viernes_apertura": ":06|20):40",
        "sabado_apertura": "22:53",
        "domingo_apertura": ":16|22):54",
        "lunes_cierre": ":17|21):38",
        "martes_cierre": "20:57",
        "miercoles_cierre": ":02|23):56",
        "jueves_cierre": "23:29",
        "viernes_cierre": ":07:53",
        "sabado_cierre": "23:38",
        "domingo_cierre": ":07|20):54",
        "defecto": "kyvtapggyowrugzavlqpxr",
        "email": "buford73@example.org"
    }
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

PATCH api/admin/departments/update

Headers

Content-Type      

Example: application/json

Body Parameters

id_department   integer   

The id_department of an existing record in the departments table. Example: 18

company   string  optional  
department_name   string  optional  

This field is required when none of hour are present. Must be at least 2 characters. Must not be greater than 100 characters. Example: prhicqkkbcm

hour   object  optional  

This field is required when none of department_name are present.

lunes_apertura   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: :19|20):32

martes_apertura   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: 22:14

miercoles_apertura   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: :16:06

jueves_apertura   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: :08|20):55

viernes_apertura   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: :06|20):40

sabado_apertura   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: 22:53

domingo_apertura   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: :16|22):54

lunes_cierre   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: :17|21):38

martes_cierre   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: 20:57

miercoles_cierre   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: :02|23):56

jueves_cierre   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: 23:29

viernes_cierre   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: :07:53

sabado_cierre   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: 23:38

domingo_cierre   string  optional  

Must match the regex /^(?:[01]\d|2[0-3]):[0-5]\d$/. Example: :07|20):54

defecto   string  optional  

Must not be greater than 255 characters. Example: kyvtapggyowrugzavlqpxr

email   string  optional  

Must be a valid email address. Example: buford73@example.org

PATCH api/admin/departments/update-status

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/departments/update-status';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_department' => 14,
            'status' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/departments/update-status"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_department": 14,
    "status": "1"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

PATCH api/admin/departments/update-status

Headers

Content-Type      

Example: application/json

Body Parameters

id_department   integer   

The id_department of an existing record in the departments table. Example: 14

status   integer   

Example: 1

Must be one of:
  • 0
  • 1

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/departments/search';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_department' => 14,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/departments/search"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_department": 14
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

POST api/admin/faqs/list

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/faqs/list';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'paginate' => 'N',
            'page' => 42,
            'quantity_x_page' => 39,
            'filters' => [
                'replay' => 'alias',
                'company' => 63,
                'department' => 'porro',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/faqs/list"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "paginate": "N",
    "page": 42,
    "quantity_x_page": 39,
    "filters": {
        "replay": "alias",
        "company": 63,
        "department": "porro"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/admin/faqs/list

Headers

Content-Type      

Example: application/json

Body Parameters

paginate   string  optional  

Example: N

Must be one of:
  • S
  • N
page   integer  optional  

Must be at least 1. Example: 42

quantity_x_page   integer  optional  

Must be at least 1. Example: 39

filters   object  optional  
replay   string  optional  

Example: alias

company   integer  optional  

Must be at least 0. Example: 63

department   string  optional  

Example: porro

POST api/admin/faqs/store

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/faqs/store';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'company' => 11,
            'replay' => 'duwgirhtncdwykijukxvtbhoojmmkcnnvzygzbaclzunxmmnltpikwbf',
            'departament' => [
                '3268',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/faqs/store"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "company": 11,
    "replay": "duwgirhtncdwykijukxvtbhoojmmkcnnvzygzbaclzunxmmnltpikwbf",
    "departament": [
        "3268"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/admin/faqs/store

Headers

Content-Type      

Example: application/json

Body Parameters

company   integer   

The id of an existing record in the company table. Example: 11

replay   string   

Must be at least 1 character. Example: duwgirhtncdwykijukxvtbhoojmmkcnnvzygzbaclzunxmmnltpikwbf

departament   string[]   

Must match the regex /^\d+$/.

PATCH api/admin/faqs/update

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/faqs/update';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_faq' => 65,
            'replay' => 'hnutvqwpgrpnazs',
            'department' => [
                '5',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/faqs/update"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_faq": 65,
    "replay": "hnutvqwpgrpnazs",
    "department": [
        "5"
    ]
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

PATCH api/admin/faqs/update

Headers

Content-Type      

Example: application/json

Body Parameters

id_faq   integer   

The id_faq of an existing record in the faq table. Must be at least 1. Example: 65

replay   string  optional  

Must not be greater than 10000 characters. Example: hnutvqwpgrpnazs

department   string[]  optional  

Must match the regex /^\d+$/.

PATCH api/admin/faqs/update-status

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/faqs/update-status';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_faq' => 46,
            'status' => '0',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/faqs/update-status"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_faq": 46,
    "status": "0"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

PATCH api/admin/faqs/update-status

Headers

Content-Type      

Example: application/json

Body Parameters

id_faq   integer   

The id_faq of an existing record in the faq table. Must be at least 1. Example: 46

status   integer   

Example: 0

Must be one of:
  • 0
  • 1

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/admin/faqs/search';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_faq' => 32,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/admin/faqs/search"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_faq": 32
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Display a listing of the resource.

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/deptos/index';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'page' => 'S',
            'quantity_x_page' => 15,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/deptos/index"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page": "S",
    "quantity_x_page": 15
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/deptos/index

Headers

Content-Type      

Example: application/json

Body Parameters

page   string   

Example: S

Must be one of:
  • N
  • S
filters   object  optional  
quantity_x_page   integer  optional  

Example: 15

GET api/deptos/show/{id}

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/deptos/show/voluptatibus';
$response = $client->get($url);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/deptos/show/voluptatibus"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

GET api/deptos/show/{id}

URL Parameters

id   string   

The ID of the show. Example: voluptatibus

Crea un nuevo usuario.

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/users/store';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'multipart/form-data',
        ],
        'multipart' => [
            [
                'name' => 'name',
                'contents' => 'pzvtucygialobyghrmkmf'
            ],
            [
                'name' => 'code',
                'contents' => 'xekgumuubwkohcwoquxzp'
            ],
            [
                'name' => 'email',
                'contents' => 'angelina.beahan@example.org'
            ],
            [
                'name' => 'phone',
                'contents' => 'mwzowskgxijjanhaabyat'
            ],
            [
                'name' => 'type',
                'contents' => '2'
            ],
            [
                'name' => 'password',
                'contents' => '&"g7BOOw9,bec'
            ],
            [
                'name' => 'password_confirmation',
                'contents' => 'accusamus'
            ],
            [
                'name' => 'company',
                'contents' => '19'
            ],
            [
                'name' => 'department',
                'contents' => '17'
            ],
            [
                'name' => 'state',
                'contents' => '1'
            ],
            [
                'name' => 'pic',
                'contents' => fopen('/tmp/phpqou4ad0tq6gd6gVtRay', 'r')
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/users/store"
);

const headers = {
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
};

const body = new FormData();
body.append('name', 'pzvtucygialobyghrmkmf');
body.append('code', 'xekgumuubwkohcwoquxzp');
body.append('email', 'angelina.beahan@example.org');
body.append('phone', 'mwzowskgxijjanhaabyat');
body.append('type', '2');
body.append('password', '&"g7BOOw9,bec');
body.append('password_confirmation', 'accusamus');
body.append('company', '19');
body.append('department', '17');
body.append('state', '1');
body.append('pic', document.querySelector('input[name="pic"]').files[0]);

fetch(url, {
    method: "POST",
    headers,
    body,
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/users/store

Headers

Content-Type      

Example: multipart/form-data

Body Parameters

name   string   

Must not be greater than 191 characters. Example: pzvtucygialobyghrmkmf

code   string  optional  

Must not be greater than 50 characters. Example: xekgumuubwkohcwoquxzp

email   string   

Must be a valid email address. Must not be greater than 191 characters. Example: angelina.beahan@example.org

phone   string  optional  

Must not be greater than 30 characters. Example: mwzowskgxijjanhaabyat

type   string   

Example: 2

Must be one of:
  • 1
  • 2
  • 3
password   string   

Must be at least 8 characters. Example: &"g7BOOw9,bec

password_confirmation   string   

The value and password must match. Example: accusamus

pic   file  optional  

Must be a file. Must be an image. Must not be greater than 2048 kilobytes. Example: /tmp/phpqou4ad0tq6gd6gVtRay

company   integer   

The id of an existing record in the company table. Example: 19

department   integer   

The id_department of an existing record in the departments table. Example: 17

state   string  optional  

Example: 1

Must be one of:
  • 0
  • 1

Lista los usuarios con filtros y paginación.

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/users/list';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'paginate' => 'S',
            'page' => 18,
            'quantity_x_page' => 3,
            'filters' => [
                'name' => 'sed',
                'email' => 'ernser.stevie@example.com',
                'id_company' => 44,
                'company_name' => 'aliquam',
                'type_user' => '1',
                'phone' => 'quae',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/users/list"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "paginate": "S",
    "page": 18,
    "quantity_x_page": 3,
    "filters": {
        "name": "sed",
        "email": "ernser.stevie@example.com",
        "id_company": 44,
        "company_name": "aliquam",
        "type_user": "1",
        "phone": "quae"
    }
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/users/list

Headers

Content-Type      

Example: application/json

Body Parameters

paginate   string  optional  

Example: S

Must be one of:
  • S
  • N
page   integer  optional  

Must be at least 1. Example: 18

quantity_x_page   integer  optional  

Must be at least 1. Must not be greater than 100. Example: 3

filters   object  optional  
name   string  optional  

Example: sed

email   string  optional  

Example: ernser.stevie@example.com

id_company   integer  optional  

Must be at least 1. Example: 44

company_name   string  optional  

Example: aliquam

type_user   string  optional  

Example: 1

Must be one of:
  • 1
  • 2
  • 3
phone   string  optional  

Example: quae

Muestra detalle de un usuario por id.

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/users/show/voluptas';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_user' => 39,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/users/show/voluptas"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_user": 39
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

GET api/users/show/{id}

Headers

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the show. Example: voluptas

Body Parameters

id_user   integer   

The id of an existing record in the users table. Must be at least 1. Example: 39

PUT/PATCH: Actualiza datos del usuario.

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/users/update/quo';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => 3,
            'code' => 'ijypsfuupmalxfffnqzt',
            'name' => 'est',
            'email' => 'chartmann@example.net',
            'phone' => 'wvxdbkuamxvgsxpqsoke',
            'type' => '3',
            'online' => 15,
            'state' => false,
            'company' => 7,
            'department' => 11,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/users/update/quo"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 3,
    "code": "ijypsfuupmalxfffnqzt",
    "name": "est",
    "email": "chartmann@example.net",
    "phone": "wvxdbkuamxvgsxpqsoke",
    "type": "3",
    "online": 15,
    "state": false,
    "company": 7,
    "department": 11
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

PATCH api/users/update/{id}

Headers

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the update. Example: quo

Body Parameters

id   integer   

The id of an existing record in the users table. Example: 3

code   string  optional  

Must not be greater than 50 characters. Example: ijypsfuupmalxfffnqzt

name   string  optional  

Example: est

email   string  optional  

Must be a valid email address. Must not be greater than 255 characters. Example: chartmann@example.net

phone   string  optional  

Must not be greater than 30 characters. Example: wvxdbkuamxvgsxpqsoke

password   string  optional  
password_confirmation   string  optional  

This field is required when password is present. The value and password must match.

type   string  optional  

Example: 3

Must be one of:
  • 1
  • 2
  • 3
online   integer  optional  

Example: 15

state   boolean  optional  

Example: false

company   integer  optional  

The id of an existing record in the company table. Example: 7

department   integer  optional  

The id_department of an existing record in the departments table. Example: 11

GET api/users/analizeUsersCompany

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/users/analizeUsersCompany';
$response = $client->get($url);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/users/analizeUsersCompany"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

GET api/users/analizeUsersCompany

PATCH api/users/status/{id?}

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/users/status/natus';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id_user' => 2,
            'status' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/users/status/natus"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_user": 2,
    "status": "1"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

PATCH api/users/status/{id?}

Headers

Content-Type      

Example: application/json

URL Parameters

id   string  optional  

The ID of the . Example: natus

Body Parameters

id_user   integer   

The id of an existing record in the users table. Example: 2

status   integer   

Example: 1

Must be one of:
  • 0
  • 1

PATCH api/users/uploadUserPic/{id}

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/users/uploadUserPic/qui';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => 38,
            'pic' => 'odio',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/users/uploadUserPic/qui"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 38,
    "pic": "odio"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

PATCH api/users/uploadUserPic/{id}

Headers

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the uploadUserPic. Example: qui

Body Parameters

id   integer   

The id of an existing record in the users table. Must be at least 1. Example: 38

pic   string   

Example: odio

GET api/users/showUserPic/{id}

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/users/showUserPic/veniam';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => 76,
            'mode' => 'meta',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/users/showUserPic/veniam"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 76,
    "mode": "meta"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

GET api/users/showUserPic/{id}

Headers

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the showUserPic. Example: veniam

Body Parameters

id   integer   

The id of an existing record in the users table. Must be at least 1. Example: 76

mode   string  optional  

Example: meta

Must be one of:
  • binary
  • url
  • meta

DELETE api/users/deleteUserPic/{id}

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/users/deleteUserPic/aliquid';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => 80,
            'force' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/users/deleteUserPic/aliquid"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id": 80,
    "force": false
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

DELETE api/users/deleteUserPic/{id}

Headers

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the deleteUserPic. Example: aliquid

Body Parameters

id   integer   

The id of an existing record in the users table. Must be at least 1. Example: 80

force   boolean  optional  

Example: false

POST api/auth/login

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/auth/login';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => 'bettye91@example.org',
            'password' => '1deaZOV',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/auth/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "bettye91@example.org",
    "password": "1deaZOV"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/auth/login

Headers

Content-Type      

Example: application/json

Body Parameters

email   string   

Must be a valid email address. Must not be greater than 255 characters. Example: bettye91@example.org

password   string   

Example: 1deaZOV

GET api/auth/getRequestUserData

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/auth/getRequestUserData';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'include' => 'pic_url',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/auth/getRequestUserData"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "include": "pic_url"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

GET api/auth/getRequestUserData

Headers

Content-Type      

Example: application/json

Body Parameters

include   string  optional  

Example: pic_url

Must be one of:
  • pic_url

GET api/auth/refreshUserToken

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/auth/refreshUserToken';
$response = $client->get($url);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/auth/refreshUserToken"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

GET api/auth/refreshUserToken

DELETE api/auth/logout

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/auth/logout';
$response = $client->delete($url);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/auth/logout"
);

fetch(url, {
    method: "DELETE",
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

DELETE api/auth/logout

POST api/guest/store

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/guest/store';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'sed',
            'email' => 'stehr.gerhard@example.org',
            'phone' => 'enim',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/guest/store"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "sed",
    "email": "stehr.gerhard@example.org",
    "phone": "enim"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/guest/store

Headers

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: sed

email   string  optional  

Must be a valid email address. Must not be greater than 255 characters. Example: stehr.gerhard@example.org

phone   string   

Example: enim

GET api/guest/get_token_by_phone/{phone}

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/guest/get_token_by_phone/recusandae';
$response = $client->get($url);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/guest/get_token_by_phone/recusandae"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

GET api/guest/get_token_by_phone/{phone}

URL Parameters

phone   string   

Example: recusandae

POST api/broadcast/public-message

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/broadcast/public-message';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'message' => 'ueceadgmgaelidmdjxd',
            'channel' => 'at',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/broadcast/public-message"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "message": "ueceadgmgaelidmdjxd",
    "channel": "at"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/broadcast/public-message

Headers

Content-Type      

Example: application/json

Body Parameters

message   string   

Must not be greater than 500 characters. Example: ueceadgmgaelidmdjxd

channel   string   

Example: at

POST api/broadcast/private-notification

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/broadcast/private-notification';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'user_id' => 'sit',
            'title' => 'wucferkihitjocq',
            'message' => 'zsfnpywo',
            'type' => 'warning',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/broadcast/private-notification"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user_id": "sit",
    "title": "wucferkihitjocq",
    "message": "zsfnpywo",
    "type": "warning"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/broadcast/private-notification

Headers

Content-Type      

Example: application/json

Body Parameters

user_id   string   

The id of an existing record in the users table. Example: sit

title   string   

Must not be greater than 100 characters. Example: wucferkihitjocq

message   string   

Must not be greater than 500 characters. Example: zsfnpywo

type   string  optional  

Example: warning

Must be one of:
  • info
  • warning
  • error
  • success

GET api/broadcast/channels-info

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/broadcast/channels-info';
$response = $client->get($url);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/broadcast/channels-info"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

GET api/broadcast/channels-info

POST api/broadcast/sendPresenceChannel

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/broadcast/sendPresenceChannel';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'message' => 'updgafvetolprqu',
            'room_id' => 'impedit',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/broadcast/sendPresenceChannel"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "message": "updgafvetolprqu",
    "room_id": "impedit"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/broadcast/sendPresenceChannel

Headers

Content-Type      

Example: application/json

Body Parameters

message   string   

Must not be greater than 1000 characters. Example: updgafvetolprqu

room_id   string   

Example: impedit

POST api/broadcast/userPresenceChannelTyping

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/broadcast/userPresenceChannelTyping';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'room_id' => 'reprehenderit',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/broadcast/userPresenceChannelTyping"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "room_id": "reprehenderit"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/broadcast/userPresenceChannelTyping

Headers

Content-Type      

Example: application/json

Body Parameters

room_id   string   

Example: reprehenderit

POST api/broadcast/publicCustomer-message

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/broadcast/publicCustomer-message';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'customer' => 'ipsam',
            'message' => 'zxevkost',
            'channel' => 'corrupti',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/broadcast/publicCustomer-message"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "customer": "ipsam",
    "message": "zxevkost",
    "channel": "corrupti"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/broadcast/publicCustomer-message

Headers

Content-Type      

Example: application/json

Body Parameters

customer   string   

Example: ipsam

message   string   

Must not be greater than 500 characters. Example: zxevkost

channel   string   

Example: corrupti

POST api/broadcast/privateCustomer-notification

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/broadcast/privateCustomer-notification';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'customer_id' => 7,
            'user_id' => 'enim',
            'title' => 'svcpbbhpn',
            'message' => 'wzzygowfaxihvythe',
            'type' => 'success',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/broadcast/privateCustomer-notification"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "customer_id": 7,
    "user_id": "enim",
    "title": "svcpbbhpn",
    "message": "wzzygowfaxihvythe",
    "type": "success"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/broadcast/privateCustomer-notification

Headers

Content-Type      

Example: application/json

Body Parameters

customer_id   integer   

Example: 7

user_id   string   

The id of an existing record in the users table. Example: enim

title   string   

Must not be greater than 100 characters. Example: svcpbbhpn

message   string   

Must not be greater than 500 characters. Example: wzzygowfaxihvythe

type   string  optional  

Example: success

Must be one of:
  • info
  • warning
  • error
  • success

POST api/broadcast/sendCustomerPresenceChannel

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/broadcast/sendCustomerPresenceChannel';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'customerId' => 4,
            'message' => 'kx',
            'room_id' => 'molestias',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/broadcast/sendCustomerPresenceChannel"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "customerId": 4,
    "message": "kx",
    "room_id": "molestias"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/broadcast/sendCustomerPresenceChannel

Headers

Content-Type      

Example: application/json

Body Parameters

customerId   integer   

Example: 4

message   string   

Must not be greater than 1000 characters. Example: kx

room_id   string   

Example: molestias

POST api/broadcast/userPresenceCustomerChannelTyping

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/broadcast/userPresenceCustomerChannelTyping';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'customerId' => 4,
            'room_id' => 'consequatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/broadcast/userPresenceCustomerChannelTyping"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "customerId": 4,
    "room_id": "consequatur"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/broadcast/userPresenceCustomerChannelTyping

Headers

Content-Type      

Example: application/json

Body Parameters

customerId   integer   

Example: 4

room_id   string   

Example: consequatur

POST api/broadcast/sendPresenceWAPChannel

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/broadcast/sendPresenceWAPChannel';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'message' => 'ptfpzpeqhzkspqmyqmndwh',
            'room_id' => 'non',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/broadcast/sendPresenceWAPChannel"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "message": "ptfpzpeqhzkspqmyqmndwh",
    "room_id": "non"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/broadcast/sendPresenceWAPChannel

Headers

Content-Type      

Example: application/json

Body Parameters

message   string   

Must not be greater than 1000 characters. Example: ptfpzpeqhzkspqmyqmndwh

room_id   string   

Example: non

POST api/meta/sendMessagesWAP

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/meta/sendMessagesWAP';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'whatsapp_channel' => 'nihil',
            'to' => 'voluptate',
            'message' => 'laudantium',
            'tokenGuest' => 'consectetur',
            'file' => 'eius',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/meta/sendMessagesWAP"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "whatsapp_channel": "nihil",
    "to": "voluptate",
    "message": "laudantium",
    "tokenGuest": "consectetur",
    "file": "eius"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/meta/sendMessagesWAP

Headers

Content-Type      

Example: application/json

Body Parameters

whatsapp_channel   string   

Example: nihil

to   string   

Example: voluptate

message   string   

Example: laudantium

tokenGuest   string  optional  

Example: consectetur

file   string  optional  

Example: eius

GET api/meta/getChannelSettingsList

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/meta/getChannelSettingsList';
$response = $client->get($url);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/meta/getChannelSettingsList"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

GET api/meta/getChannelSettingsList

POST api/meta/readMessagesWAP

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/meta/readMessagesWAP';
$response = $client->post($url);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/meta/readMessagesWAP"
);

fetch(url, {
    method: "POST",
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/meta/readMessagesWAP

GET api/meta/getMediaFile

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/meta/getMediaFile';
$response = $client->get($url);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/meta/getMediaFile"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

GET api/meta/getMediaFile

Display a listing of the resource.

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/company/index';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'page' => 'N',
            'quantity_x_page' => 4,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/company/index"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page": "N",
    "quantity_x_page": 4
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/company/index

Headers

Content-Type      

Example: application/json

Body Parameters

page   string   

Example: N

Must be one of:
  • N
  • S
filters   object  optional  
quantity_x_page   integer  optional  

Example: 4

Display the specified resource.

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/company/show/recusandae';
$response = $client->get($url);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/company/show/recusandae"
);

fetch(url, {
    method: "GET",
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

GET api/company/show/{id}

URL Parameters

id   string   

The ID of the show. Example: recusandae

Remove the specified resource from storage.

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/company/delete/error';
$response = $client->delete($url);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/company/delete/error"
);

fetch(url, {
    method: "DELETE",
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

DELETE api/company/delete/{id}

URL Parameters

id   string   

The ID of the delete. Example: error

Display a listing of the resource.

requires authentication

Example request:
$client = new \GuzzleHttp\Client();
$url = 'https://calidad.api.atencionprofesional.com/api/plan/index';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'page' => 'N',
            'quantity_x_page' => 15,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
const url = new URL(
    "https://calidad.api.atencionprofesional.com/api/plan/index"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "page": "N",
    "quantity_x_page": 15
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (404):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "error": "Not Found",
    "code": 404
}
 

Request   

POST api/plan/index

Headers

Content-Type      

Example: application/json

Body Parameters

page   string   

Example: N

Must be one of:
  • N
  • S
filters   object  optional  
quantity_x_page   integer  optional  

Example: 15