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, 0 to 1.
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.
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": {
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"name": "Ayşe Yılmaz",
"email": "ayse@example.com"
},
"invited": 1,
"started": 1,
"completed": 1,
"response_rate": 1,
"nps": 1,
"avg_segment_rating": 1,
"per_advisor": [
{}
],
"top_suppliers": [
{}
],
"detractors": [
{}
],
"complimentary": {}
}
}