Assign a conversation

Example Request & Response (Assigning to Admin)

$ curl https://api.intercom.io/conversations/{id}/parts \\-X POST \\-H 'Authorization:Bearer <Your access token>' \\-H 'Accept:application/json' \\-H 'Content-Type:application/json' -d{  \"type\": \"admin\",  \"admin_id\": \"814860\",  \"assignee_id\": \"814860\",  \"message_type\": \"assignment\",  \"body\": \"Reassigning for X reason.\",}

Example Request & Response (Auto Assignment)

$ curl 'https://api.intercom.io/conversations/{id}/run_assignment_rules'-X POST -H 'Authorization: Bearer <Your access token>' -H 'Accept: application/json' -H 'Content-Type: application/json'

You can assign a conversation to an admin and/or team. You can also let it be automatically assigned following assignment rules.

Request Path Parameters

ParameterRequired?Description
idYesThe identifier for the conversation as given by Intercom.
run_assignment_rulesNoRuns through all assignment rules created in the Intercom Inbox product for a given workspace.

Request Body Parameters

No body parameters are required when auto assigning conversations using the {id}/run_assignment_rules path parameter.

ArgumentTypeRequired?Description
message_typeStringYesAlways assignment.
typeStringYesAccepts admin or team.
admin_idStringYesThe id of the admin who is performing the action.
assignee_idStringYesThe id of the admin or team which will be assigned the conversation. A conversation can be assigned both an admin and a team. Set 0 if you want this assign to no admin or team (ie. Unassigned).
bodyStringNoOptionally you can leave a note in the conversation for additional context to other teammates.

Response

This will return the Conversation that has been assigned.