Interactions
Archive contact
POST
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.
bearerAuthheader
AuthorizationBearer <token>API key sent as Authorization: Bearer <API_KEY>.
idcontact*stringContact id.
application/json- body
archivingReason*stringReason code, from archivingReasons[].code in Get groups.
OK
application/json- response
success?booleanmessage?stringstatus?stringThe 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"}