Visits
List visits
GET
Lists visits, newest first. Requires the visits:read scope.
bearerAuthheader
AuthorizationBearer <token>API key sent as Authorization: Bearer <API_KEY>.
page?integerPage number (1-indexed). Defaults to 1.
Range
1 <= valueDefault
1limit?integerPage size. Defaults to 10, maximum 100.
Range
1 <= value <= 100Default
10user?stringOnly visits of these user ids, separated by commas (any matches).
group?stringOnly visits of users in this group or any of its sub-groups.
contact?stringOnly visits of this contact id.
form?stringOnly visits filled with this visit form id.
state?stringOne or more visit result codes (visitResults[].code from List groups), separated by commas.
stateType?stringOnly visits that happened (done) or did not (cancel).
Value in
"done""cancel"gteCreatedAt?stringCreated on or after this date. Also supports gt, lt, lte and the updatedAt field (e.g. gteUpdatedAt).
Format
date-timelteCreatedAt?stringCreated on or before this date.
Format
date-timesort?stringSort field, prefixed with + or -. Defaults to -createdAt.
Value in
"+createdAt""-createdAt""+updatedAt""-updatedAt"OK
application/json; charset=utf-8- 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>eCreatedAt=2026-05-01T00%3A00%3A00.000Z<eCreatedAt=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" }]