Retrieve a simulated response
Retrieve the simulated sandbox response, field outline, dataSample, and emptySample for a catalog endpoint code discovered via List simulated responses. You can switch the returned sample state between populated records ("data"), empty matches ("empty"), or missing data ("missing"), and control array row counts with listSize.
In headless template design and automated QA workflows, this endpoint lets you validate how your template renders edge cases — such as empty tables, missing optional fields, or multi-page arrays (listSize from 2 to 30) — before saving or shipping a template to production SmartBatch pipelines.
Endpoint
GET https://api.verifik.co/v2/smart-report-templates/simulated-responses/{code}
The Smart-Agent proxy (https://ai.verifik.co) exposes the same /v2/... paths and requires your own Authorization: Bearer <VERIFIK_JWT> header.
Headers
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <VERIFIK_JWT> |
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
code | string | Path | Yes | Catalog endpoint code from List simulated responses. |
availability | string | Query | No | Simulated state to place in sample: "data", "empty", or "missing". Defaults to "data". |
listSize | integer | Query | No | Number of synthetic items to generate for array/list fields. Valid range: 2 to 30. |
Request
- Node.js
- PHP
- Python
- Go
- cURL
const fetch = require("node-fetch");
async function run() {
const code = "co_cedula";
const params = new URLSearchParams({
availability: "data",
listSize: "5",
});
const res = await fetch(
`https://api.verifik.co/v2/smart-report-templates/simulated-responses/${code}?${params.toString()}`,
{
method: "GET",
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_JWT}`,
},
}
);
console.log(await res.json());
}
run();
<?php
$code = "co_cedula";
$query = http_build_query([
"availability" => "data",
"listSize" => 5,
]);
$ch = curl_init("https://api.verifik.co/v2/smart-report-templates/simulated-responses/" . $code . "?" . $query);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Accept: application/json",
"Authorization: Bearer " . getenv("VERIFIK_JWT"),
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
import os
import requests
code = "co_cedula"
url = f"https://api.verifik.co/v2/smart-report-templates/simulated-responses/{code}"
headers = {
"Accept": "application/json",
"Authorization": f"Bearer {os.getenv('VERIFIK_JWT')}",
}
params = {
"availability": "data",
"listSize": 5,
}
r = requests.get(url, headers=headers, params=params)
print(r.json())
package main
import (
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
url := "https://api.verifik.co/v2/smart-report-templates/simulated-responses/co_cedula?availability=data&listSize=5"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("Accept", "application/json")
req.Header.Set("Authorization", "Bearer "+os.Getenv("VERIFIK_JWT"))
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var out map[string]interface{}
json.NewDecoder(resp.Body).Decode(&out)
fmt.Println(out)
}
curl -X GET "https://api.verifik.co/v2/smart-report-templates/simulated-responses/co_cedula?availability=data&listSize=5" \
-H "Accept: application/json" \
-H "Authorization: Bearer $VERIFIK_JWT"
Response
- 200 (Found)
- 200 (Not found)
- 401
- 409
{
"data": {
"code": "co_cedula",
"found": true,
"name": "Colombia National ID Verification",
"country": "Colombia",
"category": "citizen",
"method": "GET",
"url": "https://api.verifik.co/v2/co/cedula",
"inputs": ["documentType", "documentNumber"],
"availability": "data",
"outline": {
"fullName": "string",
"documentNumber": "string",
"status": "string"
},
"sample": {
"fullName": "MATEO ROJAS",
"documentNumber": "1020304050",
"status": "VIGENTE"
},
"dataSample": {
"fullName": "MATEO ROJAS",
"documentNumber": "1020304050",
"status": "VIGENTE"
},
"emptySample": {}
}
}
{
"data": {
"code": "unknown_code",
"found": false,
"outline": {},
"sample": {},
"note": "No simulated response found in sandbox endpoint inventory for the requested code."
}
}
{
"message": "Unauthorized",
"code": "Unauthorized"
}
{
"message": "\"availability\" must be one of [data, empty, missing]",
"code": "MissingParameter"
}
Notes
- If
{code}is not present in the sandbox inventory, the endpoint returns HTTP200withfound: false, emptyoutlineandsampleobjects, and an explanatorynote. listSizeaccepts integers from2to30and is useful for testing multi-page PDF pagination via Download template sample.- This endpoint does not run live verifications and does not spend credits.