Reference · 3 operations
vision
VISION, pilotage de l'institution : indicateurs agreges sous seuil de minimisation, export CSV trace. Aucune donnee de dossier.
Catalogue des indicateurs de l'institution
/api/v1/vision/catalogRegistre ferme : formule, numerateur, denominateur, sources, periode, fraicheur ; indicateurs sans source et leur motif ; seuil de minimisation. Exige `analytics.read`.
Authentication and permissions
The contract does not declare authentication per operation. General rule: a bearer token in the Authorization header. Permissions: the contract does not declare them per operation. Read the authentication rule
Request body
No request body.
Responses
200Successful responseapplication/jsonVisionCatalogOutFields of the 200 response
can_exportbooleanL'appelant detient `analytics.export`.
indicatorsarray<IndicatorDefinitionOut>max_monthsintegerEtendue maximale d'une periode, en mois.
min_segment_sizeintegerSeuil k : aucun segment de 1 a k-1 dossiers n'est restitue.
score_bandsintegerBandes de la repartition des scores par grille.
unavailablearray<UnavailableIndicatorOut>
# Bearer token if the operation requires one
curl -X GET "$NEXCLARA_API_URL/api/v1/vision/catalog" \
-H "Authorization: Bearer $NEXCLARA_TOKEN"{
"can_export": false,
"indicators": [
{
"categories": [],
"denominator": "exemple",
"dimensions": [],
"event_time": "exemple",
"family": "activity",
"formula": "exemple",
"freshness": "live",
"key": "applications.created",
"kind": "count",
"missing_data": "zero_is_value",
"numerator": null,
"population": "dossiers",
"sources": [],
"unit": "applications"
}
],
"max_months": 1,
"min_segment_size": 1,
"score_bands": 1,
"unavailable": [
{
"family": "activity",
"key": "portfolio.default_rate_by_score_band",
"reason": "no_observed_outcome"
}
]
}Exporter les indicateurs en CSV
/api/v1/vision/exportMeme lecture que `GET /vision/indicators`, serialisee en CSV `;` (format `nexclara-vision-export@1`) : agregats seulement, segments supprimes exportes vides, trace dans la chaine de l'institution. Exige `analytics.export`.
Authentication and permissions
The contract does not declare authentication per operation. General rule: a bearer token in the Authorization header. Permissions: the contract does not declare them per operation. Read the authentication rule
Query parameters
fromstringPremier mois AAAA-MM.
tostringDernier mois AAAA-MM.
product_idstring (uuid) | nullRestreindre a un produit.
policy_idstring (uuid) | nullRestreindre a une politique.
Request body
No request body.
Responses
200Successful responsetext/csvstring (binary)422Validation errorapplication/jsonHTTPValidationError
# Bearer token if the operation requires one
curl -X POST "$NEXCLARA_API_URL/api/v1/vision/export?from=2026-09&to=2026-09" \
-H "Authorization: Bearer $NEXCLARA_TOKEN"Response 200 · text/csv body: no JSON example.
Indicateurs de l'institution sur une periode
/api/v1/vision/indicatorsMois `from` a `to` inclus (AAAA-MM, temps universel, 24 mois au plus, aucun mois futur), par produit, politique, mois et canal ; une seule transaction, un instant de calcul. Un segment de moins de `min_segment_size` dossiers est supprime, ainsi que son complement. Exige `analytics.read`.
Authentication and permissions
The contract does not declare authentication per operation. General rule: a bearer token in the Authorization header. Permissions: the contract does not declare them per operation. Read the authentication rule
Query parameters
fromstringPremier mois AAAA-MM.
tostringDernier mois AAAA-MM.
product_idstring (uuid) | nullRestreindre a un produit.
policy_idstring (uuid) | nullRestreindre a une politique.
Request body
No request body.
Responses
200Successful responseapplication/jsonVisionReadingOutFields of the 200 response
computed_atstring (date-time)indicatorsarray<IndicatorValueOut>min_segment_sizeintegerperiodReadingPeriodOutpoliciesarray<PolicyReferenceOut>policy_idstring (uuid) | nullproduct_idstring (uuid) | nullproductsarray<ProductReferenceOut>unavailablearray<UnavailableIndicatorOut>
422Validation errorapplication/jsonHTTPValidationError
# Bearer token if the operation requires one
curl -X GET "$NEXCLARA_API_URL/api/v1/vision/indicators?from=2026-09&to=2026-09" \
-H "Authorization: Bearer $NEXCLARA_TOKEN"{
"computed_at": "2026-10-15T09:30:00Z",
"indicators": [
{
"key": "applications.created",
"overall": {
"breakdown": [],
"items": null,
"numerator": null,
"p90": null,
"population": null,
"suppressed": false,
"value": null
},
"segments": []
}
],
"min_segment_size": 1,
"period": {
"end": "2026-10-15T09:30:00Z",
"first_month": "exemple",
"last_month": "exemple",
"months": [
"exemple"
],
"start": "2026-10-15T09:30:00Z"
},
"policies": [
{
"code": "exemple",
"id": "00000000-0000-4000-8000-000000000001",
"product_id": "00000000-0000-4000-8000-000000000002",
"scale_max": null,
"scale_min": null,
"status": "exemple",
"version": 1
}
],
"policy_id": null,
"product_id": null,
"products": [
{
"code": "exemple",
"id": "00000000-0000-4000-8000-000000000003",
"name": "Exemple",
"name_en": null,
"status": "exemple"
}
],
"unavailable": [
{
"family": "activity",
"key": "portfolio.default_rate_by_score_band",
"reason": "no_observed_outcome"
}
]
}