Update a Smart Report
Update an existing SmartReport belonging to the authenticated client. Send only the fields you want to modify; fields omitted from the request remain unchanged.
If the report ID does not exist or belongs to another client, the endpoint returns 404 Not Found ({ "message": "not_found", "code": "NotFound" }).
Endpoint
PUT https://api.verifik.co/v2/smart-reports/{id}
This endpoint is also reachable through the Smart-Agent proxy at https://ai.verifik.co/v2/smart-reports/{id} using your own per-client Authorization: Bearer <VERIFIK_JWT>. Shared x402 execution is blocked with 403 Forbidden.
Headers
| Name | Value | Description |
|---|---|---|
Content-Type | application/json | Request payload format. |
Authorization | Bearer <VERIFIK_JWT> | Client-scoped JWT (authUser.clientId). |
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | SmartReport ObjectId to update. |
Body
All body fields are optional; provide only the attributes you want to update.
| Name | Type | Required | Description |
|---|---|---|---|
name | string | No | Display name for the report. |
status | string | No | Report status: "draft", "generating", "generated", "sent", or "failed". |
pdfUrl | string | No | Stored URL for the generated PDF artifact. |
pdfSize | number | No | Size of the generated PDF in bytes. |
htmlSnapshot | string | No | Saved HTML snapshot of the rendered report. |
pageCount | number | No | Page count of the generated PDF. |
pdfEngine | string | No | Rendering engine: "pdfkit" or "puppeteer". |
generatedAt | string | No | ISO 8601 timestamp when the report was generated. |
generationDurationMs | number | No | PDF generation duration in milliseconds. |
dataSnapshot | object | No | Snapshot of row or input data used for the report. |
externalRefId | string | No | Caller correlation identifier. |
webhookUrl | string | No | Per-report http or https webhook override URL. |
rowIndex | number | No | Zero-based row index associated with this report. |
createdByChannel | string | No | Origin channel: "portal", "api", "mcp", "x402", or "webhook". |
verificationScoreSummary | object | No | Summary metadata from verification scoring. |
error | object or string | No | Error payload or message recorded for failed states. |
Request
- Node.js
- PHP
- Python
- Go
- cURL
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();
<?php
$id = "6801a2b3c4d5e6f7a8b9c0d1";
$ch = curl_init("https://api.verifik.co/v2/smart-reports/" . $id);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Content-Type: application/json",
"Authorization: Bearer " . getenv("VERIFIK_JWT"),
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
"name" => "Background Check - Applicant 42 (Reviewed)",
"externalRefId" => "applicant-42-v2",
"webhookUrl" => "https://webhooks.example.com/verifik",
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
import os
import requests
report_id = "6801a2b3c4d5e6f7a8b9c0d1"
url = f"https://api.verifik.co/v2/smart-reports/{report_id}"
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_JWT')}",
}
payload = {
"name": "Background Check - Applicant 42 (Reviewed)",
"externalRefId": "applicant-42-v2",
"webhookUrl": "https://webhooks.example.com/verifik",
}
response = requests.put(url, json=payload, headers=headers)
print(response.json())
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
id := "6801a2b3c4d5e6f7a8b9c0d1"
body, _ := json.Marshal(map[string]interface{}{
"name": "Background Check - Applicant 42 (Reviewed)",
"externalRefId": "applicant-42-v2",
"webhookUrl": "https://webhooks.example.com/verifik",
})
req, _ := http.NewRequest("PUT", "https://api.verifik.co/v2/smart-reports/"+id, bytes.NewReader(body))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("VERIFIK_JWT"))
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
var out map[string]interface{}
json.NewDecoder(resp.Body).Decode(&out)
fmt.Println(out)
}
curl -X PUT "https://api.verifik.co/v2/smart-reports/6801a2b3c4d5e6f7a8b9c0d1" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $VERIFIK_JWT" \
-d '{
"name": "Background Check - Applicant 42 (Reviewed)",
"externalRefId": "applicant-42-v2",
"webhookUrl": "https://webhooks.example.com/verifik"
}'
Response
- 200 OK
- 401
- 403
- 404
- 409
- 422
{
"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"
}
}
{
"message": "Unauthorized",
"code": "Unauthorized"
}
{
"message": "Shared x402 execution is forbidden on this endpoint",
"code": "Forbidden"
}
{
"message": "not_found",
"code": "NotFound"
}
{
"message": "\"status\" must be one of [draft, generating, generated, sent, failed]",
"code": "MissingParameter"
}
{
"message": "UnprocessableEntity",
"code": "UnprocessableEntity"
}
Webhooks & MCP Integration
- Updating
webhookUrlorexternalRefIdupdates the target callback URL and correlation ID used by subsequent Generate Smart Report PDF and Send Smart Report by Email calls. See Smart Reports Webhooks. - To inspect the updated record or run headless report operations via an AI agent, see MCP and AI Agents.
Notes
- Updating a
SmartReportonly updates stored report fields; it does not automatically regenerate a PDF or dispatch emails. Call Generate Smart Report PDF or Send Smart Report by Email when you want to re-render or deliver.