PHP
Ingest a record
Persist a record for asynchronous moderation
$result = $client->ingestARecord(new RecordInput([
'clientId' => 'post-123', 'name' => 'A post', 'entity' => 'post', 'content' => 'Hello world',
]));ingestARecord(RecordInput $request, ?array $options = null): ?IngestRecordResponse requires the same four record fields and optionally accepts clientUrl, metadata, and user. The response contains the Insion record ID and any queued moderation ID. Reuse clientId to update a record; use webhooks for the final decision.
The RecordInput constructor accepts an array keyed by the API field names. Preserve the returned ID for later retrieval, and preserve the moderation ID when present to correlate a webhook. A null return means the server returned a successful empty body; exceptions indicate transport, serialization, or API failure.