Close a conversation

Example Request & Response

$ curl https://api.intercom.io/conversations/<id>/parts\n-X POST\n-H 'Authorization:Bearer <Your access token>'\n-H 'Accept:application/json'\n-H 'Content-Type:application/json' -d\n\n{ \n  \"message_type\": \"close\",\n  \"type\": \"admin\",\n  \"admin_id\": 5784329,\n  \"body\": \"Closed conversation because of X.\"\n}

You can close a conversation.

ParameterTypeRequired?Description
idStringYesThe identifier for the conversation as given by Intercom.

Request Body Parameters

ParameterTypeRequired?Descripton
message_typeStringYesAlways close.
typeStringYesAlways admin.
admin_idStringYesThe id of the admin who is performing the action.
bodyStringNoOptionally you can leave a message in the conversation to provide additional context to the user and other teammates.

Response

This will return the Conversation that has been closed.