DOCUMENTATION

Data models

Shared shapes used by the endpoint reference. Required fields, units, nullable values, and response-only properties are documented here.

Message

FieldTypeDescription & constraints
messageRequiredstringResource-specific value; see the related workflow and schema.
Example Message
{
  "message": "example"
}
Full schema
{
  "type": "object",
  "required": [
    "message"
  ],
  "properties": {
    "message": {
      "type": "string"
    }
  }
}

User

FieldTypeDescription & constraints
idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.Format: uuid
emailRequiredstringAccount email address.Format: email
display_nameRequiredstringResource-specific value; see the related workflow and schema.
Example User
{
  "id": "11111111-1111-4111-8111-111111111111",
  "email": "dispatcher@example.com",
  "display_name": "Alex"
}
Full schema
{
  "type": "object",
  "required": [
    "id",
    "email",
    "display_name"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "display_name": {
      "type": "string"
    }
  }
}

Business

FieldTypeDescription & constraints
idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.Format: uuid
nameRequiredstringHuman-readable name shown in the workspace.
time_zoneRequiredstringNamed IANA time zone, validated by the backend.
deleted_atstring | nullSystem-managed UTC soft-deletion instant; null for active records.Format: date-time
deleted_bystring | nullDeletion actor retained for history.Format: uuid
Example Business
{
  "id": "11111111-1111-4111-8111-111111111111",
  "name": "Example Services",
  "time_zone": "Europe/Warsaw",
  "deleted_at": "2026-11-02T09:00:00Z",
  "deleted_by": "11111111-1111-4111-8111-111111111111"
}
Full schema
{
  "type": "object",
  "required": [
    "id",
    "name",
    "time_zone"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "time_zone": {
      "type": "string",
      "description": "Named IANA time zone, validated by the backend."
    },
    "deleted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "System-managed UTC soft-deletion instant; null for active records."
    },
    "deleted_by": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Deletion actor retained for history."
    }
  }
}

Account

FieldTypeDescription & constraints
userRequiredobjectResource-specific value; see the related workflow and schema.
businessesRequiredarray<object>Resource-specific value; see the related workflow and schema.
user fields
FieldTypeDescription & constraints
user.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.Format: uuid
user.emailRequiredstringAccount email address.Format: email
user.display_nameRequiredstringResource-specific value; see the related workflow and schema.
businesses[] fields
FieldTypeDescription & constraints
businesses.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.Format: uuid
businesses.nameRequiredstringHuman-readable name shown in the workspace.
businesses.time_zoneRequiredstringNamed IANA time zone, validated by the backend.
businesses.deleted_atstring | nullSystem-managed UTC soft-deletion instant; null for active records.Format: date-time
businesses.deleted_bystring | nullDeletion actor retained for history.Format: uuid
Example Account
{
  "user": {
    "id": "11111111-1111-4111-8111-111111111111",
    "email": "dispatcher@example.com",
    "display_name": "Alex"
  },
  "businesses": [
    {
      "id": "11111111-1111-4111-8111-111111111111",
      "name": "Example Services",
      "time_zone": "Europe/Warsaw",
      "deleted_at": "2026-11-02T09:00:00Z",
      "deleted_by": "11111111-1111-4111-8111-111111111111"
    }
  ]
}
Full schema
{
  "type": "object",
  "required": [
    "user",
    "businesses"
  ],
  "properties": {
    "user": {
      "$ref": "#/components/schemas/User"
    },
    "businesses": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Business"
      }
    }
  }
}

LoginResponse

FieldTypeDescription & constraints
tokenRequiredstringOpaque bearer session token. Keep private.
userRequiredobjectResource-specific value; see the related workflow and schema.
businessesRequiredarray<object>Resource-specific value; see the related workflow and schema.
user fields
FieldTypeDescription & constraints
user.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.Format: uuid
user.emailRequiredstringAccount email address.Format: email
user.display_nameRequiredstringResource-specific value; see the related workflow and schema.
businesses[] fields
FieldTypeDescription & constraints
businesses.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.Format: uuid
businesses.nameRequiredstringHuman-readable name shown in the workspace.
businesses.time_zoneRequiredstringNamed IANA time zone, validated by the backend.
businesses.deleted_atstring | nullSystem-managed UTC soft-deletion instant; null for active records.Format: date-time
businesses.deleted_bystring | nullDeletion actor retained for history.Format: uuid
Example LoginResponse
{
  "token": "REPLACE_WITH_TOKEN",
  "user": {
    "id": "11111111-1111-4111-8111-111111111111",
    "email": "dispatcher@example.com",
    "display_name": "Alex"
  },
  "businesses": [
    {
      "id": "11111111-1111-4111-8111-111111111111",
      "name": "Example Services",
      "time_zone": "Europe/Warsaw",
      "deleted_at": "2026-11-02T09:00:00Z",
      "deleted_by": "11111111-1111-4111-8111-111111111111"
    }
  ]
}
Full schema
{
  "type": "object",
  "required": [
    "token",
    "user",
    "businesses"
  ],
  "properties": {
    "token": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$",
      "description": "Opaque bearer session token. Keep private."
    },
    "user": {
      "$ref": "#/components/schemas/User"
    },
    "businesses": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Business"
      }
    }
  }
}

RegisterRequest

FieldTypeDescription & constraints
emailRequiredstringAccount email address.Format: email · Max length: 254
passwordRequiredstringPrivate chosen password; never expose it in client bundles or logs.Min length: 12 · Max length: 128 · Write only
display_nameRequiredstringResource-specific value; see the related workflow and schema.Min length: 1 · Max length: 120
business_nameRequiredstringResource-specific value; see the related workflow and schema.Min length: 1 · Max length: 120
Example RegisterRequest
{
  "email": "dispatcher@example.com",
  "password": "Example-passphrase-42!",
  "display_name": "Alex",
  "business_name": "Example Services"
}
Full schema
{
  "type": "object",
  "required": [
    "email",
    "password",
    "display_name",
    "business_name"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 254
    },
    "password": {
      "type": "string",
      "minLength": 12,
      "maxLength": 128,
      "writeOnly": true
    },
    "display_name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "business_name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    }
  }
}

LoginRequest

FieldTypeDescription & constraints
emailRequiredstringAccount email address.Format: email
passwordRequiredstringPrivate chosen password; never expose it in client bundles or logs.Write only
Example LoginRequest
{
  "email": "dispatcher@example.com",
  "password": "Example-passphrase-42!"
}
Full schema
{
  "type": "object",
  "required": [
    "email",
    "password"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email"
    },
    "password": {
      "type": "string",
      "writeOnly": true
    }
  }
}

TokenRequest

FieldTypeDescription & constraints
tokenRequiredstringPrivate bearer/challenge token returned by the appropriate authentication flow.Write only
Example TokenRequest
{
  "token": "REPLACE_WITH_TOKEN"
}
Full schema
{
  "type": "object",
  "required": [
    "token"
  ],
  "properties": {
    "token": {
      "type": "string",
      "pattern": "^[0-9a-fA-F]{64}$",
      "writeOnly": true
    }
  }
}

ResetRequest

FieldTypeDescription & constraints
emailRequiredstringAccount email address.Format: email
Example ResetRequest
{
  "email": "dispatcher@example.com"
}
Full schema
{
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email"
    }
  }
}

ResetCompleteRequest

FieldTypeDescription & constraints
tokenRequiredstringPrivate bearer/challenge token returned by the appropriate authentication flow.Write only
passwordRequiredstringPrivate chosen password; never expose it in client bundles or logs.Min length: 12 · Max length: 128 · Write only
Example ResetCompleteRequest
{
  "token": "REPLACE_WITH_TOKEN",
  "password": "Example-passphrase-42!"
}
Full schema
{
  "type": "object",
  "required": [
    "token",
    "password"
  ],
  "properties": {
    "token": {
      "type": "string",
      "pattern": "^[0-9a-fA-F]{64}$",
      "writeOnly": true
    },
    "password": {
      "type": "string",
      "minLength": 12,
      "maxLength": 128,
      "writeOnly": true
    }
  }
}

BusinessWrite

FieldTypeDescription & constraints
nameRequiredstringHuman-readable name shown in the workspace.Min length: 1 · Max length: 120
time_zoneRequiredstringResource-specific value; see the related workflow and schema.
Example BusinessWrite
{
  "name": "Example Services",
  "time_zone": "Europe/Warsaw"
}
Full schema
{
  "type": "object",
  "required": [
    "name",
    "time_zone"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "time_zone": {
      "type": "string",
      "examples": [
        "Europe/Warsaw",
        "UTC"
      ]
    }
  }
}

Error

FieldTypeDescription & constraints
errorRequiredobjectResource-specific value; see the related workflow and schema.
error fields
FieldTypeDescription & constraints
error.codeRequiredvalidation | unauthorized | not_found | conflict | unavailable | rate_limitedPrivate activation or recovery code supplied to the driver.
error.messageRequiredstringResource-specific value; see the related workflow and schema.
Example Error
{
  "error": {
    "code": "validation",
    "message": "example"
  }
}
Full schema
{
  "type": "object",
  "required": [
    "error"
  ],
  "properties": {
    "error": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "validation",
            "unauthorized",
            "not_found",
            "conflict",
            "unavailable",
            "rate_limited"
          ]
        },
        "message": {
          "type": "string"
        }
      }
    }
  }
}

Health

FieldTypeDescription & constraints
statusRequiredokCurrent execution or operation state. Planned/unplanned is separate from execution.
Example Health
{
  "status": "ok"
}
Full schema
{
  "type": "object",
  "required": [
    "status"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "ok"
      ]
    }
  }
}

Ready

FieldTypeDescription & constraints
statusRequiredreadyCurrent execution or operation state. Planned/unplanned is separate from execution.
Example Ready
{
  "status": "ready"
}
Full schema
{
  "type": "object",
  "required": [
    "status"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "ready"
      ]
    }
  }
}

Record

FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
created_atstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
updated_atstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
revisionintegerCurrent version used to detect stale edits or publication.
deleted_atstring | nullSystem-managed UTC soft-deletion instant; null for active records.Format: date-time
deleted_bystring | nullDeletion actor retained for history.Format: uuid
Example Record
{
  "id": "example-id",
  "created_at": "2026-11-02T09:00:00Z",
  "updated_at": "2026-11-02T09:00:00Z",
  "revision": 1,
  "deleted_at": "2026-11-02T09:00:00Z",
  "deleted_by": "11111111-1111-4111-8111-111111111111"
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "RFC3339 UTC instant or explicit offset; business wall times are resolved separately."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "RFC3339 UTC instant or explicit offset; business wall times are resolved separately."
    },
    "revision": {
      "type": "integer"
    },
    "deleted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "System-managed UTC soft-deletion instant; null for active records."
    },
    "deleted_by": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Deletion actor retained for history."
    }
  },
  "additionalProperties": true
}

Location

FieldTypeDescription & constraints
latitudeRequirednumberLatitude in decimal degrees, from -90 to 90.Min: -90 · Max: 90
longitudeRequirednumberLongitude in decimal degrees, from -180 to 180.Min: -180 · Max: 180
Example Location
{
  "latitude": 52.2297,
  "longitude": 21.0122
}
Full schema
{
  "type": "object",
  "properties": {
    "latitude": {
      "type": "number",
      "minimum": -90,
      "maximum": 90
    },
    "longitude": {
      "type": "number",
      "minimum": -180,
      "maximum": 180
    }
  },
  "required": [
    "latitude",
    "longitude"
  ]
}

WorkingInterval

FieldTypeDescription & constraints
startRequiredstringStart instant or working-interval start, as specified by this field’s format.
endRequiredstringEnd instant or working-interval end; must follow the effective start.
end_day_offsetintegerUse 1 when the working interval ends the following day.Min: 0
Example WorkingInterval
{
  "start": "2026-11-02T08:00:00Z",
  "end": "2026-11-02T16:00:00Z",
  "end_day_offset": 1
}
Full schema
{
  "type": "object",
  "properties": {
    "start": {
      "type": "string",
      "pattern": "^[0-9]{2}:[0-9]{2}$"
    },
    "end": {
      "type": "string",
      "pattern": "^[0-9]{2}:[0-9]{2}$"
    },
    "end_day_offset": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "start",
    "end"
  ]
}

WorkingHours

FieldTypeDescription & constraints
weeklyRequiredobject0=Monday through6=Sunday
overridesRequiredobjectCalendar-date keys replace that entire date, including prior-night carryover. Empty array means unavailable.
gap_policyreturn_to_warehouse | waitResource-specific value; see the related workflow and schema.
Example WorkingHours
{
  "weekly": {},
  "overrides": {},
  "gap_policy": "return_to_warehouse"
}
Full schema
{
  "type": "object",
  "properties": {
    "weekly": {
      "type": "object",
      "description": "0=Monday through6=Sunday",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/WorkingInterval"
        }
      }
    },
    "overrides": {
      "type": "object",
      "description": "Calendar-date keys replace that entire date, including prior-night carryover. Empty array means unavailable.",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/WorkingInterval"
        }
      }
    },
    "gap_policy": {
      "type": "string",
      "enum": [
        "return_to_warehouse",
        "wait"
      ]
    }
  },
  "required": [
    "weekly",
    "overrides"
  ]
}

Warehouse

FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
locationRequiredobjectService or record location, using latitude/longitude in decimal degrees.
location fields
FieldTypeDescription & constraints
location.latitudeRequirednumberLatitude in decimal degrees, from -90 to 90.Min: -90 · Max: 90
location.longitudeRequirednumberLongitude in decimal degrees, from -180 to 180.Min: -180 · Max: 180
Example Warehouse
{
  "id": "example-id",
  "name": "Example Services",
  "location": {
    "latitude": 52.2297,
    "longitude": 21.0122
  }
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "location": {
      "$ref": "#/components/schemas/Location"
    }
  },
  "required": [
    "name",
    "location"
  ]
}

Vehicle

FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
warehouse_idRequiredstringWarehouse used as this vehicle’s route origin/return location.
driver_idstring | nullAssigned driver ID; stop-specific assignments can change after a handover.
colorstringResource-specific value; see the related workflow and schema.
height_metersnumber | nullResource-specific value; see the related workflow and schema.
weight_kgnumber | nullResource-specific value; see the related workflow and schema.
working_hoursobjectVehicle availability: weekly weekday intervals plus calendar-date overrides.
working_hours fields
FieldTypeDescription & constraints
working_hours.weeklyRequiredobject0=Monday through6=Sunday
working_hours.overridesRequiredobjectCalendar-date keys replace that entire date, including prior-night carryover. Empty array means unavailable.
working_hours.gap_policyreturn_to_warehouse | waitResource-specific value; see the related workflow and schema.
Example Vehicle
{
  "id": "example-id",
  "name": "Example Services",
  "warehouse_id": "warehouse-01",
  "driver_id": "driver-01",
  "color": "#35735a",
  "height_meters": 1,
  "weight_kg": 1,
  "working_hours": {
    "weekly": {},
    "overrides": {},
    "gap_policy": "return_to_warehouse"
  }
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "warehouse_id": {
      "type": "string"
    },
    "driver_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "color": {
      "type": "string"
    },
    "height_meters": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "weight_kg": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "working_hours": {
      "$ref": "#/components/schemas/WorkingHours"
    }
  },
  "required": [
    "name",
    "warehouse_id"
  ],
  "additionalProperties": true
}

Driver

FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
emailRequiredstringAccount email address.Format: email
activebooleanWhether this account or integration is enabled.
duty_statusonline | offlineResource-specific value; see the related workflow and schema.
locationobject | nullService or record location, using latitude/longitude in decimal degrees.
duty_started_atstring | nullResource-specific value; see the related workflow and schema.
activation_codestringReturned once during provisioning/reset; administrator delivers it to driver.Response only
Example Driver
{
  "id": "example-id",
  "name": "Example Services",
  "email": "dispatcher@example.com",
  "active": true,
  "duty_status": "online",
  "location": {
    "latitude": 52.2297,
    "longitude": 21.0122
  },
  "duty_started_at": "2026-11-02T09:00:00Z",
  "activation_code": "example"
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "active": {
      "type": "boolean"
    },
    "duty_status": {
      "enum": [
        "online",
        "offline"
      ]
    },
    "location": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/Location"
        },
        {
          "type": "null"
        }
      ]
    },
    "duty_started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "description": "RFC3339 UTC instant or explicit offset; business wall times are resolved separately."
        },
        {
          "type": "null"
        }
      ]
    },
    "activation_code": {
      "type": "string",
      "readOnly": true,
      "description": "Returned once during provisioning/reset; administrator delivers it to driver."
    }
  },
  "required": [
    "name",
    "email"
  ],
  "additionalProperties": true
}

Order

FieldTypeDescription & constraints
idstringOptional on creation; generated if absent. Unique within authorized business; duplicates409 even if payload matches.Max length: 120
typetask | breakRecord or field type; choose one of the listed values.
locationRequiredobjectService or record location, using latitude/longitude in decimal degrees.
duration_secondsRequiredintegerTime needed to do the work, excluding travel, in seconds.Min: 1
window_startRequiredstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
window_endRequiredstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
statuscreated | on_road | in_progress | completed | unable_to_complete | cancelledLive execution status. Administrator changes become pending_status until publication.
pending_statuscreated | on_road | in_progress | completed | unable_to_complete | cancelled | nullResource-specific value; see the related workflow and schema.
scheduled_atstring | nullPlanned service-start instant; absence indicates unplanned work.
vehicle_idstring | nullAssigned or selected vehicle ID in this business.
driver_idstring | nullAssigned driver ID; stop-specific assignments can change after a handover.
replacement_driver_idstring | nullAdministrator-selected replacement driver for a handover break.
custom_fieldsobjectValues keyed by the business-defined custom field IDs. Existing orders retain their schema version.
schema_snapshotobjectImmutable field definition/type/permission version for this order.Response only
actual_started_atstring | nullResource-specific value; see the related workflow and schema.
actual_completed_atstring | nullResource-specific value; see the related workflow and schema.
location fields
FieldTypeDescription & constraints
location.latitudeRequirednumberLatitude in decimal degrees, from -90 to 90.Min: -90 · Max: 90
location.longitudeRequirednumberLongitude in decimal degrees, from -180 to 180.Min: -180 · Max: 180
Example Order
{
  "id": "example-id",
  "type": "task",
  "location": {
    "latitude": 52.2297,
    "longitude": 21.0122
  },
  "duration_seconds": 1800,
  "window_start": "2026-11-02T09:00:00Z",
  "window_end": "2026-11-02T12:00:00Z",
  "status": "created",
  "pending_status": "created",
  "scheduled_at": "2026-11-02T09:30:00Z",
  "vehicle_id": "van-01",
  "driver_id": "driver-01",
  "replacement_driver_id": "example",
  "custom_fields": {},
  "schema_snapshot": {},
  "actual_started_at": "2026-11-02T09:00:00Z",
  "actual_completed_at": "2026-11-02T09:00:00Z"
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "maxLength": 120,
      "description": "Optional on creation; generated if absent. Unique within authorized business; duplicates409 even if payload matches."
    },
    "type": {
      "enum": [
        "task",
        "break"
      ]
    },
    "location": {
      "$ref": "#/components/schemas/Location"
    },
    "duration_seconds": {
      "type": "integer",
      "minimum": 1
    },
    "window_start": {
      "type": "string",
      "format": "date-time",
      "description": "RFC3339 UTC instant or explicit offset; business wall times are resolved separately."
    },
    "window_end": {
      "type": "string",
      "format": "date-time",
      "description": "RFC3339 UTC instant or explicit offset; business wall times are resolved separately."
    },
    "status": {
      "enum": [
        "created",
        "on_road",
        "in_progress",
        "completed",
        "unable_to_complete",
        "cancelled"
      ],
      "description": "Live execution status. Administrator changes become pending_status until publication."
    },
    "pending_status": {
      "anyOf": [
        {
          "enum": [
            "created",
            "on_road",
            "in_progress",
            "completed",
            "unable_to_complete",
            "cancelled"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "scheduled_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "description": "RFC3339 UTC instant or explicit offset; business wall times are resolved separately."
        },
        {
          "type": "null"
        }
      ]
    },
    "vehicle_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "driver_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "replacement_driver_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "custom_fields": {
      "type": "object",
      "additionalProperties": true
    },
    "schema_snapshot": {
      "type": "object",
      "readOnly": true,
      "description": "Immutable field definition/type/permission version for this order."
    },
    "actual_started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "description": "RFC3339 UTC instant or explicit offset; business wall times are resolved separately."
        },
        {
          "type": "null"
        }
      ]
    },
    "actual_completed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "description": "RFC3339 UTC instant or explicit offset; business wall times are resolved separately."
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "location",
    "duration_seconds",
    "window_start",
    "window_end"
  ],
  "additionalProperties": true
}

FieldDefinition

FieldTypeDescription & constraints
idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
typeRequiredtext | number | date | datetime | boolean | selectRecord or field type; choose one of the listed values.
requiredbooleanWhether a value is mandatory.
driver_visiblebooleanWhether drivers can see the field.
driver_editablebooleanWhether drivers can edit the field; hidden fields cannot be editable.
multiplebooleanAllow multiple dropdown choices when true.
choicesarray<object>Allowed dropdown options with stable IDs and labels.
choices[] fields
FieldTypeDescription & constraints
choices.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
choices.labelRequiredstringResource-specific value; see the related workflow and schema.
Example FieldDefinition
{
  "id": "example-id",
  "name": "Example Services",
  "type": "text",
  "required": false,
  "driver_visible": false,
  "driver_editable": false,
  "multiple": false,
  "choices": [
    {
      "id": "example-id",
      "label": "example"
    }
  ]
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "type": {
      "enum": [
        "text",
        "number",
        "date",
        "datetime",
        "boolean",
        "select"
      ]
    },
    "required": {
      "type": "boolean"
    },
    "driver_visible": {
      "type": "boolean"
    },
    "driver_editable": {
      "type": "boolean"
    },
    "multiple": {
      "type": "boolean"
    },
    "choices": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "label"
        ]
      }
    }
  },
  "required": [
    "id",
    "name",
    "type"
  ]
}

CustomSchema

FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
fieldsRequiredarray<object>Custom-field definitions captured for new orders.
fields[] fields
FieldTypeDescription & constraints
fields.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
fields.nameRequiredstringHuman-readable name shown in the workspace.
fields.typeRequiredtext | number | date | datetime | boolean | selectRecord or field type; choose one of the listed values.
fields.requiredbooleanWhether a value is mandatory.
fields.driver_visiblebooleanWhether drivers can see the field.
fields.driver_editablebooleanWhether drivers can edit the field; hidden fields cannot be editable.
fields.multiplebooleanAllow multiple dropdown choices when true.
fields.choicesarray<object>Allowed dropdown options with stable IDs and labels.
fields.choices[] fields
FieldTypeDescription & constraints
fields.choices.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
fields.choices.labelRequiredstringResource-specific value; see the related workflow and schema.
Example CustomSchema
{
  "id": "example-id",
  "name": "Example Services",
  "fields": [
    {
      "id": "example-id",
      "name": "Example Services",
      "type": "text",
      "required": false,
      "driver_visible": false,
      "driver_editable": false,
      "multiple": false,
      "choices": [
        {
          "id": "example-id",
          "label": "example"
        }
      ]
    }
  ]
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "fields": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/FieldDefinition"
      }
    }
  },
  "required": [
    "name",
    "fields"
  ]
}

Webhook

FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
urlRequiredstringHTTPS destination for webhook deliveries.Format: uri
eventsRequiredarray<string>Subscribed event names; use * for all supported events.
activebooleanWhether this account or integration is enabled.
secretstringPrivate shared webhook-signing secret.
Example Webhook
{
  "id": "example-id",
  "name": "Example Services",
  "url": "https://client.example.com/webhooks/route",
  "events": [
    "*"
  ],
  "active": true,
  "secret": "REPLACE_WITH_WEBHOOK_SECRET"
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "active": {
      "type": "boolean"
    },
    "secret": {
      "type": "string"
    }
  },
  "required": [
    "name",
    "url",
    "events"
  ]
}

Region

FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
geometryRequiredobjectGeoJSON Polygon; coordinates are longitude/latitude.
statusnot_installed | queued | running | installing | ready | failed | buildingCurrent execution or operation state. Planned/unplanned is separate from execution.
job_idstring | nullResource-specific value; see the related workflow and schema.
dataset_versionstring | nullResource-specific value; see the related workflow and schema.
errorstring | nullResource-specific value; see the related workflow and schema.
geometry fields
FieldTypeDescription & constraints
geometry.typePolygonRecord or field type; choose one of the listed values.
geometry.coordinatesarray<array<array<number>>>Resource-specific value; see the related workflow and schema.
Example Region
{
  "id": "example-id",
  "name": "Example Services",
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          1
        ]
      ]
    ]
  },
  "status": "not_installed",
  "job_id": "11111111-1111-4111-8111-111111111111",
  "dataset_version": "example",
  "error": "example"
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "geometry": {
      "type": "object",
      "description": "GeoJSON Polygon; coordinates are longitude/latitude.",
      "properties": {
        "type": {
          "const": "Polygon"
        },
        "coordinates": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          }
        }
      }
    },
    "status": {
      "enum": [
        "not_installed",
        "queued",
        "running",
        "installing",
        "ready",
        "failed",
        "building"
      ]
    },
    "job_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "dataset_version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "name",
    "geometry"
  ],
  "additionalProperties": true
}

Scenario

FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
nodesRequiredarray<object>Graph vertices.
edgesRequiredarray<object>Directed graph connections with travel costs.
ordersarray<object>Resource-specific value; see the related workflow and schema.
warehousesarray<object>Resource-specific value; see the related workflow and schema.
vehiclesarray<object>Resource-specific value; see the related workflow and schema.
driversarray<object>Resource-specific value; see the related workflow and schema.
nodes[] fields
FieldTypeDescription & constraints
nodes.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nodes.xRequirednumberResource-specific value; see the related workflow and schema.
nodes.yRequirednumberResource-specific value; see the related workflow and schema.
edges[] fields
FieldTypeDescription & constraints
edges.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
edges.fromRequiredstringResource-specific value; see the related workflow and schema.
edges.toRequiredstringResource-specific value; see the related workflow and schema.
edges.time_secondsRequirednumberResource-specific value; see the related workflow and schema.
edges.distance_metersRequirednumberResource-specific value; see the related workflow and schema.
edges.bidirectionalbooleanResource-specific value; see the related workflow and schema.
edges.reverse_time_secondsnumberResource-specific value; see the related workflow and schema.
edges.reverse_distance_metersnumberResource-specific value; see the related workflow and schema.
Example Scenario
{
  "id": "example-id",
  "name": "Example Services",
  "nodes": [
    {
      "id": "example-id",
      "x": 1,
      "y": 1
    }
  ],
  "edges": [
    {
      "id": "example-id",
      "from": "example",
      "to": "example",
      "time_seconds": 1,
      "distance_meters": 1,
      "bidirectional": false,
      "reverse_time_seconds": 1,
      "reverse_distance_meters": 1
    }
  ],
  "orders": [
    {}
  ],
  "warehouses": [
    {}
  ],
  "vehicles": [
    {}
  ],
  "drivers": [
    {}
  ]
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "nodes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "x",
          "y"
        ]
      }
    },
    "edges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "time_seconds": {
            "type": "number"
          },
          "distance_meters": {
            "type": "number"
          },
          "bidirectional": {
            "type": "boolean"
          },
          "reverse_time_seconds": {
            "type": "number"
          },
          "reverse_distance_meters": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "from",
          "to",
          "time_seconds",
          "distance_meters"
        ]
      }
    },
    "orders": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "Order constraints; graph location uses vertex_id or edge_id+offset+explicit segment times/distances.",
        "additionalProperties": true
      }
    },
    "warehouses": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "vehicles": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "drivers": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  },
  "required": [
    "name",
    "nodes",
    "edges"
  ],
  "additionalProperties": true
}

Plan

FieldTypeDescription & constraints
idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
vehicle_idRequiredstringAssigned or selected vehicle ID in this business.
driver_idstring | nullAssigned driver ID; stop-specific assignments can change after a handover.
revisionRequiredintegerCurrent version used to detect stale edits or publication.
stateRequiredplanning | published | supersededPlanning/published version state or event visibility state.
start_atstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
end_atstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
stopsRequiredarray<object>Ordered planned route stops.
return_legobjectResource-specific value; see the related workflow and schema.
warningsarray<string>Constraint warnings requiring review where applicable.
unplanned_order_idsarray<string>Resource-specific value; see the related workflow and schema.
publishedobject | nullResource-specific value; see the related workflow and schema.
received_atstring | nullResource-specific value; see the related workflow and schema.
Example Plan
{
  "id": "example-id",
  "vehicle_id": "van-01",
  "driver_id": "driver-01",
  "revision": 1,
  "state": "planning",
  "start_at": "2026-11-02T08:00:00Z",
  "end_at": "2026-11-02T16:00:00Z",
  "stops": [
    {}
  ],
  "return_leg": {},
  "warnings": [
    "example"
  ],
  "unplanned_order_ids": [
    "example"
  ],
  "published": {},
  "received_at": "2026-11-02T09:00:00Z"
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "vehicle_id": {
      "type": "string"
    },
    "driver_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "revision": {
      "type": "integer"
    },
    "state": {
      "enum": [
        "planning",
        "published",
        "superseded"
      ]
    },
    "start_at": {
      "type": "string",
      "format": "date-time",
      "description": "RFC3339 UTC instant or explicit offset; business wall times are resolved separately."
    },
    "end_at": {
      "type": "string",
      "format": "date-time",
      "description": "RFC3339 UTC instant or explicit offset; business wall times are resolved separately."
    },
    "stops": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "return_leg": {
      "type": "object",
      "additionalProperties": true
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "unplanned_order_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "published": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "received_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "description": "RFC3339 UTC instant or explicit offset; business wall times are resolved separately."
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "vehicle_id",
    "revision",
    "state",
    "stops"
  ],
  "additionalProperties": true
}

OperationalSettings

FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
time_zoneRequiredstringResource-specific value; see the related workflow and schema.
planningobjectBusiness planning preferences.
evidenceobjectShared completion-evidence requirements.
routingobjectLocal road-routing engine and approved-dataset update schedule.
planning fields
FieldTypeDescription & constraints
planning.travel_metrictime | distance | nullResource-specific value; see the related workflow and schema.
planning.objectivesarray<completed_tasks | travel>Planning objectives; completing more work and minimizing travel can be combined.
planning.location_freshness_secondsintegerResource-specific value; see the related workflow and schema.
planning.min_rest_secondsinteger | nullResource-specific value; see the related workflow and schema.
planning.notify_unplannedbooleanResource-specific value; see the related workflow and schema.
evidence fields
FieldTypeDescription & constraints
evidence.require_photosbooleanResource-specific value; see the related workflow and schema.
evidence.require_signaturebooleanResource-specific value; see the related workflow and schema.
routing fields
FieldTypeDescription & constraints
routing.engineosrm | valhallaResource-specific value; see the related workflow and schema.
routing.update_schedulestringFive-field cron in business time zone. Weekly Sunday03:00 default; approved regions only.
Example OperationalSettings
{
  "id": "example-id",
  "name": "Example Services",
  "time_zone": "Europe/Warsaw",
  "planning": {
    "travel_metric": "time",
    "objectives": [
      "completed_tasks",
      "travel"
    ],
    "location_freshness_seconds": 1,
    "min_rest_seconds": 1,
    "notify_unplanned": false
  },
  "evidence": {
    "require_photos": false,
    "require_signature": false
  },
  "routing": {
    "engine": "osrm",
    "update_schedule": "example"
  }
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "time_zone": {
      "type": "string"
    },
    "planning": {
      "type": "object",
      "properties": {
        "travel_metric": {
          "anyOf": [
            {
              "enum": [
                "time",
                "distance"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "objectives": {
          "type": "array",
          "items": {
            "enum": [
              "completed_tasks",
              "travel"
            ]
          }
        },
        "location_freshness_seconds": {
          "type": "integer"
        },
        "min_rest_seconds": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "notify_unplanned": {
          "type": "boolean"
        }
      }
    },
    "evidence": {
      "type": "object",
      "properties": {
        "require_photos": {
          "type": "boolean"
        },
        "require_signature": {
          "type": "boolean"
        }
      }
    },
    "routing": {
      "type": "object",
      "properties": {
        "engine": {
          "enum": [
            "osrm",
            "valhalla"
          ]
        },
        "update_schedule": {
          "type": "string",
          "description": "Five-field cron in business time zone. Weekly Sunday03:00 default; approved regions only."
        }
      }
    }
  },
  "required": [
    "name",
    "time_zone"
  ],
  "additionalProperties": true
}

ResourceRecord

Actual resource-specific shape; generic records include system metadata.

FieldTypeDescription & constraints
idstringOptional on creation; generated if absent. Unique within authorized business; duplicates409 even if payload matches.Max length: 120
typetask | breakRecord or field type; choose one of the listed values.
locationRequiredobjectService or record location, using latitude/longitude in decimal degrees.
duration_secondsRequiredintegerTime needed to do the work, excluding travel, in seconds.Min: 1
window_startRequiredstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
window_endRequiredstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
statuscreated | on_road | in_progress | completed | unable_to_complete | cancelledLive execution status. Administrator changes become pending_status until publication.
pending_statuscreated | on_road | in_progress | completed | unable_to_complete | cancelled | nullResource-specific value; see the related workflow and schema.
scheduled_atstring | nullPlanned service-start instant; absence indicates unplanned work.
vehicle_idstring | nullAssigned or selected vehicle ID in this business.
driver_idstring | nullAssigned driver ID; stop-specific assignments can change after a handover.
replacement_driver_idstring | nullAdministrator-selected replacement driver for a handover break.
custom_fieldsobjectValues keyed by the business-defined custom field IDs. Existing orders retain their schema version.
schema_snapshotobjectImmutable field definition/type/permission version for this order.Response only
actual_started_atstring | nullResource-specific value; see the related workflow and schema.
actual_completed_atstring | nullResource-specific value; see the related workflow and schema.
location fields
FieldTypeDescription & constraints
location.latitudeRequirednumberLatitude in decimal degrees, from -90 to 90.Min: -90 · Max: 90
location.longitudeRequirednumberLongitude in decimal degrees, from -180 to 180.Min: -180 · Max: 180
FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
warehouse_idRequiredstringWarehouse used as this vehicle’s route origin/return location.
driver_idstring | nullAssigned driver ID; stop-specific assignments can change after a handover.
colorstringResource-specific value; see the related workflow and schema.
height_metersnumber | nullResource-specific value; see the related workflow and schema.
weight_kgnumber | nullResource-specific value; see the related workflow and schema.
working_hoursobjectVehicle availability: weekly weekday intervals plus calendar-date overrides.
working_hours fields
FieldTypeDescription & constraints
working_hours.weeklyRequiredobject0=Monday through6=Sunday
working_hours.overridesRequiredobjectCalendar-date keys replace that entire date, including prior-night carryover. Empty array means unavailable.
working_hours.gap_policyreturn_to_warehouse | waitResource-specific value; see the related workflow and schema.
FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
emailRequiredstringAccount email address.Format: email
activebooleanWhether this account or integration is enabled.
duty_statusonline | offlineResource-specific value; see the related workflow and schema.
locationobject | nullService or record location, using latitude/longitude in decimal degrees.
duty_started_atstring | nullResource-specific value; see the related workflow and schema.
activation_codestringReturned once during provisioning/reset; administrator delivers it to driver.Response only
FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
locationRequiredobjectService or record location, using latitude/longitude in decimal degrees.
location fields
FieldTypeDescription & constraints
location.latitudeRequirednumberLatitude in decimal degrees, from -90 to 90.Min: -90 · Max: 90
location.longitudeRequirednumberLongitude in decimal degrees, from -180 to 180.Min: -180 · Max: 180
FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
fieldsRequiredarray<object>Custom-field definitions captured for new orders.
fields[] fields
FieldTypeDescription & constraints
fields.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
fields.nameRequiredstringHuman-readable name shown in the workspace.
fields.typeRequiredtext | number | date | datetime | boolean | selectRecord or field type; choose one of the listed values.
fields.requiredbooleanWhether a value is mandatory.
fields.driver_visiblebooleanWhether drivers can see the field.
fields.driver_editablebooleanWhether drivers can edit the field; hidden fields cannot be editable.
fields.multiplebooleanAllow multiple dropdown choices when true.
fields.choicesarray<object>Allowed dropdown options with stable IDs and labels.
fields.choices[] fields
FieldTypeDescription & constraints
fields.choices.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
fields.choices.labelRequiredstringResource-specific value; see the related workflow and schema.
FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
urlRequiredstringHTTPS destination for webhook deliveries.Format: uri
eventsRequiredarray<string>Subscribed event names; use * for all supported events.
activebooleanWhether this account or integration is enabled.
secretstringPrivate shared webhook-signing secret.
FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
geometryRequiredobjectGeoJSON Polygon; coordinates are longitude/latitude.
statusnot_installed | queued | running | installing | ready | failed | buildingCurrent execution or operation state. Planned/unplanned is separate from execution.
job_idstring | nullResource-specific value; see the related workflow and schema.
dataset_versionstring | nullResource-specific value; see the related workflow and schema.
errorstring | nullResource-specific value; see the related workflow and schema.
geometry fields
FieldTypeDescription & constraints
geometry.typePolygonRecord or field type; choose one of the listed values.
geometry.coordinatesarray<array<array<number>>>Resource-specific value; see the related workflow and schema.
FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nameRequiredstringHuman-readable name shown in the workspace.
nodesRequiredarray<object>Graph vertices.
edgesRequiredarray<object>Directed graph connections with travel costs.
ordersarray<object>Resource-specific value; see the related workflow and schema.
warehousesarray<object>Resource-specific value; see the related workflow and schema.
vehiclesarray<object>Resource-specific value; see the related workflow and schema.
driversarray<object>Resource-specific value; see the related workflow and schema.
nodes[] fields
FieldTypeDescription & constraints
nodes.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
nodes.xRequirednumberResource-specific value; see the related workflow and schema.
nodes.yRequirednumberResource-specific value; see the related workflow and schema.
edges[] fields
FieldTypeDescription & constraints
edges.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
edges.fromRequiredstringResource-specific value; see the related workflow and schema.
edges.toRequiredstringResource-specific value; see the related workflow and schema.
edges.time_secondsRequirednumberResource-specific value; see the related workflow and schema.
edges.distance_metersRequirednumberResource-specific value; see the related workflow and schema.
edges.bidirectionalbooleanResource-specific value; see the related workflow and schema.
edges.reverse_time_secondsnumberResource-specific value; see the related workflow and schema.
edges.reverse_distance_metersnumberResource-specific value; see the related workflow and schema.
FieldTypeDescription & constraints
idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
vehicle_idRequiredstringAssigned or selected vehicle ID in this business.
driver_idstring | nullAssigned driver ID; stop-specific assignments can change after a handover.
revisionRequiredintegerCurrent version used to detect stale edits or publication.
stateRequiredplanning | published | supersededPlanning/published version state or event visibility state.
start_atstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
end_atstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
stopsRequiredarray<object>Ordered planned route stops.
return_legobjectResource-specific value; see the related workflow and schema.
warningsarray<string>Constraint warnings requiring review where applicable.
unplanned_order_idsarray<string>Resource-specific value; see the related workflow and schema.
publishedobject | nullResource-specific value; see the related workflow and schema.
received_atstring | nullResource-specific value; see the related workflow and schema.
FieldTypeDescription & constraints
idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
created_atstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
updated_atstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
revisionintegerCurrent version used to detect stale edits or publication.
deleted_atstring | nullSystem-managed UTC soft-deletion instant; null for active records.Format: date-time
deleted_bystring | nullDeletion actor retained for history.Format: uuid
Example ResourceRecord
{
  "id": "example-id",
  "type": "task",
  "location": {
    "latitude": 52.2297,
    "longitude": 21.0122
  },
  "duration_seconds": 1800,
  "window_start": "2026-11-02T09:00:00Z",
  "window_end": "2026-11-02T12:00:00Z",
  "status": "created",
  "pending_status": "created",
  "scheduled_at": "2026-11-02T09:30:00Z",
  "vehicle_id": "van-01",
  "driver_id": "driver-01",
  "replacement_driver_id": "example",
  "custom_fields": {},
  "schema_snapshot": {},
  "actual_started_at": "2026-11-02T09:00:00Z",
  "actual_completed_at": "2026-11-02T09:00:00Z"
}
Full schema
{
  "description": "Actual resource-specific shape; generic records include system metadata.",
  "anyOf": [
    {
      "$ref": "#/components/schemas/Order"
    },
    {
      "$ref": "#/components/schemas/Vehicle"
    },
    {
      "$ref": "#/components/schemas/Driver"
    },
    {
      "$ref": "#/components/schemas/Warehouse"
    },
    {
      "$ref": "#/components/schemas/CustomSchema"
    },
    {
      "$ref": "#/components/schemas/Webhook"
    },
    {
      "$ref": "#/components/schemas/Region"
    },
    {
      "$ref": "#/components/schemas/Scenario"
    },
    {
      "$ref": "#/components/schemas/Plan"
    },
    {
      "$ref": "#/components/schemas/Record"
    }
  ]
}

PlanningRequest

FieldTypeDescription & constraints
vehicle_idsRequiredarray<string>IDs of eligible vehicles selected for the planning run.
date_startRequiredstringFirst planning date in the business time zone.Format: date
date_endRequiredstringLast planning date in the business time zone.Format: date
datesarray<string>Explicit local calendar dates to consider, when supported.
schedule_lockbooleanPreserve existing planned start times and relative stop order. Defaults to false.
assignment_lockbooleanPreserve existing vehicle/driver assignments. Defaults to false.
include_plannedbooleanInclude already-planned orders in the planning run. Defaults to false.
objectivesarray<completed_tasks | travel>Planning objectives; completing more work and minimizing travel can be combined.
Example PlanningRequest
{
  "vehicle_ids": [
    "van-01"
  ],
  "date_start": "2026-11-02",
  "date_end": "2026-11-02",
  "dates": [
    "2026-11-02"
  ],
  "schedule_lock": false,
  "assignment_lock": false,
  "include_planned": false,
  "objectives": [
    "completed_tasks",
    "travel"
  ]
}
Full schema
{
  "type": "object",
  "properties": {
    "vehicle_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "date_start": {
      "type": "string",
      "format": "date"
    },
    "date_end": {
      "type": "string",
      "format": "date"
    },
    "dates": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "date"
      }
    },
    "schedule_lock": {
      "type": "boolean"
    },
    "assignment_lock": {
      "type": "boolean"
    },
    "include_planned": {
      "type": "boolean"
    },
    "objectives": {
      "type": "array",
      "items": {
        "enum": [
          "completed_tasks",
          "travel"
        ]
      }
    }
  },
  "required": [
    "vehicle_ids",
    "date_start",
    "date_end"
  ]
}

EvidenceUpload

Maximum binary payload10MiB; numeric JSON encoding is larger. Images are private and required evidence must be uploaded before completion.

FieldTypeDescription & constraints
kindRequiredphoto | signaturePhoto or customer signature evidence.
content_typeRequiredimage/png | image/jpeg | image/webpMIME type of the image bytes.
bytesRequiredarray<integer>Numeric byte array containing an actual supported image; not a base64 string.
Example EvidenceUpload
{
  "kind": "photo",
  "content_type": "image/png",
  "bytes": [
    1
  ]
}
Full schema
{
  "type": "object",
  "properties": {
    "kind": {
      "enum": [
        "photo",
        "signature"
      ]
    },
    "content_type": {
      "enum": [
        "image/png",
        "image/jpeg",
        "image/webp"
      ]
    },
    "bytes": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 255
      }
    }
  },
  "required": [
    "kind",
    "content_type",
    "bytes"
  ],
  "description": "Maximum binary payload10MiB; numeric JSON encoding is larger. Images are private and required evidence must be uploaded before completion."
}

DriverEvidenceMetadata

FieldTypeDescription & constraints
idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.Format: uuid
kindRequiredphoto | signaturePhoto or customer signature evidence.
content_typeRequiredimage/png | image/jpeg | image/webpMIME type of the image bytes.
size_bytesintegerResource-specific value; see the related workflow and schema.
created_atstringResource-specific value; see the related workflow and schema.Format: date-time
Example DriverEvidenceMetadata
{
  "id": "11111111-1111-4111-8111-111111111111",
  "kind": "photo",
  "content_type": "image/png",
  "size_bytes": 1,
  "created_at": "2026-11-02T09:00:00Z"
}
Full schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "enum": [
        "photo",
        "signature"
      ]
    },
    "content_type": {
      "enum": [
        "image/png",
        "image/jpeg",
        "image/webp"
      ]
    },
    "size_bytes": {
      "type": "integer"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "kind",
    "content_type"
  ]
}

DriverSessionResponse

FieldTypeDescription & constraints
tokenRequiredstringOpaque driver bearer token. Keep private.
business_idRequiredstringResource-specific value; see the related workflow and schema.Format: uuid
driverRequiredobjectResource-specific value; see the related workflow and schema.
expires_atstringLatest instant this temporary offer or session remains valid.Format: date-time
driver fields
FieldTypeDescription & constraints
driver.idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
driver.nameRequiredstringHuman-readable name shown in the workspace.
driver.emailRequiredstringAccount email address.Format: email
driver.activebooleanWhether this account or integration is enabled.
driver.duty_statusonline | offlineResource-specific value; see the related workflow and schema.
driver.locationobject | nullService or record location, using latitude/longitude in decimal degrees.
driver.duty_started_atstring | nullResource-specific value; see the related workflow and schema.
driver.activation_codestringReturned once during provisioning/reset; administrator delivers it to driver.Response only
Example DriverSessionResponse
{
  "token": "REPLACE_WITH_TOKEN",
  "business_id": "11111111-1111-4111-8111-111111111111",
  "driver": {
    "id": "example-id",
    "name": "Example Services",
    "email": "dispatcher@example.com",
    "active": true,
    "duty_status": "online",
    "location": {
      "latitude": 52.2297,
      "longitude": 21.0122
    },
    "duty_started_at": "2026-11-02T09:00:00Z",
    "activation_code": "example"
  },
  "expires_at": "2026-11-02T09:00:00Z"
}
Full schema
{
  "type": "object",
  "required": [
    "token",
    "business_id",
    "driver"
  ],
  "properties": {
    "token": {
      "type": "string",
      "description": "Opaque driver bearer token. Keep private."
    },
    "business_id": {
      "type": "string",
      "format": "uuid"
    },
    "driver": {
      "$ref": "#/components/schemas/Driver"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}

DriverBusinessChoices

FieldTypeDescription & constraints
requires_business_selectionRequiredtrueResource-specific value; see the related workflow and schema.
businessesRequiredarray<object>Resource-specific value; see the related workflow and schema.
reauthenticate_on_selectionRequiredtrueResource-specific value; see the related workflow and schema.
businesses[] fields
FieldTypeDescription & constraints
businesses.business_idRequiredstringResource-specific value; see the related workflow and schema.Format: uuid
businesses.nameRequiredstringHuman-readable name shown in the workspace.
Example DriverBusinessChoices
{
  "requires_business_selection": true,
  "businesses": [
    {
      "business_id": "11111111-1111-4111-8111-111111111111",
      "name": "Example Services"
    }
  ],
  "reauthenticate_on_selection": true
}
Full schema
{
  "type": "object",
  "required": [
    "requires_business_selection",
    "businesses",
    "reauthenticate_on_selection"
  ],
  "properties": {
    "requires_business_selection": {
      "const": true
    },
    "businesses": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "business_id",
          "name"
        ],
        "properties": {
          "business_id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        }
      }
    },
    "reauthenticate_on_selection": {
      "const": true
    }
  }
}

DriverSnapshot

FieldTypeDescription & constraints
businessRequiredobjectResource-specific value; see the related workflow and schema.
driverRequiredobjectResource-specific value; see the related workflow and schema.
plansRequiredarray<object>Resource-specific value; see the related workflow and schema.
ordersRequiredarray<object>Resource-specific value; see the related workflow and schema.
evidence_requirementsobjectResource-specific value; see the related workflow and schema.
last_refreshed_atRequiredstringResource-specific value; see the related workflow and schema.Format: date-time
warningsarray<string>Constraint warnings requiring review where applicable.
business fields
FieldTypeDescription & constraints
business.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.Format: uuid
business.nameRequiredstringHuman-readable name shown in the workspace.
business.time_zoneRequiredstringNamed IANA time zone, validated by the backend.
business.deleted_atstring | nullSystem-managed UTC soft-deletion instant; null for active records.Format: date-time
business.deleted_bystring | nullDeletion actor retained for history.Format: uuid
driver fields
FieldTypeDescription & constraints
driver.idstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
driver.nameRequiredstringHuman-readable name shown in the workspace.
driver.emailRequiredstringAccount email address.Format: email
driver.activebooleanWhether this account or integration is enabled.
driver.duty_statusonline | offlineResource-specific value; see the related workflow and schema.
driver.locationobject | nullService or record location, using latitude/longitude in decimal degrees.
driver.duty_started_atstring | nullResource-specific value; see the related workflow and schema.
driver.activation_codestringReturned once during provisioning/reset; administrator delivers it to driver.Response only
plans[] fields
FieldTypeDescription & constraints
plans.idRequiredstringIdentifier unique within its authorized business. Some create operations generate it when omitted.
plans.vehicle_idRequiredstringAssigned or selected vehicle ID in this business.
plans.driver_idstring | nullAssigned driver ID; stop-specific assignments can change after a handover.
plans.revisionRequiredintegerCurrent version used to detect stale edits or publication.
plans.stateRequiredplanning | published | supersededPlanning/published version state or event visibility state.
plans.start_atstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
plans.end_atstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
plans.stopsRequiredarray<object>Ordered planned route stops.
plans.return_legobjectResource-specific value; see the related workflow and schema.
plans.warningsarray<string>Constraint warnings requiring review where applicable.
plans.unplanned_order_idsarray<string>Resource-specific value; see the related workflow and schema.
plans.publishedobject | nullResource-specific value; see the related workflow and schema.
plans.received_atstring | nullResource-specific value; see the related workflow and schema.
orders[] fields
FieldTypeDescription & constraints
orders.idstringOptional on creation; generated if absent. Unique within authorized business; duplicates409 even if payload matches.Max length: 120
orders.typetask | breakRecord or field type; choose one of the listed values.
orders.locationRequiredobjectService or record location, using latitude/longitude in decimal degrees.
orders.duration_secondsRequiredintegerTime needed to do the work, excluding travel, in seconds.Min: 1
orders.window_startRequiredstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
orders.window_endRequiredstringRFC3339 UTC instant or explicit offset; business wall times are resolved separately.Format: date-time
orders.statuscreated | on_road | in_progress | completed | unable_to_complete | cancelledLive execution status. Administrator changes become pending_status until publication.
orders.pending_statuscreated | on_road | in_progress | completed | unable_to_complete | cancelled | nullResource-specific value; see the related workflow and schema.
orders.scheduled_atstring | nullPlanned service-start instant; absence indicates unplanned work.
orders.vehicle_idstring | nullAssigned or selected vehicle ID in this business.
orders.driver_idstring | nullAssigned driver ID; stop-specific assignments can change after a handover.
orders.replacement_driver_idstring | nullAdministrator-selected replacement driver for a handover break.
orders.custom_fieldsobjectValues keyed by the business-defined custom field IDs. Existing orders retain their schema version.
orders.schema_snapshotobjectImmutable field definition/type/permission version for this order.Response only
orders.actual_started_atstring | nullResource-specific value; see the related workflow and schema.
orders.actual_completed_atstring | nullResource-specific value; see the related workflow and schema.
orders.location fields
FieldTypeDescription & constraints
orders.location.latitudeRequirednumberLatitude in decimal degrees, from -90 to 90.Min: -90 · Max: 90
orders.location.longitudeRequirednumberLongitude in decimal degrees, from -180 to 180.Min: -180 · Max: 180
evidence_requirements fields
FieldTypeDescription & constraints
evidence_requirements.require_photosbooleanResource-specific value; see the related workflow and schema.
evidence_requirements.require_signaturebooleanResource-specific value; see the related workflow and schema.
Example DriverSnapshot
{
  "business": {
    "id": "11111111-1111-4111-8111-111111111111",
    "name": "Example Services",
    "time_zone": "Europe/Warsaw",
    "deleted_at": "2026-11-02T09:00:00Z",
    "deleted_by": "11111111-1111-4111-8111-111111111111"
  },
  "driver": {
    "id": "example-id",
    "name": "Example Services",
    "email": "dispatcher@example.com",
    "active": true,
    "duty_status": "online",
    "location": {
      "latitude": 52.2297,
      "longitude": 21.0122
    },
    "duty_started_at": "2026-11-02T09:00:00Z",
    "activation_code": "example"
  },
  "plans": [
    {
      "id": "example-id",
      "vehicle_id": "van-01",
      "driver_id": "driver-01",
      "revision": 1,
      "state": "planning",
      "start_at": "2026-11-02T08:00:00Z",
      "end_at": "2026-11-02T16:00:00Z",
      "stops": [
        {}
      ],
      "return_leg": {},
      "warnings": [
        "example"
      ],
      "unplanned_order_ids": [
        "example"
      ],
      "published": {},
      "received_at": "2026-11-02T09:00:00Z"
    }
  ],
  "orders": [
    {
      "id": "example-id",
      "type": "task",
      "location": {
        "latitude": 52.2297,
        "longitude": 21.0122
      },
      "duration_seconds": 1800,
      "window_start": "2026-11-02T09:00:00Z",
      "window_end": "2026-11-02T12:00:00Z",
      "status": "created",
      "pending_status": "created",
      "scheduled_at": "2026-11-02T09:30:00Z",
      "vehicle_id": "van-01",
      "driver_id": "driver-01",
      "replacement_driver_id": "example",
      "custom_fields": {},
      "schema_snapshot": {},
      "actual_started_at": "2026-11-02T09:00:00Z",
      "actual_completed_at": "2026-11-02T09:00:00Z"
    }
  ],
  "evidence_requirements": {
    "require_photos": false,
    "require_signature": false
  },
  "last_refreshed_at": "2026-11-02T09:00:00Z",
  "warnings": [
    "example"
  ]
}
Full schema
{
  "type": "object",
  "required": [
    "business",
    "driver",
    "plans",
    "orders",
    "last_refreshed_at"
  ],
  "properties": {
    "business": {
      "$ref": "#/components/schemas/Business"
    },
    "driver": {
      "$ref": "#/components/schemas/Driver"
    },
    "plans": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Plan"
      }
    },
    "orders": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Order"
      }
    },
    "evidence_requirements": {
      "type": "object",
      "required": [],
      "properties": {
        "require_photos": {
          "type": "boolean"
        },
        "require_signature": {
          "type": "boolean"
        }
      }
    },
    "last_refreshed_at": {
      "type": "string",
      "format": "date-time"
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}