Go
Ingest a record
Persist a record for asynchronous moderation
result, err := client.IngestARecord(ctx, sdk.IngestRecordRequest{
ClientID: "post-123", Name: "A post", Entity: "post", Content: &sdk.Content{String: "Hello world"},
})Signature
IngestARecord(context.Context, sdk.IngestRecordRequest, ...option.RequestOption) (*sdk.IngestRecordResponse, error)The required fields are ClientID, Name, Entity, and Content; record URL, metadata, and user are optional. The response contains the Insion record ID and any queued moderation ID. Reusing ClientID updates the record.
Request fields and delivery
IngestRecordRequest has the same fields as a record: required ClientID, Name, Entity, and Content, plus optional ClientURL, Metadata, and User. Use it for imports, feeds, and other work where a webhook can deliver the eventual moderation result.
The returned record ID identifies the stored content. If the response contains a moderation ID, keep it with your job or event data to correlate the later webhook. For an immediate decision, call ModerateARecord instead.