curl --request POST \
--url https://www.closient.com/signals/api/v1/adverse-reports/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"batch": "LOT-2026-04",
"body": "Two of us were unwell a few hours after eating this.",
"contact_consent": true,
"contact_email": "shopper@example.com",
"gtin": "00012345678905",
"report_type": "illness",
"severity": "moderate"
}
'import requests
url = "https://www.closient.com/signals/api/v1/adverse-reports/"
payload = {
"batch": "LOT-2026-04",
"body": "Two of us were unwell a few hours after eating this.",
"contact_consent": True,
"contact_email": "shopper@example.com",
"gtin": "00012345678905",
"report_type": "illness",
"severity": "moderate"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
batch: 'LOT-2026-04',
body: JSON.stringify('Two of us were unwell a few hours after eating this.'),
contact_consent: true,
contact_email: 'shopper@example.com',
gtin: '00012345678905',
report_type: 'illness',
severity: 'moderate'
})
};
fetch('https://www.closient.com/signals/api/v1/adverse-reports/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.closient.com/signals/api/v1/adverse-reports/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'batch' => 'LOT-2026-04',
'body' => 'Two of us were unwell a few hours after eating this.',
'contact_consent' => true,
'contact_email' => 'shopper@example.com',
'gtin' => '00012345678905',
'report_type' => 'illness',
'severity' => 'moderate'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/signals/api/v1/adverse-reports/"
payload := strings.NewReader("{\n \"batch\": \"LOT-2026-04\",\n \"body\": \"Two of us were unwell a few hours after eating this.\",\n \"contact_consent\": true,\n \"contact_email\": \"shopper@example.com\",\n \"gtin\": \"00012345678905\",\n \"report_type\": \"illness\",\n \"severity\": \"moderate\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.closient.com/signals/api/v1/adverse-reports/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"batch\": \"LOT-2026-04\",\n \"body\": \"Two of us were unwell a few hours after eating this.\",\n \"contact_consent\": true,\n \"contact_email\": \"shopper@example.com\",\n \"gtin\": \"00012345678905\",\n \"report_type\": \"illness\",\n \"severity\": \"moderate\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/signals/api/v1/adverse-reports/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"batch\": \"LOT-2026-04\",\n \"body\": \"Two of us were unwell a few hours after eating this.\",\n \"contact_consent\": true,\n \"contact_email\": \"shopper@example.com\",\n \"gtin\": \"00012345678905\",\n \"report_type\": \"illness\",\n \"severity\": \"moderate\"\n}"
response = http.request(request)
puts response.read_body{
"batch": "LOT-2026-04",
"body": "Two of us were unwell a few hours after eating this.",
"contact_consent": true,
"created": "2026-07-14T14:30:00Z",
"delivery": {
"delivered_at": "2026-07-14T14:30:00Z",
"sla_deadline": "2026-07-15T14:30:00Z",
"state": "delivered",
"within_sla": true
},
"gtin": "00012345678905",
"has_voice": false,
"id": "a1b2c3d4e5f6",
"reference_id": "AR-7F3K9Q2M",
"regulator_handoff": {
"agency": "fda_srp",
"agency_name": "U.S. Food and Drug Administration",
"guidance": "Report a food problem to the FDA.",
"prefill": {
"batch_lot": "LOT-2026-04",
"closient_reference": "AR-7F3K9Q2M",
"gtin": "00012345678905",
"product_name": "Acme Bagged Salad"
},
"program": "Safety Reporting Portal",
"url": "https://www.safetyreporting.hhs.gov"
},
"report_type": "illness",
"severity": "moderate",
"status": "active"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}File an adverse report
File a typed, severity-graded adverse report (illness / injury / allergic reaction / foreign object / spoilage / packaging defect) for the brand behind a scanned product. Requires an authenticated (social-auth) consumer. Returns a receipt carrying an immutable reference_id, the delivery record, and a prefilled handoff to the appropriate regulator — Closient files with nobody on your behalf, and never gives medical advice.
Rate-limited per identity and per IP (same tight feedback caps as signals). A banned identity is rejected with 403; an oversized body returns 422.
curl --request POST \
--url https://www.closient.com/signals/api/v1/adverse-reports/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"batch": "LOT-2026-04",
"body": "Two of us were unwell a few hours after eating this.",
"contact_consent": true,
"contact_email": "shopper@example.com",
"gtin": "00012345678905",
"report_type": "illness",
"severity": "moderate"
}
'import requests
url = "https://www.closient.com/signals/api/v1/adverse-reports/"
payload = {
"batch": "LOT-2026-04",
"body": "Two of us were unwell a few hours after eating this.",
"contact_consent": True,
"contact_email": "shopper@example.com",
"gtin": "00012345678905",
"report_type": "illness",
"severity": "moderate"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
batch: 'LOT-2026-04',
body: JSON.stringify('Two of us were unwell a few hours after eating this.'),
contact_consent: true,
contact_email: 'shopper@example.com',
gtin: '00012345678905',
report_type: 'illness',
severity: 'moderate'
})
};
fetch('https://www.closient.com/signals/api/v1/adverse-reports/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.closient.com/signals/api/v1/adverse-reports/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'batch' => 'LOT-2026-04',
'body' => 'Two of us were unwell a few hours after eating this.',
'contact_consent' => true,
'contact_email' => 'shopper@example.com',
'gtin' => '00012345678905',
'report_type' => 'illness',
'severity' => 'moderate'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.closient.com/signals/api/v1/adverse-reports/"
payload := strings.NewReader("{\n \"batch\": \"LOT-2026-04\",\n \"body\": \"Two of us were unwell a few hours after eating this.\",\n \"contact_consent\": true,\n \"contact_email\": \"shopper@example.com\",\n \"gtin\": \"00012345678905\",\n \"report_type\": \"illness\",\n \"severity\": \"moderate\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.closient.com/signals/api/v1/adverse-reports/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"batch\": \"LOT-2026-04\",\n \"body\": \"Two of us were unwell a few hours after eating this.\",\n \"contact_consent\": true,\n \"contact_email\": \"shopper@example.com\",\n \"gtin\": \"00012345678905\",\n \"report_type\": \"illness\",\n \"severity\": \"moderate\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.closient.com/signals/api/v1/adverse-reports/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"batch\": \"LOT-2026-04\",\n \"body\": \"Two of us were unwell a few hours after eating this.\",\n \"contact_consent\": true,\n \"contact_email\": \"shopper@example.com\",\n \"gtin\": \"00012345678905\",\n \"report_type\": \"illness\",\n \"severity\": \"moderate\"\n}"
response = http.request(request)
puts response.read_body{
"batch": "LOT-2026-04",
"body": "Two of us were unwell a few hours after eating this.",
"contact_consent": true,
"created": "2026-07-14T14:30:00Z",
"delivery": {
"delivered_at": "2026-07-14T14:30:00Z",
"sla_deadline": "2026-07-15T14:30:00Z",
"state": "delivered",
"within_sla": true
},
"gtin": "00012345678905",
"has_voice": false,
"id": "a1b2c3d4e5f6",
"reference_id": "AR-7F3K9Q2M",
"regulator_handoff": {
"agency": "fda_srp",
"agency_name": "U.S. Food and Drug Administration",
"guidance": "Report a food problem to the FDA.",
"prefill": {
"batch_lot": "LOT-2026-04",
"closient_reference": "AR-7F3K9Q2M",
"gtin": "00012345678905",
"product_name": "Acme Bagged Salad"
},
"program": "Safety Reporting Portal",
"url": "https://www.safetyreporting.hhs.gov"
},
"report_type": "illness",
"severity": "moderate",
"status": "active"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}{
"detail": "The requested resource was not found.",
"error_code": "not_found",
"retryable": false,
"status": 404,
"timestamp": "2026-03-31T12:00:00+00:00",
"title": "Not Found",
"type": "https://closient.com/docs/errors/not_found"
}Authorizations
Body
Payload to file a new adverse report (consumer-facing).
GTIN of the product the report is about, from the resolution context.
Typed harm category (illness / injury / allergic_reaction / foreign_object / spoilage / packaging_defect).
illness, injury, allergic_reaction, foreign_object, spoilage, packaging_defect Optional consumer-declared severity (minor / moderate / serious / life_threatening). Omit or null if the consumer declined — Closient never infers it.
minor, moderate, serious, life_threatening Freeform description of what happened. May be empty for a voice-only report.
Batch/lot identifier (GS1 AI 10) from the scan. The lot is the correlation unit for alerts.
URL-safe 22-character shortuuid encoding of the row's UUID primary key. Stable across the row's lifetime; suitable for sharing in URLs, log lines, and external SDK clients. Accepted on input as either the shortuuid form or the canonical UUID form (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$Explicit opt-in to be contacted by the brand about this report.
Contact address the consumer agrees to be reached at. Must be one of their own verified account email addresses. Only meaningful when contact_consent is true.
Response
Created
A filed adverse report as the reporter sees it — the receipt.
Carries the immutable reference id, the report's typed fields, the delivery record, and the prefilled regulator handoff (Closient never files on the consumer's behalf — the handoff is how they complete the real report).
Immutable, human-facing reference the reporter quotes to track it.
Public short-UUID identifier of the adverse report.
22^[23456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{22}$GTIN-14 of the product this report is about.
Typed harm category code.
illness, injury, allergic_reaction, foreign_object, spoilage, packaging_defect Freeform description the consumer wrote (may be empty for voice-only).
Underlying signal lifecycle code: active or revoked.
True when a voice capture session backs this report.
Whether the consumer opted in to be contacted by the brand.
ISO-8601 timestamp the report was filed.
The immutable delivery record for this report.
Show child attributes
Show child attributes
{
"delivered_at": "2026-07-14T14:30:00Z",
"sla_deadline": "2026-07-15T14:30:00Z",
"state": "delivered",
"within_sla": true
}
Prefilled handoff to the appropriate regulator — the consumer completes the filing.
Show child attributes
Show child attributes
{
"agency": "fda_srp",
"agency_name": "U.S. Food and Drug Administration",
"guidance": "Report a food, dietary-supplement or cosmetic problem to the FDA.",
"prefill": {
"batch_lot": "LOT-2026-04",
"closient_reference": "AR-7F3K9Q2M",
"gtin": "00012345678905",
"product_name": "Acme Bagged Salad"
},
"program": "Safety Reporting Portal",
"url": "https://www.safetyreporting.hhs.gov"
}
Batch/lot identifier (GS1 AI 10) from the scan, or null.
Serialized-unit context from the scan, or null.
Consumer-declared severity code, or null if not graded. Never inferred by Closient.
minor, moderate, serious, life_threatening