Ventia
Visits

List visits

GET
/visits

Lists visits, newest first. Requires the visits:read scope.

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key sent as Authorization: Bearer <API_KEY>.

Query Parameters

page?integer

Page number (1-indexed). Defaults to 1.

Range1 <= value
Default1
limit?integer

Page size. Defaults to 10, maximum 100.

Range1 <= value <= 100
Default10
user?string

Only visits of these user ids, separated by commas (any matches).

group?string

Only visits of users in this group or any of its sub-groups.

contact?string

Only visits of this contact id.

form?string

Only visits filled with this visit form id.

state?string

One or more visit result codes (visitResults[].code from List groups), separated by commas.

stateType?string

Only visits that happened (done) or did not (cancel).

Value in"done""cancel"
gteCreatedAt?string

Created on or after this date. Also supports gt, lt, lte and the updatedAt field (e.g. gteUpdatedAt).

Formatdate-time
lteCreatedAt?string

Created on or before this date.

Formatdate-time
sort?string

Sort field, prefixed with + or -. Defaults to -createdAt.

Value in"+createdAt""-createdAt""+updatedAt""-updatedAt"

Response Body

OK

application/json; charset=utf-8
  1. response
[index: integer]?
curl -X GET 'https://api.getventia.com/api/v1.0/visits?page=1&limit=10&user=6234da84259c59d9a555c498&group=609b3cff61ffd5f1e446d234&contact=6620aa10c4e2b30017c9d111&form=6650f1c1ff61ffd5f1e44a00&state=interesado&stateType=done&gteCreatedAt=2026-05-01T00%3A00%3A00.000Z&lteCreatedAt=2026-05-31T23%3A59%3A59.999Z&sort=-createdAt'
[  {    "_id": "6650f1c1ff61ffd5f1e44900",    "type": "visit",    "company": "609b3cff61ffd5f1e446d234",    "agent": {      "_id": "6234da84259c59d9a555c498",      "name": "Ana",      "lastname": "Pérez",      "email": "ana@example.com"    },    "contact": {      "_id": "6620aa10c4e2b30017c9d111",      "firstName": "Agustin",      "lastName": "Suarez",      "phones": [        "+59897123678"      ],      "emails": []    },    "content": {      "formId": {        "_id": "6650f1c1ff61ffd5f1e44a00",        "name": "Visita comercial"      },      "state": "interesado",      "stateType": "done",      "comment": "Le interesa el plan Pro, volver a pasar la semana próxima.",      "additionalData": {        "producto": "pro"      },      "shared": [],      "editions": []    },    "createdAt": "2026-05-24T18:21:01.000Z",    "updatedAt": "2026-05-24T18:21:01.000Z"  }]