PlennoHelp

Assign a team member through the API

Use assignee_email to choose, from your integration, which team member is assigned to a new customer and the linked opportunity.

For owners and admins
On this page

Purpose

With the assignee_email field, your integration decides straight away which team member a new request is assigned to. Nobody has to assign it by hand in Plenno.

Example

{
  "name": "Jan Voorbeeld",
  "email": "jan@example.com",
  "external_id": "website-lead-1001",
  "type": "lead",
  "assignee_email": "sanne@example.com"
}

In this example, sanne@example.com belongs to Sanne Demo, a team member at Demo Installatiebedrijf.

What happens

  • The new Customer is assigned to Sanne Demo.
  • If it is a sales lead (type is lead or omitted, sent with a live key), the linked Opportunity is assigned to the same person.
  • With a live key, the notification about the new request goes to that team member instead of to the person who created the key. It is sent by email, and as a browser notification if the team member has turned browser notifications on. A test key never sends notifications.

A request with a different type (for example download) is still assigned, but does not get an opportunity.

Requirements

The email address must belong to an active team member of the same Plenno organisation as the API key. If the person appears under Team with the status Active, the address will work.

It must also be a valid email address of no more than 160 characters. Upper and lower case make no difference.

If the email address is not accepted

If the address does not belong to an active team member of your organisation, Plenno rejects the request with 422 validation_error:

{
  "success": false,
  "error": {
    "code": "validation_error",
    "message": "One or more fields are invalid.",
    "fields": {
      "assignee_email": {
        "code": "assignee_not_found",
        "message": "Must be the email address of an active member of this organization"
      }
    }
  }
}

You get this response for an unknown address, for a suspended team member and for someone outside your organisation. Plenno deliberately returns the same response in every case, so the API cannot be used to find out who is a member.

The request has not been created and your external_id is still available. Correct the address (or leave the field out) and send the request again with the same external_id.

Without assignee_email

If you leave the field out, Plenno assigns the request to the person who created the API key, provided that person is an owner. If the key was created by an employee with the extra access type API and integrations, the request is not assigned to anyone. If the key's creator is no longer an active team member, the Primary owner takes their place.

In that case the notification about the new request goes to the key's creator (or to the Primary owner). An owner or admin can change the assignment in Plenno later.

Note

  • assignee_email only applies when a request is created. To change the assignment later, use Plenno, or the API with PATCH and assigned_user_id if the key has the leads:write scope. See API v1.1.
  • If you repeat a call with the same external_id (see Create and update a customer through the API), Plenno returns the existing request and leaves the assignment unchanged.

Next steps

Read Live and test API keys.

Updated November 19, 2026 · Checked against Plenno 9.5.5

Related articles

Was this helpful?