PurrCRM for developers

Set it up once. Your team does the rest.

Add the SDK to your app, sign your users in from your backend, and the messenger, help center and in-app messages just work. Everything after that, your team does in PurrCRM without a release.

  • DartFlutter
  • KotlinAndroid
  • SwiftiOS
  • TSWeb
  • HTMLAny website

Four steps

From nothing to your first message

The same four steps on every platform. Pick one to see its lines in the code.

Flutter Dart

// pubspec.yaml: crm_sdk, from git at v1.1.0final tokens = CrmFetchedTokens(() async {  final answer = await myBackend.get('/crm-token');  if (answer == null) return null; // nobody is signed in  return CrmFetchedToken(answer['token'] as String);}); final crm = Crm(  config: CrmConfig(    apiBase: Uri.parse('https://app.purrcrm.com'),    appKey: 'app_…', appVersion: '1.0.0'),  auth: CrmAuth.tokens(tokens),); crm.start(); // in main(), before runAppcrm..session(CrmSession(guestId: user.id))..setReady(true);

Android Kotlin

// build.gradle.ktsimplementation("com.github.MichalTDev:crm-android:v0.2.0") val tokens = CrmTokens.fetched {    val token = myBackend.crmToken() ?: return@fetched null    CrmFetchedToken(token)}crm = Crm(    context = this,    config = CrmConfig(apiBase = "https://app.purrcrm.com",        appKey = "app_…", appVersion = BuildConfig.VERSION_NAME,        debug = BuildConfig.DEBUG), // the setup check    auth = CrmAuth.tokens(tokens),    host = CrmHost(navigate = { where -> showCrmScreen(where) }),)crm.start()crm.session(CrmSession(guestId = user.id)); crm.setReady(true)

iOS Swift

// Package.swift.package(url: "https://github.com/MichalTDev/crm-ios.git", from: "0.2.0") let tokens = CrmFetchedTokens {    guard let token = try await myBackend.crmToken() else { return nil }    return CrmFetchedToken(token)}let crm = Crm(    config: CrmConfig(apiBase: URL(string: "https://app.purrcrm.com")!,        appKey: "app_…", appVersion: "1.0.0",        debug: true), // the setup check, in development    auth: .tokens(tokens),    host: CrmHost(navigate: { destination in router.open(destination) })) Task { await crm.start() }crm.session(CrmSession(guestId: user.id)); crm.setReady(true)

Web TypeScript

// npm install github:MichalTDev/crm-web#v0.2.0import { Crm, CrmAuth, CrmTokens } from "crm-sdk"; const tokens = CrmTokens.fetched(async () => {  const answer = await fetch("/api/crm-token"); // signed by your backend  return answer.ok ? (await answer.json()).token : null;});export const crm = new Crm({  config: { apiBase: "https://app.purrcrm.com", appKey: "app_…",    appVersion: "2.4.0", debug: true }, // the setup check  auth: CrmAuth.tokens(tokens),  host: { navigate: (where, how) => showCrmPage(where, how) },}); await crm.start();crm.session({ guestId: user.id }); crm.setReady(true);

Lit lines: step 3, “Sign users in with your backend's token”. The code follows each SDK's README.

A website

One line, and your site has the messenger

Paste the script tag before </body>. Visitors can chat and search your help center straight away, and their conversations follow them once they sign in.

<script src="https://app.purrcrm.com/public/v1/messenger/web/app_….js" async></script>
Read the website guide (opens in a new tab)
A drawing of the setup check: each row a check, such as the SDK started, PurrCRM reached, the user signed in and the events sent, lime when it passes; notifications amber, not asked yet, and the push token waiting for them.

While you build

A setup check that says what's missing

In a debug build, the Android, iOS and web SDKs show a panel over your app. Each row checks one thing, from reaching PurrCRM to the push token, and says what to do when it isn't right yet.

  • Send a test event and see it arrive
  • Export a report to share with support
  • Folds to a small pill, and never ships in a release build
Read about the setup check (opens in a new tab)

The SDKs

Your app, your screens, or ours

Every SDK comes two ways. Built-in screens: the messenger, help center, tickets and in-app messages, drawn for you in the look you set in PurrCRM. Headless: the data and the calls, and you draw every screen.

Mix them. Use our help center and your own messenger, or the other way round: choose screen by screen on Android and iOS, and every built-in screen is themed from PurrCRM, without a release.

Your backend

Sign-in, webhooks and a server API

Once it runs

Push, links and events

The API

A documented API, with limits that say so

  • Every route in an OpenAPI 3.1 file you can generate a client from, and a Go client ready made.
  • Too many requests answer 429 with Retry-After; every error names its problem.
  • Erase or export a person's data with one call, for GDPR requests.
  • Webhooks signed with X-CRM-Signature, so you know they came from us.
Requirements
SDKNeeds
AndroidminSdk 21 (built-in screens: 23), Kotlin 1.9
iOSiOS 13, Xcode 16, Swift 6
FlutterFlutter 3.47.5, Dart 3.13.4
WebChrome and Edge 66, Firefox 60, Safari 12.1 and up

Build against a test appEvery app has a test copy with its own keys, customers and data, for your staging build. Pushes only reach your testers, and it's never billed.

How test mode works (opens in a new tab)

Ready when your app is

Join the waitlist, or sign up if your team has an invite. Your first app is free.