Ventia
Interactions

Transfer contact

Reassigns a contact to another agent (user). The contact's owner becomes the receiving agent, a transfer interaction is recorded in the contact's history, and the receiving agent is notified. Any pending reminder is cancelled and any archiving reason is cleared, so the contact becomes active again. If the contact is already assigned to the receiving agent, no transfer is made: a note is added instead and the request still succeeds.

POST
/contact/{idcontact}/transfer

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key sent as Authorization: Bearer <API_KEY>.

Path Parameters

idcontact*string

ID of the contact to transfer.

Request Body

The agent receiving the contact and an optional note explaining the transfer.

application/json
  1. body
to*string

User ID of the agent receiving the transfer. Must belong to your company or one of its groups. The user's email, phone or company ID are also accepted.

description?string

Optional note explaining the reason for the transfer. Saved on the transfer interaction in the contact's history. Max 2056 characters.

Lengthlength <= 2056

Response Body

OK

application/json; charset=utf-8
  1. response
success?boolean
message?string
curl -X POST 'https://api.getventia.com/api/v1.0/contact/string/transfer' \  -H 'Content-Type: application/json' \  -d '{  "to": "6234da84259c59d9a555c498"}'
{  "message": "The contact was successfully transfered...",  "success": true}