SDKs & Client Libraries

Official FRITH SDKs for Node.js, Python, Ruby, and PHP.

Node.js / TypeScriptAvailable
npm install @frithai/sdk
import { FrithClient } from '@frithai/sdk'; const frith = new FrithClient({ apiKey: process.env.FRITH_API_KEY }); const matters = await frith.matters.list({ status: 'active' });
PythonAvailable
pip install frithai
from frithai import FrithClient frith = FrithClient(api_key=os.environ["FRITH_API_KEY"]) matters = frith.matters.list(status="active")
RubyBeta
gem install frithai
require 'frithai' frith = Frithai::Client.new(api_key: ENV['FRITH_API_KEY']) matters = frith.matters.list(status: 'active')
PHPBeta
composer require frithai/sdk
$frith = new Frithai\Client(['api_key' => getenv('FRITH_API_KEY')]); $matters = $frith->matters->list(['status' => 'active']);
GoComing soon
go get getfrith.com/sdk-go
JavaComing soon
Maven: io.frithai:sdk

Common patterns

  • All SDKs auto-retry on 429 rate limit errors with exponential backoff.
  • Pagination: all list methods accept page and limit parameters and return a Paginator object with a hasMore property.
  • Error handling: SDK errors are typed — catch FrithApiError for API errors, FrithAuthError for auth failures.
  • Timeouts: default 30 seconds per request. Override in the client constructor.
  • Logging: set logLevel: "debug" to see all outgoing requests and responses.

SDK source and community libraries

Official SDK source code, issue tracker, and contribution guidelines are at github.com/frithai. Community-contributed libraries for additional languages are listed in the frithai/community-sdks repository. Community libraries are not officially supported but are reviewed for security before listing.

Related articles

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.