Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.vh3.ai/llms.txt

Use this file to discover all available pages before exploring further.

Jobs

The Jobs endpoints provide access to your enriched job records — including AI-extracted fault types, outcomes, timings, and relationships to engineers, sites, and customers.

GET /jobs/feed

Returns a paginated feed of enriched jobs for your company, ordered by most recent. Query parameters:
ParamTypeRequiredDescription
company_idstringYesYour tenant identifier
api_keystringYesYour tenant API key
page_sizeintegerNoResults per page
page_numberintegerNoPage number
contact_idstringNoFilter by customer contact
resource_idstringNoFilter by engineer/resource
type_idstringNoFilter by job type
category_idstringNoFilter by job category
statusstringNoFilter by job status
resultstringNoFilter by job result
compactbooleanNoReturn compact response (fewer fields)
Example:
curl -G "https://api.vh3connect.io/api:kP8T1CK7/jobs/feed" \
  --data-urlencode "company_id=your-company-id" \
  --data-urlencode "api_key=your-api-key" \
  --data-urlencode "page_size=20" \
  --data-urlencode "page_number=1"

GET /jobs/

Returns the full enriched record for a specific job, including AI-extracted fields, graph relationships, and timing data. Path parameters:
ParamTypeRequiredDescription
job_idstringYesThe job identifier
Query parameters:
ParamTypeRequiredDescription
company_idstringYesYour tenant identifier
api_keystringYesYour tenant API key
include_worksheetsbooleanNoInclude worksheet data
compactbooleanNoReturn compact response
Example:
curl -G "https://api.vh3connect.io/api:kP8T1CK7/jobs/12345" \
  --data-urlencode "company_id=your-company-id" \
  --data-urlencode "api_key=your-api-key" \
  --data-urlencode "include_worksheets=true"

POST /aggregate/jobs

Job metrics with groupBy dimensions and period comparison — powers dashboard charts and trend analysis. Request body:
FieldTypeRequiredDescription
company_idstringYesYour tenant identifier
api_keystringYesYour tenant API key
metricstringYesMetric to compute (e.g. count, sla_punctuality, first_time_fix)
time_axisstringNoTime bucketing (day, week, month)
periodstringNoPeriod to analyse (e.g. last_30_days, last_quarter)
compare_tostringNoComparison period (e.g. previous_period)
group_bystringNoDimension to group by (engineer, customer, job_type, site)
filtersobjectNoAdditional filters
limitintegerNoMax groups to return
Example:
curl -X POST "https://api.vh3connect.io/api:kP8T1CK7/aggregate/jobs" \
  -H "Content-Type: application/json" \
  -d '{
    "company_id": "your-company-id",
    "api_key": "your-api-key",
    "metric": "count",
    "time_axis": "week",
    "period": "last_30_days",
    "group_by": "engineer"
  }'