Post-trip quality snapshot
/api/v1/performanceNeeds a key with the full scope.
Survey outcomes over a trailing window: how many invitations went out, how many were answered, the NPS that came back, the average segment rating, a per-advisor breakdown, the suppliers that scored best and the detractors worth calling.
Computed fresh on each call. Leave advisor_id off for the whole
account.
Parameters
Query
window_daysenumdefault 90Anything outside the allowed set falls back to 90.
one of
306090180365advisor_iduuid
Response · 200
dataobjectShow fieldsHide fields
window_daysintegerThe window actually used, after the allowlist.
advisorobjectnullableNull when the snapshot covers the whole account.
Show fieldsHide fields
iduuidnamestringnullableemailstringnullable
invitedintegerSurvey invitations sent in the window.
startedintegercompletedintegerresponse_ratenumbernullableCompleted over invited, as a percentage (62.5 means 62.5%).
npsnumbernullableNet promoter score, -100 to 100.
avg_segment_ratingnumbernullableper_advisorobject[]The same figures broken out per advisor.
top_suppliersobject[]detractorsobject[]Recent low scorers, worth a call.
commentis what the traveller wrote: a key whose role cannot see PII reads it asnull, withcontent_masked: true.complimentaryobjectnullableGoodwill and complimentary service figures for the window.
Responses
401Missing or invalid Bearer token403Policy denied or account has no owner429Rate limit exceeded
curl -X GET 'https://YOUR-CELL.lydira.com/api/v1/performance' \
-H 'Authorization: Bearer sek_YOUR_API_KEY'{
"data": {
"window_days": 90,
"advisor": null,
"invited": 1,
"started": 1,
"completed": 1,
"response_rate": 1,
"nps": 1,
"avg_segment_rating": 1,
"per_advisor": [
{
"advisor_id": "7a1c3e5b-2d4f-4b6a-9c8e-0f1a2b3c4d5e",
"advisor_name": "Mert Demir",
"invited": 24,
"completed": 15,
"response_rate": 62.5,
"nps": 46.7,
"avg_rating": 4.6,
"complimentary": {
"count": 2,
"cost": 180,
"cost_by_currency": {
"EUR": 180
}
}
}
],
"top_suppliers": [
{
"supplier": "Museum Hotel",
"reviews": 6,
"avg_rating": 4.83
}
],
"detractors": [
{
"feedback_id": "3e8d1f6a-5c2b-4a9e-8f17-6b0d4c2a9e31",
"trip_id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"trip_title": "Cappadocia, 4 nights",
"nps_score": 5,
"comment": "The airport transfer was 40 minutes late.",
"content_masked": false,
"customer": "Ayşe Yılmaz",
"submitted_at": "2026-03-20T18:05:00Z"
}
],
"complimentary": {
"count": 3,
"cost": 240,
"cost_by_currency": {
"EUR": 240
}
}
}
}