Unshare conversation
Remove a person or a Channel from the sharing list of a conversation.
POST https://cotlet.dev/api/v1/otter/conversations/{conversation_id}/unshare
write Confirm
Removes one person or one Channel from a conversation's sharing list, the same as Remove in the Share dialog. They lose access at once. You can share again at any time with share_conversation. Public link settings are not changed. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| conversation_id string required | string | Conversation ID from list_conversations or search_transcripts. |
| email string | string | Person to remove. Give an email or a channel_id. |
| channel_id string | string | Channel to remove. |
Request
curl -X POST https://cotlet.dev/api/v1/otter/conversations/conversation_8c41d2/unshare \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("otter", "unshare_conversation", {"conversation_id":"conversation_8c41d2"}) const result = await cotlet.call('otter', 'unshare_conversation', {"conversation_id":"conversation_8c41d2"}); cotlet call otter unshare_conversation --data '{"conversation_id":"conversation_8c41d2"}' Example response
{
"conversation_id": "cv_7f3a91",
"removed": "lee@example.com",
"shared_with": [
{
"email": "dana@example.com",
"permission": "viewer"
}
]
}