InsionInsion
Swift

Swift SDK

Install and start using the official Swift-concurrency Insion client

The official Insion Swift SDK lets Apple-platform applications moderate content, ingest records, manage users, and submit appeals without constructing HTTP requests. This guide walks you through adding the package, 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

Add https://github.com/insion-co/swift as a Swift Package dependency, then add the Insion product to the target that calls the API.

Make your first request

import Insion

let client = InsionClient(token: "<token>")
let result = try await client.moderateARecord(request: .init(
    clientId: "post-123", name: "Welcome post", entity: "post", content: .string("Hello world")
))

Every operation is async throws.

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 Swift SDK on GitHubSwift SDK versionSwift SDK license