Skip to main content

Mettre à jour un Smart Report

Mettez à jour un SmartReport existant appartenant au client authentifié. Envoyez uniquement les champs que vous souhaitez modifier ; les champs omis dans la requête restent inchangés.

Si l'ID du rapport n'existe pas ou appartient à un autre client, le point de terminaison renvoie 404 Not Found ({ "message": "not_found", "code": "NotFound" }).

Point de terminaison​

PUT https://api.verifik.co/v2/smart-reports/{id}

Ce point de terminaison est également accessible via le proxy Smart-Agent à l'adresse https://ai.verifik.co/v2/smart-reports/{id} en utilisant votre propre en-tête par client Authorization: Bearer <VERIFIK_JWT>. L'exécution partagée x402 est bloquée avec 403 Forbidden.

En-têtes​

NomValeurDescription
Content-Typeapplication/jsonFormat du payload de la requête.
AuthorizationBearer <VERIFIK_JWT>JWT limité au client (authUser.clientId).

Paramètres​

NomTypeRequisDescription
idstringOuiObjectId du SmartReport à mettre à jour.

Corps de la requête​

Tous les champs du corps sont facultatifs ; fournissez uniquement les attributs que vous souhaitez mettre à jour.

NomTypeRequisDescription
namestringNonNom d'affichage du rapport.
statusstringNonStatut du rapport : "draft", "generating", "generated", "sent" ou "failed".
pdfUrlstringNonURL enregistrée de l'artefact PDF généré.
pdfSizenumberNonTaille du PDF généré en octets.
htmlSnapshotstringNonInstantané HTML enregistré du rapport généré.
pageCountnumberNonNombre de pages du PDF généré.
pdfEnginestringNonMoteur de rendu : "pdfkit" ou "puppeteer".
generatedAtstringNonHorodatage ISO 8601 de génération du rapport.
generationDurationMsnumberNonDurée de génération du PDF en millisecondes.
dataSnapshotobjectNonInstantané des données de ligne ou d'entrée utilisées pour le rapport.
externalRefIdstringNonIdentifiant de corrélation de l'appelant.
webhookUrlstringNonURL de surcharge webhook http ou https spécifique au rapport.
rowIndexnumberNonIndex de ligne basé sur zéro associé à ce rapport.
createdByChannelstringNonCanal d'origine : "portal", "api", "mcp", "x402" ou "webhook".
verificationScoreSummaryobjectNonMétadonnées récapitulatives issues du calcul de score de vérification.
errorobject ou stringNonPayload ou message d'erreur enregistré pour les états d'échec.

Requête​

import axios from "axios";

const run = async () => {
const id = "6801a2b3c4d5e6f7a8b9c0d1";
const { data } = await axios.put(
`https://api.verifik.co/v2/smart-reports/${id}`,
{
name: "Background Check - Applicant 42 (Reviewed)",
externalRefId: "applicant-42-v2",
webhookUrl: "https://webhooks.example.com/verifik",
},
{
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
}
);

console.log(data);
};

run();

Réponse​

{
"data": {
"_id": "6801a2b3c4d5e6f7a8b9c0d1",
"template": "6801a2b3c4d5e6f7a8b9c0d2",
"smartBatch": "6801a2b3c4d5e6f7a8b9c0d3",
"name": "Background Check - Applicant 42 (Reviewed)",
"status": "generated",
"externalRefId": "applicant-42-v2",
"webhookUrl": "https://webhooks.example.com/verifik",
"rowIndex": 0,
"createdByChannel": "api",
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:05:00.000Z"
}
}

Intégration Webhooks et MCP​

Notes​

Voir aussi​