Skip to main content

GraphQL API (backend)

Everything the MoveTheWheels web app and CLI can do is available to you through a GraphQL API on the Burdenoff Workspaces platform. Every operation is authenticated and permission-checked against the calling user's role in the workspace.

Endpoint​

https://graphqlworkspaces.burdenoff.com/workspaces/graphql

Alpha and local endpoints are selectable via BURDENOFF_ENV or direct override. See Environment Selection.

Auth​

Standard Burdenoff Workspaces auth:

Authorization: Bearer <token>
x-workspace-id: <workspace-uuid>

x-workspace-id is REQUIRED. MoveTheWheels data is workspace-scoped.

Example queries​

List orders

query Orders($filter: OrderFilter, $pagination: Pagination) {
orders(filter: $filter, pagination: $pagination) {
id
type
priority
status
customer { id name }
lineItems { product { id name } quantity }
}
}

List shipments

query Shipments($filter: ShipmentFilter, $pagination: Pagination) {
shipments(filter: $filter, pagination: $pagination) {
id
shipmentNumber
status
origin
destination
carrier { id name }
trackingNumber
estimatedDelivery
}
}

Create a shipment from an order

mutation CreateShipment($input: CreateShipmentInput!) {
createShipment(input: $input) {
id
shipmentNumber
order { id }
status
}
}

Plan a route

mutation CreateRoute($input: CreateRouteInput!) {
createRoute(input: $input) {
id
name
status
waypoints { sequence location }
vehicle { id type }
driver { id name }
estimatedDistance
estimatedDuration
fuelCost
}
}

Add a tracking event

mutation AddTrackingEvent($input: AddTrackingEventInput!) {
addTrackingEvent(input: $input) {
id
type
occurredAt
}
}

Error handling​

Failures surface as standard GraphQL errors:

{
"errors": [
{
"message": "Shipment not found",
"extensions": {
"code": "NOT_FOUND",
"resource": "shipment"
}
}
]
}

Common codes: VALIDATION_ERROR, UNAUTHENTICATED, FORBIDDEN, NOT_FOUND.

Conventions​

  • Workspace-scoped — every query and mutation only ever touches your workspace's data
  • Permission-checked — every operation is authorized against the caller's role
  • Filterable lists — list queries accept filter and pagination arguments
  • Additive evolution — the schema grows additively; breaking changes follow a deprecation policy

Next steps​