Obter resultados #
Este pedido aceita um relatório » requestId' e devolve os resultados do relatório, se completo.
GET /v1.0/workspaces/{WORKSPACE_ID}/reports/{REPORT_ID}/results/{REQUEST_ID}/data
Exemplo #
Essa solicitação retorna os dados de resultado de uma solicitação de relatório concluída.
Solicitar #
GET <https://api.na.myreports.cloud/api/v1.0/workspaces/00000000-0000-0000-0000-000000000001/reports/00000000-0000-0000-0000-000000000001/requests/00000000-0000-0000-0000-000000000005/data> HTTP/1.1
Autorização: Portador {TOKEN}
Resposta #
HTTP/1.1 200 OK
Tipo de conteúdo: application/json; charset=utf-8
Conteúdo-Comprimento: xx
{
"requestId": "00000000-0000-0000-0000-0000000000005",
"tenantId": "00000000-0000-0000-0000-00000000000000",
"pedido": {
"requestId": "00000000-0000-0000-0000-0000000000005",
"dateCreated": "2025-09-22T15:27:40.1946146Z",
"tenantId": "00000000-0000-0000-0000-00000000000000",
"reportId": "00000000-0000-0000-0000-000000000001",
"reportTemplateName": "CallListByUserSegmented",
"filterConditions": \[
{
"fieldName": "início",
"operador": ">=",
"valores": ["2025-01-01T00:00:00.0000000+00:00"][
"2025-01-01T00:00:00.0000000+00:00"
]
},
{
"fieldName": "fim",
"operador": "\<",
"valores": ["2025-09-22T15:12:40.1423517+00:00"][
"2025-09-22T15:12:40.1423517+00:00"
]
}
],
"sortFields": [
{
"fieldName": "início",
"direção": 1
}
][
{
"fieldName": "start",
"direction": 1
}
],
"displayFields": [
{
"fieldName": "connId",
"obrigatório": falso
},
{
"fieldName": "início",
"obrigatório": falso
},
{
"fieldName": "userName",
"obrigatório": falso
},
{
"fieldName": "userNum",
"obrigatório": falso
},
{
"fieldName": "cli",
"obrigatório": falso
},
{
"fieldName": "cliName",
"obrigatório": falso
},
{
"fieldName": "hgNum",
"obrigatório": falso
},
{
"fieldName": "callType",
"obrigatório": falso
},
{
"fieldName": "callDir",
"obrigatório": falso
},
{
"fieldName": "ans",
"obrigatório": falso
},
{
"fieldName": "ref",
"obrigatório": falso
},
{
"fieldName": "perdido",
"obrigatório": falso
},
{
"fieldName": "anel",
"obrigatório": falso
},
{
"fieldName": "duração",
"obrigatório": falso
},
{
"fieldName": "chamadoUserNum",
"obrigatório": falso
},
{
"fieldName": "chamadoUserName",
"obrigatório": falso
},
{
"fieldName": "callUserName",
"obrigatório": falso
},
{
"fieldName": "callUserNum",
"obrigatório": falso
},
{
"fieldName": "hgName",
"obrigatório": falso
}
][
{
"fieldName": "connId",
"mandatory": false
},
{
"fieldName": "start",
"mandatory": false
},
{
"fieldName": "userName",
"mandatory": false
},
{
"fieldName": "userNum",
"mandatory": false
},
{
"fieldName": "cli",
"mandatory": false
},
{
"fieldName": "cliName",
"mandatory": false
},
{
"fieldName": "hgNum",
"mandatory": false
},
{
"fieldName": "callType",
"mandatory": false
},
{
"fieldName": "callDir",
"mandatory": false
},
{
"fieldName": "ans",
"mandatory": false
},
{
"fieldName": "ref",
"mandatory": false
},
{
"fieldName": "lost",
"mandatory": false
},
{
"fieldName": "ring",
"mandatory": false
},
{
"fieldName": "duration",
"mandatory": false
},
{
"fieldName": "calledUserNum",
"mandatory": false
},
{
"fieldName": "calledUserName",
"mandatory": false
},
{
"fieldName": "callUserName",
"mandatory": false
},
{
"fieldName": "callUserNum",
"mandatory": false
},
{
"fieldName": "hgName",
"mandatory": false
}
],
"childDisplayFields": \[],
"ignoreDisplayFields": falso,
"metadados": {
"reportName": nulo,
"dateFilter": {
"presetName": "Este Ano",
"presetFilterObject": {
"Unidades": 6,
"compensação": 0,
"comprimento": 1,
"arredondamento": 1,
"diasdesemana": 127
},
"diasdesemana": 127
},
"referenceDate": "2025-09-22T15:27:40.1423161+00:00",
"timeZoneReferenceDate": "2025-09-22T16:27:40",
"filterId": nulo,
"adicionalFiltros": \[],
"workspaceFilterId": nulo,
"timezoneDateFrom": "2025-01-01T00:00:00",
"timezoneDateTo": "2025-09-22T16:12:40",
"timeZoneDateCreated": "2025-09-22T15:27:40.1423517+00:00",
"timeZoneAbbreviation": "BST"
},
"fonte": "api.onboarding",
"tamanho da página": -1,
"Tamanho do lote": -1,
"rowLimit": 1000000,
"priorityLevel": 2,
"callRatePeriod": 120,
"ignoreAbandonedCalls": falso,
"ignoreShortAnsweredCalls": falso,
"accountCodeLabels": {},
"ringDurationThresholds": [
10,
20,
30,
40,
50,
60,
70,
80,
90,
100,
110,
120,
120
][
10,
20,
30,
40,
50,
60,
70,
80,
90,
100,
110,
120,
120
],
"incomingEstimatedRevenue": 100,0,
"incomingCallsPerSale": 5,
"OutgoingEstimatedRevenue": 100,0,
"outgoingCallsPerSale": 5,
"durationGroupPeriodInSeconds": 10,
"timeZoneId": "Europa/Londres",
"Código do país": "GB",
"localidade": "en-GB",
"totalTrunks": 10,
"maxRows": 0
},
"esforço": 210.17,
"queryDuration": 2076,
"Duração total": 2121,
"queryCount": 2053,
"rowLimitExceeded": falso,
"totalCount": 922,
"dados": [
{
"connId": "00000000-0000-0000-0000-000000000001",
"início": "2025-09-18T11:16:31",
"userName": "Usuário de teste 1",
"userNum": "101",
"cli": "+11234567890",
"cliName": "",
"hgNum": "200",
"callType": 2,
"callDir": 2,
"anel": 1.0,
"Duração": 1.0,
"calledUserNum": "+19876543210",
"calledUserName": "Desconhecido",
"callUserNum": "+11234567890",
"hgName": "Fila 200",
"docId": "00000000-0000-0000-0000-0000000000009"
},
{
"connId": "00000000-0000-0000-0000-000000000002",
"início": "2025-09-18T11:16:13",
"userName": "Usuário de teste 1",
"userNum": "101",
"cli": "+11234567890",
"cliName": "",
"callType": 2,
"callDir": 3,
"ans": 1,
"anel": 5.0,
"duração": 6.0,
"calledUserNum": "07977502880",
"callUserName": Usuário de teste 1",
"callUserNum": "101",
"docId": "00000000-0000-0000-0000-000000000010"
},
{
"connId": "00000000-0000-0000-0000-000000000003",
"início": "2025-01-03T16:44:40",
"userName": "Usuário de teste 2",
"userNum": "102",
"callType": 1,
"callDir": 2,
"ans": 1,
"anel": 0.0,
"duração": 498,0,
"calledUserNum": "00000000-0000-0000-0000-000000000012",
"calledUserName": "Usuário de teste 2",
"docId": "00000000-0000-0000-0000-000000000011"
}
][
{
"connId": "00000000-0000-0000-0000-000000000001",
"start": "2025-09-18T11:16:31",
"userName": "Test User 1",
"userNum": "101",
"cli": "+11234567890",
"cliName": "",
"hgNum": "200",
"callType": 2,
"callDir": 2,
"ring": 1.0,
"duration": 1.0,
"calledUserNum": "+19876543210",
"calledUserName": "Unknown",
"callUserNum": "+11234567890",
"hgName": "Queue 200",
"docId": "00000000-0000-0000-0000-000000000009"
},
{
"connId": "00000000-0000-0000-0000-000000000002",
"start": "2025-09-18T11:16:13",
"userName": "Test User 1",
"userNum": "101",
"cli": "+11234567890",
"cliName": "",
"callType": 2,
"callDir": 3,
"ans": 1,
"ring": 5.0,
"duration": 6.0,
"calledUserNum": "07977502880",
"callUserName": Test User 1",
"callUserNum": "101",
"docId": "00000000-0000-0000-0000-000000000010"
},
{
"connId": "00000000-0000-0000-0000-000000000003",
"start": "2025-01-03T16:44:40",
"userName": "Test User 2",
"userNum": "102",
"callType": 1,
"callDir": 2,
"ans": 1,
"ring": 0.0,
"duration": 498.0,
"calledUserNum": "00000000-0000-0000-0000-000000000012",
"calledUserName": "Test User 2",
"docId": "00000000-0000-0000-0000-000000000011"
}
],
"sumário": [
{
"ans": 621,
"ref": 37,
"perdido": 79,
"anel": 3318.0,
"Duração": 124315.0
}
][
{
"ans": 621,
"ref": 37,
"lost": 79,
"ring": 3318.0,
"duration": 124315.0
}
],
"Estado": 1,
"statusMessage": "Processamento de relatório concluído",
"rowLimit": 1000000
}
Erros #
Não autorizado #
Quando o token não é fornecido, inválido ou expirado
HTTP/1.1 401 Não autorizado