PlennoHelp

Live and test API keys

Try an integration safely with a test key: it creates marked test customers without real follow-up.

For owners and admins
On this page

Purpose

With a test key you can safely try out a new integration (a website, a form plugin) without creating a real opportunity (deal) or notification, and without it counting in your figures, when a request comes in.

Live versus test

When you create an API key, you choose Live or Test. Both use the same API. The mode and the permissions you choose determine which data you can read and change. For POST /api/v1/leads, what happens after a request is received also differs.

Key prefix What it does
Live pln_live_... Creates real requests. A sales lead gets a real opportunity, and the usual notifications are sent. A live key can have its own destination (see Route new opportunities to a sales process).
Test pln_test_... Creates test requests, without an opportunity and without a notification on arrival. So it does not need a sales destination.

The prefix is only there to make keys easy to recognise. Which mode applies is fixed when the key is created (the LIVE or TEST label next to the key in Settings → Integrations), not by anything you send with a call. So you cannot "convert" a live key into a test key: create a new key.

What a test request does and does not do

A request that comes in with a test key:

  • becomes a test customer in Plenno, clearly marked with a TEST label in the Customers list and in the customer record;
  • does not create an opportunity, whatever type you send;
  • does not trigger a notification (email or browser notification) on arrival;
  • is normally not included in the Follow up section on Today, even if you set a reminder on it;
  • does not count towards the request figures on the Dashboard and in Figures (for example "new requests this month"), nor towards the limit of 10 requests on Plenno Free;
  • does not count as won or lost in Figures when you change the customer’s stage either;
  • does not trigger the original lead events (legacy) itself (see Set up and secure webhooks). Lifecycle webhooks do exist for test data; the payload then includes mode: "test".

If you continue working on a test request yourself, that work is not automatically treated as test data:

  • a quote or invoice you create for a test request counts towards the quote and invoice figures, and can appear under Awaiting approval or Awaiting payment on Today;
  • if you create an opportunity for a test request yourself and mark it as won or lost, it can count in Figures and trigger a webhook event;
  • a reminder on a test request does not produce a reminder notification: test customers are excluded from reminder processing.

A test key cannot have its own destination; the key shows "Test keys do not create deals." An assignee_email is checked and applied for a test request, but no notification is sent on arrival.

The request is still created and you can find it. A test key prevents the request from being handled as a regular new sales request. Things you do with it afterwards, such as creating a quote, invoice or opportunity, or setting a reminder, can still show up in other parts of Plenno (see above).

View test requests

As soon as there are test customers, a Show test customers button appears on the Customers list, with the number next to it. Test customers are hidden by default, so your normal customer list stays clean.

Separation between live and test

  • Live and test may use the same external_id without blocking each other: they are two separate sets.
  • A test key can never update a live request with PATCH, and a live key can never update a test request. In both cases you get 404 not_found, the same response as for an unknown ID, so nothing is revealed.
  • With only leads:create, a key may only update its own requests. With leads:write, it may also update other requests from the same company, within the same mode (see Create and update a customer through the API).

Example 4: send a test request

The same as a regular request, just with a test key:

curl -X POST https://app.plenno.nl/api/v1/leads \
  -H "Authorization: Bearer pln_test_xxxxxxxx_REPLACE_WITH_YOUR_OWN_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Jan Voorbeeld",
    "email": "jan@example.com",
    "phone": "+31 6 12345678",
    "message": "This is a test request from the new website integration.",
    "external_id": "integratietest-001"
  }'

Response: HTTP 201

{
  "success": true,
  "lead_id": "00000000-0000-4000-8000-000000000002",
  "url": "https://app.plenno.nl/app/leads/00000000-0000-4000-8000-000000000002",
  "status": "Nieuw",
  "created": true,
  "mode": "test"
}

Open the link in url: the customer is there, with the TEST label. No opportunity has been created, no notification has been sent, and the request does not count towards your request figures.

If something goes wrong

  • Do you get 404 not_found on a PATCH that worked before? Check whether you are accidentally using a live key on a test request, or the other way round.
  • Can you not see the test customer in the list? Click Show test customers above the Customers list.

From test to live

  1. Test the integration with a test key.
  2. Create a live key and use it in your production integration.
  3. If needed, set a destination for that key (see Route new opportunities to a sales process).
  4. Revoke the test key as soon as you no longer need it.

Note

Only use a test key to try out an integration, not as a permanent way to create "invisible" requests. Revoke a test key as soon as the integration is running in production on its live key.

Next steps

Read Error codes and limits.

Reading and actions in API v1.1

A test key only reads test customers and their actions (in the API: activities). API actions on a test customer do not appear in the real Today overview or the daily digest. A test request never gets an opportunity automatically, and changing a real opportunity returns 404 not_found; with deals:write, a test key can create an opportunity for a test customer itself. Quotes, invoices and work orders only exist in live mode. With metadata:read you can look up team members and sales processes to test assignment. A live key only sees live data.

This is about the API. Quotes, invoices and opportunities created by hand in Plenno remain the exceptions described above. Read API v1.1.

Updated November 19, 2026 · Checked against Plenno 9.5.5

Related articles

Was this helpful?