API Onboarding Funnel: Find Where New Developers Stall and Design an A/B Test
Company: Anthropic
Role: Software Engineer
Category: Analytics & Experimentation
Difficulty: hard
Interview Round: Onsite
This is a take-home of about two hours for a growth engineering role. You are given a test account for a developer API product. Go through the new developer's path yourself, from creating an API key to making the first successful API request, and work out where new users are most likely to get stuck. Then propose two experiments, one large and one small, choose one of them to run as an A/B test, and state clearly which metrics will decide whether it worked.
The product's exact onboarding steps, the data available and the traffic volume were not reported; state your assumptions and ask about them.
### Clarifying Questions
- What exactly counts as a "first successful request": any 2xx response to a call authenticated with the user's own key, from any client? Within what window after signup?
- Besides your own walkthrough, what data is available: product event logs, API request logs with status codes, support tickets, documentation analytics?
- Who are the new users: individual developers, people invited into an existing organization, or both? Do several people share keys?
- Which parts of the flow are off-limits for experiments (for example verification, billing or safety checks), and roughly how many new accounts reach key creation each week?
- Should the large experiment be something one team can ship within a quarter, or can it be a redesign?
### Part 1: Map the path and find where new users get stuck
Walk the flow from signup through API key creation to the first successful request, document each step, and identify where new users are most likely to stall. Explain how you would confirm with data which steps lose the most users.
```hint Your walkthrough is one user
Your own run shows where friction exists, not how many people it stops. Think about which events, with timestamps, would let you measure each step's drop-off and the time spent between steps.
```
```hint A failed request is its own step
A developer who created a key and then received an error is in a different situation from one who never tried. Think about how the API's responses could split those groups further.
```
#### What This Part Should Cover
- A step-by-step funnel with the event that marks each step
- Friction hypotheses from the walkthrough, kept separate from measured drop-off
- Step conversion and time to first success, segmented by meaningful user groups
- Separating users who never tried from users whose requests failed, by error type
### Part 2: Propose one large and one small experiment
Propose two experiments aimed at the stall points you found: one large and one small.
```hint What makes an experiment small
Compare a change to copy, defaults or a code sample that ships in days with a change to the flow itself, in effort, risk and how cleanly you can attribute the result.
```
#### What This Part Should Cover
- Each experiment tied to a specific stall point and a falsifiable hypothesis
- Effort, risk and expected impact contrasted between the two
- Why each one can be measured with the data available
### Part 3: Turn one into an A/B test with decision metrics
Choose one experiment and design the A/B test, including which metrics decide whether it is useful.
```hint One metric decides
Pick the single metric that captures the outcome you want before the test starts, then ask which other metrics could get worse while it improves.
```
```hint Who is randomized, and when
Consider the unit of randomization and the moment of assignment, given that some users never reach the changed screen and some share an organization.
```
#### What This Part Should Cover
- Unit of randomization, eligibility and the point of assignment
- Primary metric, secondary metrics and guardrails, each with a precise definition and time window
- Sample size and duration reasoning, and a decision rule fixed in advance
- Threats to validity specific to this flow
### What a Strong Answer Covers
- A funnel from account creation to first successful request that is measured, not guessed
- Hypotheses grounded in the walkthrough and the data, with experiments sized appropriately
- A well-specified test: randomization unit, primary metric, guardrails, power and decision rule
- Awareness that first success is a proxy, and a link to longer-term usage
- A clear written deliverable within the two-hour limit
### Follow-up Questions
- The treatment raises first-request success within 24 hours, but usage after 30 days is flat. What do you conclude, and what next?
- Many new accounts belong to the same organization and share keys. How does that change your randomization and analysis?
- The onboarding flow gets too little traffic to detect your expected effect within a month. What are your options?
- A noticeable share of new accounts look automated or abusive. Should they be in the analysis, and how would you identify them?
Overview: A growth engineering take-home: walk a new developer's path from creating an API key to the first successful request and identify where users stall. It then asks for one large and one small experiment, and an A/B test design with a primary metric, guardrails, power reasoning and a decision rule.
Read the full Anthropic Software Engineer interview experience this question came from