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:
- An Insion account.
- An API key from the Developer section of your dashboard.
- A Ruby project with RubyGems available.
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 insionMake 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.statusNext 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?