Skip to content
Support

Visits API

Owner, AdminLast checked 25 November 20266 min readArticle ID: developers-api-visits
On this page

5 endpoints for visits: list visits; schedule a visit on a job; get a visit; reschedule, reassign or re-dispatch a visit; cancel (archive) a visit.

List visits

GET /api/v1/visits

Offset mode by default (newest first, meta.total). Pass updated_since or cursor for sync mode (oldest change first, keyset paging, no total). See the pagination guide. Archived records are left out. Unknown query parameters are ignored.

Scope: read:visits

Parameters

NameInTypeRequiredDescription
per_pagequeryintegerPage size. Out-of-range values are clamped to 1..100.
pagequeryintegerPage number, newest first. Offset mode only; ignored in sync mode.
updated_sincequerystringSwitches to sync mode: rows changed at or after this date or timestamp (a bare date is midnight UTC), oldest change first. Rows are listed once they have settled (5 seconds).
cursorquerystringThe meta.next_cursor of a previous response; continues strictly after the last row received. Switches to sync mode. A value this API did not issue is validation_failed.
job_idquerystringOnly visits of this job.
statusqueryscheduled, completed, failedOnly visits with this status.
If-None-MatchheaderstringThe ETag of a copy you already have. When the response would be unchanged you get 304 Not Modified with no body. Tags are per business.

Response: 200 OK

{
  "data": [
    {
      "id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
      "job_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
      "technician_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
      "start_at": "2026-11-03T01:00:00+00:00",
      "end_at": "2026-11-03T01:00:00+00:00",
      "status": "scheduled",
      "dispatched_at": "2026-11-03T01:00:00+00:00",
      "archived_at": "2026-11-03T01:00:00+00:00",
      "notes": "Side gate is unlocked.",
      "created_at": "2026-11-03T01:00:00+00:00",
      "updated_at": "2026-11-03T01:00:00+00:00"
    }
  ],
  "meta": {
    "page": 1,
    "per_page": 25,
    "total": 1
  }
}

Errors: 304, 401, 403, 422, 429, 500, 503. See Errors.

Schedule a visit on a job

POST /api/v1/visits

Schedules a scheduled visit on one of the business's jobs, with the same checks as scheduling in the app. The technician must be a current member of the business and must not have blocked time (such as leave) in that window. Another business's (or an archived) job is not_found. Times are instants and need a UTC offset; they are stored as UTC, and the app shows them in the business's timezone.

Scope: write:visits

Parameters

NameInTypeRequiredDescription
Idempotency-KeyheaderstringOptional. Repeat a write with the same key and body to get the first answer back (with Idempotent-Replayed: true) instead of doing it twice. Keys are per app.

Request body

FieldTypeRequiredDescription
job_idstringyesA job of this business (a ULID).
technician_idstring, nullableA current team member of this business. Omit to leave the visit unassigned.
start_atstring (date-time)yesISO 8601 with a UTC offset or Z, e.g. 2026-12-01T09:00:00+11:00. A time without one is refused.
end_atstring (date-time)yesSame format as start_at, and after it.
dispatchbooleanTrue sends it to the technician's list now (sets dispatched_at). It never changes status.
notesstring, nullable
{
  "job_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
  "technician_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
  "start_at": "2026-11-03T01:00:00+00:00",
  "end_at": "2026-11-03T01:00:00+00:00",
  "dispatch": true,
  "notes": "Side gate is unlocked."
}

Response: 201 Created.

{
  "data": {
    "id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "job_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "technician_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "start_at": "2026-11-03T01:00:00+00:00",
    "end_at": "2026-11-03T01:00:00+00:00",
    "status": "scheduled",
    "dispatched_at": "2026-11-03T01:00:00+00:00",
    "archived_at": "2026-11-03T01:00:00+00:00",
    "notes": "Side gate is unlocked.",
    "created_at": "2026-11-03T01:00:00+00:00",
    "updated_at": "2026-11-03T01:00:00+00:00"
  }
}

Errors: 401, 403, 404, 409, 422, 429, 500, 503. See Errors.

Get a visit

GET /api/v1/visits/{id}

Scope: read:visits

Parameters

NameInTypeRequiredDescription
idpathstringyesThe record id (a ULID).
If-None-MatchheaderstringThe ETag of a copy you already have. When the response would be unchanged you get 304 Not Modified with no body. Tags are per business.

Response: 200 OK

{
  "data": {
    "id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "job_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "technician_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "start_at": "2026-11-03T01:00:00+00:00",
    "end_at": "2026-11-03T01:00:00+00:00",
    "status": "scheduled",
    "dispatched_at": "2026-11-03T01:00:00+00:00",
    "archived_at": "2026-11-03T01:00:00+00:00",
    "notes": "Side gate is unlocked.",
    "created_at": "2026-11-03T01:00:00+00:00",
    "updated_at": "2026-11-03T01:00:00+00:00"
  }
}

Errors: 304, 401, 403, 404, 429, 500, 503. See Errors.

Reschedule, reassign or re-dispatch a visit

PATCH /api/v1/visits/{id}

Changes only the fields sent. A new technician must be a current team member (the one the visit has stays even if removed since), and a new slot must not sit in the technician's blocked time (such as leave), as in the app. Times need a UTC offset. Never the status, which is the visit's outcome, recorded in the app. An archived visit is not_found. An empty body is refused. Fires visit.updated when something moved.

Scope: write:visits

Parameters

NameInTypeRequiredDescription
idpathstringyesThe record id (a ULID).
Idempotency-KeyheaderstringOptional. Repeat a write with the same key and body to get the first answer back (with Idempotent-Replayed: true) instead of doing it twice. Keys are per app.

Request body

FieldTypeRequiredDescription
technician_idstring, nullableThe technician to assign, a current team member of this business. Leave it out to keep the current one; send null to unassign the visit.
start_atstring (date-time)ISO 8601 with a UTC offset or Z, e.g. 2026-12-01T09:00:00+11:00. A time without one is refused.
end_atstring (date-time)Same format as start_at, and after it.
dispatchbooleanTrue puts it on the technician's list now; false takes it off. Leave it out to keep it as it is. It never changes status.
notesstring, nullable
{
  "technician_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
  "start_at": "2026-11-03T01:00:00+00:00",
  "end_at": "2026-11-03T01:00:00+00:00",
  "dispatch": true,
  "notes": "Side gate is unlocked."
}

Response: 200 OK

{
  "data": {
    "id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "job_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "technician_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "start_at": "2026-11-03T01:00:00+00:00",
    "end_at": "2026-11-03T01:00:00+00:00",
    "status": "scheduled",
    "dispatched_at": "2026-11-03T01:00:00+00:00",
    "archived_at": "2026-11-03T01:00:00+00:00",
    "notes": "Side gate is unlocked.",
    "created_at": "2026-11-03T01:00:00+00:00",
    "updated_at": "2026-11-03T01:00:00+00:00"
  }
}

Errors: 401, 403, 404, 409, 422, 429, 500, 503. See Errors.

Cancel (archive) a visit

POST /api/v1/visits/{id}/cancel

Cancels a visit the way the app does, by archiving it. It leaves every schedule and the technician's list. A visit that already has an outcome (completed or failed) can't be cancelled (validation_failed). An optional reason is kept on the visit's audit entry. An archived (already cancelled) visit is not_found. Fires visit.cancelled.

Scope: write:visits

Parameters

NameInTypeRequiredDescription
idpathstringyesThe record id (a ULID).
Idempotency-KeyheaderstringOptional. Repeat a write with the same key and body to get the first answer back (with Idempotent-Replayed: true) instead of doing it twice. Keys are per app.

Request body

FieldTypeRequiredDescription
reasonstring, nullableWhy the visit was cancelled; kept on its audit entry.
{
  "reason": "Customer rescheduled"
}

Response: 200 OK, the visit as cancelled.

{
  "data": {
    "id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "job_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "technician_id": "01JC7K3Q8N5ZT9X2V4W6Y8A0BC",
    "start_at": "2026-11-03T01:00:00+00:00",
    "end_at": "2026-11-03T01:00:00+00:00",
    "status": "scheduled",
    "dispatched_at": "2026-11-03T01:00:00+00:00",
    "archived_at": "2026-11-03T01:00:00+00:00",
    "notes": "Side gate is unlocked.",
    "created_at": "2026-11-03T01:00:00+00:00",
    "updated_at": "2026-11-03T01:00:00+00:00"
  }
}

Errors: 401, 403, 404, 409, 422, 429, 500, 503. See Errors.

In this section