Skip to main content
An agent can start a Datalyr signup, prefill the workspace details, and verify the install end to end. A person pays, approves scripts, and mints keys. This page is the exact flow across that boundary.

The four hand-offs

Step 1: start the signup

POST /v1/signup is the only Datalyr API route that needs no key. It sends one verification email and returns one field.
Nothing is created by this call. The account row is written when the recipient opens the link, from their own browser. An unopened link leaves no account behind.

Step 2: the person verifies and pays

The link signs the person in and lands them on the new-workspace form, prefilled with the name and domain you sent. They pick a plan and complete a Stripe checkout hosted by our billing provider. The workspace row is created when that payment settles. Until then no workspace exists, no API key exists, and no data can be sent or read. Give the person the signup email address you used and tell them to expect the link. Do not ask them for card details, and do not accept any.

Step 3: setup

Ask the person for two things once their workspace is live.
  1. Install tracking. Point them at Install web tracking or Mobile.
  2. Create a named API key with the scopes you need. See API keys.
With a scoped key you can create conversion rules and trackable links directly, and propose container scripts for review. Each route names the scope it needs.

Step 4: confirm it works

GET /v1/onboarding needs an Agent key, so it answers only after step 2. Read next_steps, drive one item, then read it again.
Confirm the install by watching first_event_seen_at change from null to a timestamp after the person adds the snippet. A 200 on the key alone proves only that the key works.

What an agent cannot do

These four are human actions by design, not gaps to work around. MCP has no signup tool for the same reason. MCP needs an OAuth token, which needs an account that already exists. Use POST /v1/signup before that point, and get_onboarding_status after it.