Ventia
Interactions

Archive contact

POST
/contact/{idcontact}/archive

Archives (closes) a contact with one of the company's archiving reasons, the same as archiving it in the app. An archiving interaction is recorded and the agent is notified. The reason's type decides the result: sale marks the contact sold, lock also blocks its phones and channels, and the rest close it. To unarchive a contact, transfer it.

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key sent as Authorization: Bearer <API_KEY>.

Path Parameters

idcontact*string

Contact id.

Request Body

application/json
  1. body
archivingReason*string

Reason code, from archivingReasons[].code in Get groups.

Response Body

OK

application/json
  1. response
success?boolean
message?string
status?string

The contact's new status.

Value in"closed""sold"
curl -X POST 'https://api.getventia.com/api/v1.0/contact/string/archive' \  -H 'Content-Type: application/json' \  -d '{  "archivingReason": "no-interest"}'
{  "success": true,  "message": "The contact was archived",  "status": "closed"}