Skip to the page
API pages

Guides

Endpoints

Requests15
Deleted requests2
Comments5
Comment search1
Voters3
Followers3
Boards4
Tags5
Issues5
Statuses1
Roadmap2
Insights10
Search1
People5
Teammates4
Conversations11
Operators1
Saved replies4
Changelog entries12
Changelog tags4
Changelog subscribers2
Help articles12
Help collections3
System status4
Knowledge sources5
Knowledge pages3
Otto2
Moderation2
Audit log1
Webhooks6
Webhook deliveries2
Token1

Work with people through the API

Find and read your workspace's customers and teammates, rename contacts, keep your customers' traits in step with your own records, and invite teammates, from your own code with an API token.

Last updated

View as Markdown
On this page

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 describes.

Permissions

Pick these under Permissions, in the People area, as you create the token:

EndpointPermissionDoes
GET /peoplepeople:readFinds customers and teammates by name
GET /people/{id}people:readReads one person's traits, plan and latest activity
PATCH /people/{id}people:writeRenames a contact
PUT /people/{id}/traits/{key}people:writeSets one of a person's traits
DELETE /people/{id}/traits/{key}people:writeClears one of a person's traits
GET /teammatesrequests:readLists teammates, by name and role, to assign requests to
POST /teammates/invitationspeople:writeInvites people to the team by email, as members
GET /teammates/invitationspeople:writeLists invitations waiting, bounced or expired
POST /teammates/invitations/{id}/resendpeople:writeEmails an invitation again

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

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

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 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.

curl "https://app.notert.io/api/v1/people?query=priya&kind=contact" \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
{
  "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, 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

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

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.

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:

{
  "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:

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

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

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.

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:

{
  "sent": ["jonas@brightline.example"],
  "refused": [
    {
      "email": "maya@brightline.example",
      "code": "ALREADY_MEMBER",
      "reason": "They are on the team already."
    }
  ]
}
codeWhy
ALREADY_MEMBERThey're on the team already
INVITED_RECENTLYThey were invited a moment ago. Try again later
MEMBER_LIMIT_REACHEDYour plan has no seat left for them
TOO_MANY_PENDINGAs many invitations wait as your workspace takes. Revoke some
BANNEDYour workspace banned that address
NOT_ALLOWEDThe teammate who holds the token can't invite teammates now

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.