Obtener el reporte NPS de la empresa
curl --request GET \
--url https://clientapi.woku.app/reports/company-nps \
--header 'Authorization: Bearer <token>'import requests
url = "https://clientapi.woku.app/reports/company-nps"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://clientapi.woku.app/reports/company-nps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://clientapi.woku.app/reports/company-nps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://clientapi.woku.app/reports/company-nps"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://clientapi.woku.app/reports/company-nps")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://clientapi.woku.app/reports/company-nps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"npsScore": 42,
"totalResponses": 500,
"promoters": {
"count": 280,
"percentage": 56
},
"passives": {
"count": 150,
"percentage": 30
},
"detractors": {
"count": 70,
"percentage": 14
},
"scoreDistribution": {
"0": 5,
"1": 3,
"2": 8,
"3": 10,
"4": 12,
"5": 15,
"6": 17,
"7": 80,
"8": 70,
"9": 130,
"10": 150
},
"trend": [
{
"date": "2026-01-01",
"score": 40,
"responses": 45
}
]
}{
"statusCode": 401,
"message": "Invalid or missing API key"
}{
"statusCode": 404,
"message": "Resource not found",
"error": "Not Found"
}Reportes
Obtener el reporte NPS de la empresa
Obtiene los datos del reporte de NPS (Net Promoter Score) a nivel de empresa, incluyendo el puntaje NPS general, la distribucion de respuestas (promotores, pasivos, detractores) y las tendencias a lo largo del tiempo.
GET
/
reports
/
company-nps
Obtener el reporte NPS de la empresa
curl --request GET \
--url https://clientapi.woku.app/reports/company-nps \
--header 'Authorization: Bearer <token>'import requests
url = "https://clientapi.woku.app/reports/company-nps"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://clientapi.woku.app/reports/company-nps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://clientapi.woku.app/reports/company-nps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://clientapi.woku.app/reports/company-nps"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://clientapi.woku.app/reports/company-nps")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://clientapi.woku.app/reports/company-nps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"npsScore": 42,
"totalResponses": 500,
"promoters": {
"count": 280,
"percentage": 56
},
"passives": {
"count": 150,
"percentage": 30
},
"detractors": {
"count": 70,
"percentage": 14
},
"scoreDistribution": {
"0": 5,
"1": 3,
"2": 8,
"3": 10,
"4": 12,
"5": 15,
"6": 17,
"7": 80,
"8": 70,
"9": 130,
"10": 150
},
"trend": [
{
"date": "2026-01-01",
"score": 40,
"responses": 45
}
]
}{
"statusCode": 401,
"message": "Invalid or missing API key"
}{
"statusCode": 404,
"message": "Resource not found",
"error": "Not Found"
}Autorizaciones
Clave de API de la empresa. Obtenla desde tu dashboard de Woku en Settings > API Keys.
Respuesta
Reporte NPS de la empresa obtenido correctamente
Net Promoter Score (-100 a 100)
Ejemplo:
42
Numero total de respuestas NPS
Ejemplo:
500
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Distribucion de puntajes de 0 a 10
Show child attributes
Show child attributes
Ejemplo:
{
"0": 5,
"1": 3,
"2": 8,
"3": 10,
"4": 12,
"5": 15,
"6": 17,
"7": 80,
"8": 70,
"9": 130,
"10": 150
}
Tendencia del puntaje NPS a lo largo del tiempo
Show child attributes
Show child attributes
⌘I