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-codeChoose your platform
Install
Add the Detour SDK to your project using your preferred package manager.
Core package
npm install @swmansion/react-native-detourPeer dependencies
npx expo install expo-application expo-clipboard expo-constants expo-localization @react-native-async-storage/async-storage expo-deviceBare 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.
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',
};import { createDetourNativeIntentHandler } from '@swmansion/react-native-detour';
import { detourConfig } from '@/detour.config';
export const handleNativeIntent = createDetourNativeIntentHandler(detourConfig);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.
- 01
- 02
Create an organisation
Choose a unique subdomain — this becomes the base for all your deferred links (e.g. yourorg.godetour.link).
- 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.
- 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.