InsionInsion
Ruby

Ruby SDK

Install and start using the official Insion Ruby client

The official Insion Ruby SDK lets Ruby applications moderate content, ingest records, manage users, and submit appeals without constructing HTTP requests. This guide walks you through installing the gem, creating an authenticated client, and sending a record for immediate moderation.

Before you begin

You'll need:

Use immediate moderation when your application needs a decision in the current request. Use ingestion when moderation can happen asynchronously and your application receives the result through a webhook.

Install

gem install insion

Make your first request

require "insion"

client = Insion::Client.new(token: ENV.fetch("INSION_API_KEY"))
result = client.moderate_a_record(
  client_id: "post-123", name: "Welcome post", entity: "post", content: "Hello world"
)
puts result.status

Next steps

  • Fine-tune client and request behavior in Configuration.
  • Explore every supported request and response in Operations.
  • Prepare production error handling with Errors.

Get Involved

How is this guide?

On this page

Latest Release

View the Ruby SDK on RubyGemsRuby SDK versionRuby SDK license