Teams
List the teams
Every team of the organization with its members and pipelines, by name, in pages. Read only. A pipeline belongs to exactly one team.
Required scope: teams:read.
query Parameters
limitcursorThe nextCursor of the previous page, with the same filters.
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
List the teams › Responses
Create a team
Creates an empty team, and moves into it the pipelines you list. Add members with PUT /v2/teams/{id}/members/{memberId}.
Required scope: teams:write.
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Idempotency-KeyMakes the request safe to retry. Once it starts running, its final response (2xx, 4xx or 5xx) is kept for 24 hours and the same key gets it back, without repeating the effect. A request rejected before it runs leaves the key free. A replayed create omits the secret. The same key with a different request is rejected with 409 idempotency_key_reused.
Create a team › Request Body
namepipelineIdsPipelines to move into the new team. A pipeline belongs to exactly one team, so it leaves the one it had.
Create a team › Responses
objectidnamemaxChatsPerPersonHow many open chats a member can hold at once. null means no limit.
Retrieve a team
Adds, for each member, whether they are available and how many chats they hold, and how many cases wait in the queue of the team pipelines.
Required scope: teams:read.
path Parameters
id^tem_[0-9A-Za-z]{22}… · requiredThe id of the team (tem_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Retrieve a team › Responses
objectidnamemaxChatsPerPersonHow many open chats a member can hold at once. null means no limit.
Cases of the team pipelines waiting for someone to take them.
Delete a team
Only a team with no pipelines. Move its pipelines to another team first, or merge it with POST /v2/teams/{id}/merge.
Required scope: teams:write.
path Parameters
id^tem_[0-9A-Za-z]{22}… · requiredThe id of the team (tem_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Delete a team › Responses
Deleted.
Update a team
Changes only what you send: the name and the limit of open chats per member. Setting a limit turns on the distribution of cases among the members.
Required scope: teams:write.
path Parameters
id^tem_[0-9A-Za-z]{22}… · requiredThe id of the team (tem_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Update a team › Request Body optional
namemaxChatsPerPersonOpen chats a member can hold at once. null removes the limit.
Update a team › Responses
objectidnamemaxChatsPerPersonHow many open chats a member can hold at once. null means no limit.
Merge another team into this one
Moves the pipelines and members of sourceTeamId into this team and deletes sourceTeamId. A member in both keeps the leader and receives-cases marks of either.
Required scope: teams:write.
path Parameters
id^tem_[0-9A-Za-z]{22}… · requiredThe id of the team (tem_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Idempotency-KeyMakes the request safe to retry. Once it starts running, its final response (2xx, 4xx or 5xx) is kept for 24 hours and the same key gets it back, without repeating the effect. A request rejected before it runs leaves the key free. A replayed create omits the secret. The same key with a different request is rejected with 409 idempotency_key_reused.
Merge another team into this one › Request Body
sourceTeamIdThe team that goes into this one. Its pipelines and members move over and it is deleted.
Merge another team into this one › Responses
objectidnamemaxChatsPerPersonHow many open chats a member can hold at once. null means no limit.
Move a pipeline into a team
A pipeline belongs to exactly one team, so it leaves the one it had. There is no removal: to take a pipeline out of a team, move it into another. Repeating the request is safe.
Required scope: teams:write.
path Parameters
id^tem_[0-9A-Za-z]{22}… · requiredThe id of the team (tem_…).
pipelineId^ppl_[0-9A-Za-z]{22}… · requiredThe id of the pipeline (ppl_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Move a pipeline into a team › Responses
objectidnamemaxChatsPerPersonHow many open chats a member can hold at once. null means no limit.
Add a member to a team or change their role in it
Adds an active member of the organization, who receives cases and does not lead by default, or changes what you send for one who is already in. A viewer cannot lead. Repeating the request is safe.
Required scope: teams:write.
path Parameters
id^tem_[0-9A-Za-z]{22}… · requiredThe id of the team (tem_…).
memberId^mbr_[0-9A-Za-z]{22}… · requiredThe id of the member (mbr_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Add a member to a team or change their role in it › Request Body optional
isLeaderMakes the member a leader, or stops them being one. A viewer cannot lead.
receivesCasesWhether the assignment gives this member new cases.
Add a member to a team or change their role in it › Responses
objectidnamemaxChatsPerPersonHow many open chats a member can hold at once. null means no limit.
Remove a member from a team
Takes the person out of the team only; they stay in the organization. Removing someone who is not in the team does nothing.
Required scope: teams:write.
path Parameters
id^tem_[0-9A-Za-z]{22}… · requiredThe id of the team (tem_…).
memberId^mbr_[0-9A-Za-z]{22}… · requiredThe id of the member (mbr_…).
Headers
Lelemon-Subaccount^sub_[0-9A-Za-z]{22}…The subaccount (sub_…) this request acts on. Only for the keys of a platform account; without it the request acts on the account itself.
Remove a member from a team › Responses
Removed.