curl --request POST \
--url https://kinglog.app.br/search/global \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "projeto alfa",
"paginationType": "cursor",
"companyId": "UUID_DA_EMPRESA",
"userId": "UUID_DO_USUARIO"
}
'
{
"success": true,
"data": {
"items": [],
"cursor": null
},
"code": "SUCCESS"
}{
"success": false,
"status": 400,
"message": "Mensagem descritiva do erro",
"code": "CODIGO"
}{
"success": false,
"status": 401,
"message": "Não autorizado",
"code": "UNAUTHORIZED"
}{
"success": false,
"status": 403,
"message": "Sem permissão",
"code": "FORBIDDEN"
}{
"success": false,
"status": 404,
"message": "Não encontrado",
"code": "NOT_FOUND"
}Busca
Busca global
Busca em leads, contatos, tarefas, tickets, clientes, projetos e outros registros.
POST
/
search
/
global
curl --request POST \
--url https://kinglog.app.br/search/global \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "projeto alfa",
"paginationType": "cursor",
"companyId": "UUID_DA_EMPRESA",
"userId": "UUID_DO_USUARIO"
}
'
{
"success": true,
"data": {
"items": [],
"cursor": null
},
"code": "SUCCESS"
}{
"success": false,
"status": 400,
"message": "Mensagem descritiva do erro",
"code": "CODIGO"
}{
"success": false,
"status": 401,
"message": "Não autorizado",
"code": "UNAUTHORIZED"
}{
"success": false,
"status": 403,
"message": "Sem permissão",
"code": "FORBIDDEN"
}{
"success": false,
"status": 404,
"message": "Não encontrado",
"code": "NOT_FOUND"
}Authorizations
Todas as requisições devem incluir o JWT da conta no header Authorization no formato Bearer. Sem esse header a requisição é recusada.
Body
application/json
Texto da busca.
Example:
"projeto alfa"
Use cursor.
Example:
"cursor"
Empresa da sessão.
Example:
"UUID_DA_EMPRESA"
Usuário da sessão.
Example:
"UUID_DO_USUARIO"
Lead, CrmContact, CrmOrganization, CrmActivity, CrmProduct, CrmReservation, called, HelpDeskTicket, Client, Project, CompanyProduct, ResponseCalled, Files, Meeting.
Example:
["Lead", "called", "HelpDeskTicket"]
De 1 a 100.
Example:
1
Página seguinte, quando a resposta trouxer cursor.
Example:
"exemplo"