Quick Start

Get started with Detour

Set up deferred deep linking in your mobile app in under 10 minutes. Follow the steps below for your platform.

Prefer AI-guided setup?

Use /detour-onboarding in Claude Code.

Install first:

npx -y skills add software-mansion-labs/skills --agent claude-code

Choose your platform

Install

Add the Detour SDK to your project using your preferred package manager.

Core package

npm install @swmansion/react-native-detour

Peer dependencies

npx expo install expo-application expo-clipboard expo-constants expo-localization @react-native-async-storage/async-storage expo-device

Bare React Native: use react-native-device-info instead of expo-device.

Need a different storage backend? Swap @react-native-async-storage/async-storage for MMKV, SecureStore, or a custom adapter. Custom storage docs

Configure

Initialise the SDK with your App ID and API Key. You'll copy these from the Detour dashboard in the next step.

detour.config.ts
import { type Config } from '@swmansion/react-native-detour';

export const detourConfig: Config = {
  apiKey: process.env.EXPO_PUBLIC_DETOUR_API_KEY!,
  appID: process.env.EXPO_PUBLIC_DETOUR_APP_ID!,
  shouldUseClipboard: true,
  linkProcessingMode: 'deferred-only',
};
src/app/+native-intent.tsx
import { createDetourNativeIntentHandler } from '@swmansion/react-native-detour';
import { detourConfig } from '@/detour.config';

export const handleNativeIntent = createDetourNativeIntentHandler(detourConfig);
src/app/_layout.tsx
import { DetourProvider } from '@swmansion/react-native-detour';
import { Stack } from 'expo-router';
import { detourConfig } from '@/detour.config';

export default function RootLayout() {
  return (
    <DetourProvider config={detourConfig}>
      <Stack />
    </DetourProvider>
  );
}

Get your credentials

Detour routes links through your workspace subdomain. An App ID and API Key bind the SDK to your account — you'll need both before your first deferred link can resolve.

  1. 01

    Create your account

    Sign up at the Detour dashboard and confirm your email address.

    Open dashboard
  2. 02

    Create an organisation

    Choose a unique subdomain — this becomes the base for all your deferred links (e.g. yourorg.godetour.link).

  3. 03

    Create your app

    Add a new app in the dashboard. Detour will generate an App ID, a Publishable API Key, and your base deferred link automatically.

  4. 04

    Copy your credentials

    Go to the API Configuration tab and copy your Publishable API Key and App ID — you'll need them in the Configure step above.

You're all set.

Open your dashboard to see your app and first deferred link.

Need more details? Read the docs.

Need anything specific?

Whether you're stuck on setup, have a feature request, or are exploring enterprise options like self-hosting or SSO — we're happy to help.