Launch Pad partner integration demo
This app plays the role of "Your Ag App" - a fictional partner product that adds Launch Pad path planning to its own software. It makes real calls to the Launch Pad public REST API and shows you every request and response in a live log, so you can see exactly what your integration needs to do before writing a line of code. The app is kept deliberately small so you can read the source and copy from it.
The whole journey is three steps
- Setup - your backend authenticates with your Partner Admin service account: the one privileged API key every call runs as. Your end users never see or hold keys.
- Provision - as that account, create everything your user needs before they ever arrive: their identity and access (user + company/organization), then the land - company/organization > grower > farm > field > boundary (CGFFB).
- Hand off - request a single-use launch code and open Launch Pad signed in as your user: the person currently clicking around your app, the same one step 2 just provisioned. Your service account only does the asking; the session that opens belongs to them. They land straight on the boundary you pushed, and the only choice left is where that happens: A. Companion mode (new browser window) or B. Embedded mode (iframe in your UI).
The three steps map one-to-one to the sequence diagram on How it works.
flowchart LR
S["1. Setup
connect your Partner Admin key"] --> P["2. Provision
user + company/org + access,
then grower, farm, field + boundary"]
P --> H["3. Handoff
launch code signs in
YOUR user, not your key"]
H --> A["A. Companion mode
(new browser window)"]
H --> B["B. Embedded mode
(iframe in your UI)"]
Start the journey: connect your key
Where Launch Pad appears: A or B
ACompanion mode new browser window
Launch Pad opens in a new browser window next to your app, deep-linked straight to path planning for the boundary you pushed, already signed in as your user.
See companion modeBEmbedded mode iframe in your UI
The same handoff, but Launch Pad renders inside your own UI in an iframe, with its navigation chrome hidden and a partner theme applied.
See embedded modeRead the source - this app is your sample code
Clicking through the pages shows you the journey; the code shows you the implementation, and you are expected to open it. The whole app is a handful of small files with no framework and no build step, written to be copied from: what you read is exactly what runs, including the same calls you just watched in the live log.
Start with js/api.js -
one function per REST endpoint, request and response shapes in the comments, the
fetch plumbing kept at the bottom. When you build your own integration, lift that
file first. How it works has the full technical
explanation of the demo, including what every file is for.