InsionInsion
Python

Ingest a record

Persist a record for asynchronous moderation

result = client.ingest_a_record(
    client_id="post-123",
    name="A post",
    entity="post",
    content="Hello world",
)

The required arguments are client_id, name, entity, and content. client_url, metadata, and user are optional. The result is IngestRecordResponse, with the Insion record ID and, when processing is queued, a moderation ID.

Use ingestion for imports, feeds, and other workflows that can receive a webhook later. Sending the same client_id updates the existing record.