- API reference
- Teammates
Remove a teammate
POSThttps://app.notert.io/api/v1/teammates/{id}/remove
Takes a teammate off the team, as the team page's Remove does, as the teammate who holds the token's secret: an owner or admin removes a member or an admin, and the teammate is emailed that they were removed, and every owner which token removed them. Removing an owner takes a person signed in to Notert, on the team page. The conversations they answered are left unassigned, the invitations they sent are withdrawn and the AI clients they connected to it are cut off.
A token with people:write. How to send one
Request
curl -X POST https://app.notert.io/api/v1/teammates/m_5k2m9p4q7r1t/remove \
-H "Authorization: Bearer $NOTERT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"revokeTokens": true
}'Response 200
{
"id": "m_5k2m9p4q7r1t"
}Path parameters
idstringRequiredThe teammate's m_ id, from GET /teammates.
Body
revokeTokensbooleanWhether the API tokens the teammate made are revoked with them. Left out or false, those tokens keep working for the workspace, as an integration they set up does.
Default false.
Response 200
idstringThe teammate's id: m_ and their user id, as the people endpoints name them, which a request's ownerIds take.
Errors
- 400
BAD_REQUESTInput validation failed. - 401
UNAUTHORIZEDSend a valid API token or OAuth access token as a Bearer token. - 403
CONNECTION_NOT_ALLOWEDThe person who connected this app can't use it in the workspace now. - 403
FORBIDDENThe teammate who holds this API token's secret can't change the team. Only an owner or admin can: one of them should roll it in the workspace's settings. - 403
HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. - 403
INSUFFICIENT_SCOPEThis API token can't change your customers' traits or your team. Create one that may in the workspace's settings. - 403
NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. - 403
NO_SEATThis workspace's plan has no seat for you. - 403
NOT_ALLOWEDThat teammate is beyond the token's holder: only an owner changes or removes an owner, and no one removes themself through a token. - 403
SESSION_EXPIREDMaking or unmaking an owner, and making someone an admin, takes a person signed in to Notert: make that change on the workspace's team page. - 403
TOKEN_HELD_TO_BOARDSA teammate reaches every board, so this token, held to some, can't remove one. Use a token that reaches every board. - 403
WORKSPACE_SUSPENDEDThis workspace is suspended. - 404
NOT_FOUNDNot Found. - 409
CHANGED_MEANWHILESomething changed meanwhile. Try again. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.