# Work with people through the API (https://notert.io/docs/api/work-with-people)

Last updated 2026-11-26

A token can keep Notert in step with your CRM or billing system: it finds your customers and teammates, reads what Notert knows about each, and sets the traits you segment them by. Calls are authenticated and paced as [reading your workspace](/docs/api/read-your-workspace) describes.

## Permissions [#permissions]

Pick these under **Permissions**, in the People area, as you [create the token](/support/workspace/api-tokens#create-a-token):

| Endpoint                                                                              | Permission      | Does                                                     |
| ------------------------------------------------------------------------------------- | --------------- | -------------------------------------------------------- |
| [`GET /people`](/docs/api/reference/list-people)                                      | `people:read`   | Finds customers and teammates by name                    |
| [`GET /people/{id}`](/docs/api/reference/get-a-person)                                | `people:read`   | Reads one person's traits, plan and latest activity      |
| [`PATCH /people/{id}`](/docs/api/reference/rename-a-contact)                          | `people:write`  | Renames a contact                                        |
| [`PUT /people/{id}/traits/{key}`](/docs/api/reference/set-a-person-s-trait)           | `people:write`  | Sets one of a person's traits                            |
| [`DELETE /people/{id}/traits/{key}`](/docs/api/reference/clear-a-person-s-trait)      | `people:write`  | Clears one of a person's traits                          |
| [`GET /teammates`](/docs/api/reference/list-teammates)                                | `requests:read` | Lists teammates, by name and role, to assign requests to |
| [`POST /teammates/invitations`](/docs/api/reference/invite-teammates)                 | `people:write`  | Invites people to the team by email, as members          |
| [`GET /teammates/invitations`](/docs/api/reference/list-invitations)                  | `people:write`  | Lists invitations waiting, bounced or expired            |
| [`POST /teammates/invitations/{id}/resend`](/docs/api/reference/resend-an-invitation) | `people:write`  | Emails an invitation again                               |

No answer carries an email address, so a token that reads people never holds your customers' addresses.

## Person ids [#person-ids]

A person's `id` is `c_` and an id for a customer, or `m_` and an id for a teammate. The same id is used wherever the API names a person: a request's voters, who a request is from, a conversation's customer and the roadmap's `wantedBy` filter. A teammate goes by their `m_` id everywhere else too: `GET /teammates` and `GET /operators`, a request's `ownerIds`, a conversation's `assigneeId`, and the `ownerIds` filters, which refuse a `c_` id. Pass any of them straight to `GET /people/{id}`.

## Find someone [#find-someone]

`GET /people?query=priya` answers the people whose name holds those words, a page at a time, with `limit` and `cursor` as [the requests' list](/docs/api/read-your-workspace#page-through) takes them. Add `kind=contact` or `kind=member` for one kind, and `banned=true` or `banned=false`. An email address finds no one, since only names are searched.

```sh
curl "https://app.notert.io/api/v1/people?query=priya&kind=contact" \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
```

```json
{
  "items": [
    {
      "id": "c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70",
      "kind": "contact",
      "name": "Priya Shah",
      "banned": false,
      "customer": { "plan": "Pro", "trial": false }
    }
  ],
  "nextCursor": null
}
```

`customer` is what they pay you for, read from the billing you [connected](/docs/integrations/choose-an-integration#show-who-pays-you), and `null` when it says nothing of them.

`GET /people/{id}` answers the same person whole, as their page in Notert shows them: a teammate's `role` and `title`, when they joined and were last active, counts of what they did under `stats`, every subscription under `customer.subscriptions`, their `traits`, and their latest `requests`, `comments` and, for a customer, `conversations`. `moreRequests` and `moreComments` say whether there are older ones than those listed. Requests and comments come only to a token that also holds `requests:read`, and conversations only to one with `conversations:read`; each is `null` otherwise.

## Rename a contact [#rename-a-contact]

`PATCH /people/{id}` gives a contact a new `name`, up to 80 characters, as Edit on their page in Notert does, and answers their `id` and the `name` they carry now. Their email address stays as it is. Only a contact's `c_` id is taken, since a teammate names themself in Notert, and someone who isn't your workspace's answers `NOT_FOUND`. Sending the same name again changes nothing.

## Set a trait [#set-a-trait]

`PUT /people/{id}/traits/{key}` takes the trait's `value`: a string sets text, a number sets a number, and `true` or `false` sets a yes or no. To keep a string as a link, send `"type": "url"` beside it: `https://` is added where it names no scheme, and anything that isn't a web address is refused. `type` can name `text`, `number` or `boolean` too, when your code would rather say than leave it to the JSON. A key that differs only in its case replaces the trait it matches. Setting the value a trait already has changes nothing, so a sync can send every trait each time.

```sh
curl -X PUT https://app.notert.io/api/v1/people/c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70/traits/seats \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "value": 25 }'
```

It answers every trait the person carries now. A number comes back as its digits in a string, so none is lost:

```json
{
  "id": "c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70",
  "traits": [
    { "key": "company", "type": "text", "value": "Northwind" },
    { "key": "seats", "type": "number", "value": "25" },
    { "key": "admin", "type": "boolean", "value": true }
  ]
}
```

A person who carries as many traits as Notert keeps for one answers `TRAIT_LIMIT_REACHED`: set a key they already have, or clear one first.

A nightly sync from your billing system might look like this:

```js
async function syncSeats(customers) {
  for (const { notertId, seats, company } of customers) {
    for (const [key, value] of Object.entries({ seats, company })) {
      if (value === undefined || value === null) continue;
      const response = await fetch(
        `https://app.notert.io/api/v1/people/${notertId}/traits/${key}`,
        {
          method: "PUT",
          headers: {
            Authorization: `Bearer ${process.env.NOTERT_API_TOKEN}`,
            "Content-Type": "application/json",
          },
          body: JSON.stringify({ value }),
        },
      );
      if (!response.ok) console.warn(`${notertId} ${key}: ${response.status}`);
    }
  }
}
```

Sending the same value again changes nothing, so the sync can send every trait every night.

## Clear a trait [#clear-a-trait]

`DELETE /people/{id}/traits/{key}` takes a trait off a person, whatever the key's case, and answers the traits they carry now. It can't be undone: set the trait again to put it back. Clearing a key they don't carry changes nothing, so a retry is safe.

## Invite teammates [#invite-teammates]

`POST /teammates/invitations` takes up to 20 email addresses as `emails` and emails each person a link to join your team as a member, as inviting them from the team page does. An admin is invited from the team page alone, so a `role` other than `member` is refused. The invitations come from the teammate who holds the token, so only a token held by someone who may invite in Notert sends them, only from a token that reaches every board, and only while your plan has seats left. Your workspace's owners get an email naming the token and everyone it invited. Someone you invited before is sent their invitation again, as a member.

```sh
curl https://app.notert.io/api/v1/teammates/invitations \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "emails": ["jonas@brightline.example", "maya@brightline.example"] }'
```

The answer lists the addresses invited under `sent`, in lower case, and every other one under `refused` with a `code` and why. One address refused never stops the others:

```json
{
  "sent": ["jonas@brightline.example"],
  "refused": [
    {
      "email": "maya@brightline.example",
      "code": "ALREADY_MEMBER",
      "reason": "They are on the team already."
    }
  ]
}
```

| `code`                 | Why                                                           |
| ---------------------- | ------------------------------------------------------------- |
| `ALREADY_MEMBER`       | They're on the team already                                   |
| `INVITED_RECENTLY`     | They were invited a moment ago. Try again later               |
| `MEMBER_LIMIT_REACHED` | Your plan has no seat left for them                           |
| `TOO_MANY_PENDING`     | As many invitations wait as your workspace takes. Revoke some |
| `BANNED`               | Your workspace banned that address                            |
| `NOT_ALLOWED`          | The teammate who holds the token can't invite teammates now   |

## Follow up on invitations [#follow-up-on-invitations]

`GET /teammates/invitations` lists your team's invitations as the team page does: those still waiting and those whose email bounced, the waiting first and newest first, each with its `id`, the `email` invited, its `role`, whether it `bounced` and when it was last sent in `sentAt`. Send `state=expired` for the newest 50 whose link ran out before anyone took it, each with when in `expiredAt`. Since it names the addresses you invited, it needs `people:write` and a token held by someone who may invite, through a token that reaches every board, as inviting does.

`POST /teammates/invitations/{id}/resend` emails an invitation again as the teammate who holds the token: one still waiting is sent the same link, which works for another week, and one that expired or bounced invites its address anew, as a member. It answers whether the invitation went out in `invited`, and where it didn't, a `code` and `reason` from the table above. An admin invitation is sent again from the team page alone, so it answers 403 `ADMIN_INVITATION`, and one already accepted or revoked answers `NOT_FOUND`.