Ventia
Interactions
POST
/contact/{idcontact}/archive
api-key<token>

In: query

Path Parameters

idcontact*string

Request Body

application/json

reason*string

Response Body

application/json; charset=utf-8

curl -X POST "https://api.getventia.com/api/v1.0/contact/string/archive" \  -H "Content-Type: application/json" \  -d '{    "reason": "sintrabajo"  }'
{
  "archive": {
    "content": {
      "from": "",
      "to": "notclient"
    },
    "_id": "646d13f254f8f1d196927794",
    "company": "609b3cff61ffd5f1e446d234",
    "agent": "6234da84259c59d9a555c498",
    "contact": "621e8a5463c02a8bd532ff8c",
    "status": "started",
    "via": "api",
    "createdCoords": {
      "active": false
    },
    "type": "archiving",
    "createdAt": "2023-05-23T19:28:50.867Z",
    "updatedAt": "2023-05-23T19:28:50.867Z",
    "__v": 0
  }
}