Skip to main content

Supprimer un Smart Report

Supprimez un enregistrement SmartReport appartenant au client authentifié. En cas de succès, l'API renvoie le document SmartReport supprimé dans { "data": ... }.

Si l'ID du rapport est manquant ou appartient à un autre client, le point de terminaison renvoie 404 Not Found ({ "message": "not_found", "code": "NotFound" }). La suppression d'un rapport retire le document SmartReport sans supprimer les données de vérification sous-jacentes du SmartBatch.

Point de terminaison​

DELETE 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 à supprimer.

Requête​

import axios from "axios";

const run = async () => {
const id = "6801a2b3c4d5e6f7a8b9c0d1";
const { data } = await axios.delete(`https://api.verifik.co/v2/smart-reports/${id}`, {
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",
"status": "generated",
"externalRefId": "applicant-42",
"rowIndex": 0,
"createdByChannel": "api",
"createdAt": "2026-11-24T20:00:00.000Z",
"updatedAt": "2026-11-24T20:00:04.000Z"
}
}

Notes​

  • Les appels suivants à GET /v2/smart-reports/{id} renvoient { "data": null }, tandis que PUT, DELETE, /generate, /download, /html et /send-email renvoient 404 (not_found).
  • La suppression d'un SmartReport n'émet aucun webhook de livraison ou de génération ; consultez Webhooks SmartReports et MCP et Agents IA pour les détails d'automatisation du cycle de vie.

Voir aussi​