Route new opportunities to a sales process
Which sales process and stage the opportunity from an API request starts in, and how to set this for the whole company or per API key.
On this page
Purpose
A sales lead that comes in through the API becomes a Customer with a linked Opportunity (in the API and in a few screen labels: deal). This article explains in which sales process and stage that opportunity starts, and how to set this up.
You do not need to send a sales process or stage in your API request. Plenno decides this itself.
How Plenno chooses the destination
API request
↓
Customer
↓
sales lead? → linked opportunity
↓
choose destination
↓
sales process + stage
Plenno chooses the opportunity’s destination in this order:
- The live key has its own destination. Plenno uses it.
- Otherwise: the company-wide setting "Where do new opportunities start?". Plenno uses the sales process and stage you chose there.
- Nothing set there either, or the choice is no longer usable? Plenno uses your company’s default sales process and the first available open stage in it.
If there is no usable open stage at all, Plenno cannot create the opportunity. The sales lead is then
rejected with 500 internal_error and not created; see If something goes wrong below.
The customer itself always appears under Customers, with its own stage. Only the opportunity follows the destination above.
Company-wide: "Where do new opportunities start?"
This setting applies to your whole company: to requests from your website, the API, n8n, WhatsApp and customers added by hand (unless a live key has its own destination). An owner or admin sets it.
- Go to Settings and, in the Company group, find the Where do new opportunities start? section. In Simple view, choose More details · Stage and sales process first.
- Choose the Sales process, for example "Sales".
- Choose the Stage, for example "New lead".
- Click Save.
To go back to the default sales process, choose Use default and save.
If the chosen sales process or stage is archived later, Plenno shows a message there and temporarily uses the default sales process. Choose again in that case.
Per API key
Do you want opportunities from one particular key to start somewhere else, for example in a separate sales process for website requests? Give that live key its own destination.
- Go to Settings → Integrations → API keys (website forms).
- Find the live key, for example "Website form". Under Destination it now says Default route.
- Click Configure (or Change if it already has its own destination).
- In the API deal destination window, choose the Sales process and then the Stage, for example "Sales" → "New lead".
- Click Save.
The key then shows, for example, Destination: Sales → New lead.
This is only possible for an active live key, and only for an owner: API keys are under Integrations, which admins cannot access. An employee with the extra access type API and integrations can see the destination but cannot change it. The stage must be an open stage: an opportunity never starts as "won" or "lost".
Back to the organisation default
In that window, under Sales process, choose Use organization default and click Save. The key then no longer has its own route: new opportunities from this key follow the company-wide setting "Where do new opportunities start?" again.
If a key’s own destination is no longer active (for example because the sales process has been archived), the key shows a message and Plenno uses the default route.
What applies to which type of request
| Situation | Result |
|---|---|
Live key, type is lead or omitted |
Customer + opportunity, following the destination above. |
Live key, another type (for example download) |
Customer only. No opportunity, so no destination needed. |
| Test key | Test customer. No opportunity and no sales destination needed. |
See Create
and update a customer through the API for type, and
Live and test API keys
for the difference between live and test.
Example
Your company has two sales processes: "Installatie" (installation) and "Sales". You set:
- Where do new opportunities start? → Installatie → Intake
- Live key "Website form" → Destination → Sales → New lead
A request sent with the "Website form" key then creates an opportunity in Sales → New lead. A request through another live key, or a customer added by hand, creates an opportunity in Installatie → Intake.
The API request is the same in both cases:
{
"name": "Jan Voorbeeld",
"email": "jan@example.com",
"external_id": "website-lead-1001",
"type": "lead"
}
Rename an opportunity
An automatically created opportunity gets the name of the person who sent the request. You can rename it later in Plenno with Rename on the opportunity.
If something goes wrong
- No Configure button next to a key? Then the key is a test key or has been revoked, or you are not an owner.
- Does an opportunity not start where you expect? First check that the request uses a live key and
that
typeislead(or omitted). Then check whether the key has its own destination; that takes priority over the company-wide setting. - Do you get
500 internal_errorfor a sales lead, and does your company have no active sales process with an open stage? Create or reactivate one. The request has not been created; you can send it again with the sameexternal_id.
Next steps
Updated November 19, 2026 · Checked against Plenno 9.5.5