PlennoHelp

Getting started with the Leads API

How to create an API key, choose permissions and start safely with the Plenno API.

For owners and admins
On this page

Purpose

With the Leads API, a website, form back end or other system puts a request straight into Plenno instead of forwarding it by email. The request immediately appears in Plenno as a customer and gets the same follow-up as a customer you add in Plenno yourself.

This article shows you how to get started. The rest of the API documentation is in these articles:

How it works

A normal sales lead arrives in Plenno as a new request. Plenno turns it into a Customer and automatically creates a linked Opportunity (in the API: deal) in a sales process. A request that is not a sales lead, such as a download or a job application, becomes a customer without an opportunity.

So you do not send a sales process or stage: Plenno decides where the opportunity starts, based on your settings. See Route new opportunities to a sales process.

What you need

  • You are an Owner, or an Employee with Extra access: API and integrations. An Admin does not have access to API keys.
  • Developer features are turned on in Settings. Only an owner can turn this on. Without it, Integrations is not visible, not even to an owner.
  • Only an owner can set a key’s own destination (see Routing). An employee with extra access can see the destination but cannot change it.

Step 1: open API keys

Go to Settings → Integrations and find the API keys (website forms) section.

Step 2: create a key

  1. Under Key name, enter a name you will recognise, for example "Website form".
  2. Under Key type, choose Live or Test. A live key creates real requests; a test key creates test requests. See Live and test API keys.
  3. Under Permissions for this key, choose what the integration is allowed to do. By default, only Submit requests (and update its own requests) is selected; that is enough for a website form.
  4. Click Create API key.
  5. Copy the key straight away with Copy and store it safely, for example in your server’s settings or secrets vault.
  6. Click I have saved it.

The full key is shown once, right after you create it. Plenno cannot show it again afterwards. If you lose it, create a new key and revoke the old one.

You can have up to ten active keys at a time: live and test keys and n8n keys combined. Revoked keys do not count. Create a separate key for each website or system, so you can revoke one without affecting the others.

Authentication

Every call sends the key as a bearer token in the Authorization header:

Authorization: Bearer pln_live_xxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

A test key starts with pln_test_, a live key with pln_live_. Never use your real key in examples, tickets or screenshots.

The key itself determines which company the request belongs to. So you never send a company, account or user ID; doing so is rejected (see Error codes and limits).

Send your first request

curl -X POST https://app.plenno.nl/api/v1/leads \
  -H "Authorization: Bearer pln_test_xxxxxxxx_REPLACE_WITH_YOUR_OWN_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Jan Voorbeeld",
    "email": "jan@example.com",
    "external_id": "website-lead-1001"
  }'

Start with a test key, so nothing real happens. All fields and responses are described in Create and update a customer through the API.

Treat a key like a password. Never put it in your website’s JavaScript or HTML: any visitor could read it and create requests in your Plenno account. The call must go from your server (PHP, Node, a form plugin, a workflow tool) to Plenno. That is why the API deliberately does not support CORS: a browser cannot call it directly. Never share a key in a support ticket, chat or screenshot either. Plenno will never ask you for it.

Revoke a key

No longer using a key, or think it may have leaked? In the overview, click Revoke key next to it. This takes effect immediately: from that moment, the key rejects every call. If you need a key again later, create a new one.

If something goes wrong

  • Is Integrations missing from Settings? Ask an owner to turn on Developer features, or to give you, as an employee, Extra access: API and integrations. If you are an admin, you do not have access to Integrations; ask an owner.
  • Do you get 401 unauthorized on every call? Check that the key was copied in full and unchanged, after Bearer and a space, and that it has not been revoked.
  • Do you get 415 unsupported_media_type? Send the header Content-Type: application/json.

Next steps

Read Create and update a customer through the API.

More than submitting requests: API v1.1

When you create a key, choose under Permissions for this key what the integration may do. By default, only Submit requests (and update its own requests) is selected; existing keys keep this permission. With extra permissions, an integration can, among other things, read or update customers (in the API: leads), opportunities (deals), actions (activities), companies, quotes, invoices and work orders, and look up team members and sales processes. You cannot add permissions to an existing key afterwards: create a new key and revoke the old one once your integration has switched over.

Read API v1.1: customers, opportunities and actions for the permissions, endpoints, live/test separation and how to handle concurrent changes safely.

Updated November 19, 2026 · Checked against Plenno 9.5.5

Related articles

Was this helpful?