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.

Cases

The Cases endpoints provide a lightweight case management system for tracking multi-step operational workflows — escalations, customer complaints, follow-up work, and anything that spans multiple jobs or interactions.

POST /cases/create

Create a new case. Request body:
FieldTypeRequiredDescription
company_idstringYesYour tenant identifier
api_keystringYesYour tenant API key
titlestringYesCase title
typestringYesCase type (e.g. escalation, complaint, follow_up)
descriptionstringNoDetailed description
prioritystringNoPriority level (low, medium, high, critical)
actor_typestringNoWho created the case (user, system, automation)
actor_idintegerNoID of the creating actor
tagsobjectNoTags for categorisation
metadataobjectNoArbitrary metadata
due_datenumberNoDue date (unix timestamp)
curl -X POST "https://api.vh3connect.io/api:kP8T1CK7/cases/create" \
  -H "Content-Type: application/json" \
  -d '{
    "company_id": "your-company-id",
    "api_key": "your-api-key",
    "title": "Repeat boiler failure at Tesco Manchester",
    "type": "escalation",
    "priority": "high",
    "description": "Third callout in 6 weeks for the same unit. Needs senior engineer assessment."
  }'

GET /cases/list

List cases with optional filtering. Query parameters:
ParamTypeRequiredDescription
company_idstringYesYour tenant identifier
api_keystringYesYour tenant API key
statusstringNoFilter by status
typestringNoFilter by case type
prioritystringNoFilter by priority
owner_idintegerNoFilter by case owner
searchstringNoFull-text search across case titles and descriptions
pageintegerNoPage number
per_pageintegerNoResults per page
curl -G "https://api.vh3connect.io/api:kP8T1CK7/cases/list" \
  --data-urlencode "company_id=your-company-id" \
  --data-urlencode "api_key=your-api-key" \
  --data-urlencode "status=open" \
  --data-urlencode "priority=high"

GET /cases/search

Full-text search across all cases.
curl -G "https://api.vh3connect.io/api:kP8T1CK7/cases/search" \
  --data-urlencode "company_id=your-company-id" \
  --data-urlencode "api_key=your-api-key" \
  --data-urlencode "q=boiler Manchester"

GET /cases/

Retrieve a specific case with full details.
curl -G "https://api.vh3connect.io/api:kP8T1CK7/cases/case-001" \
  --data-urlencode "company_id=your-company-id" \
  --data-urlencode "api_key=your-api-key"

PATCH /cases/

Update a case (title, description, priority, status, etc.).
curl -X PATCH "https://api.vh3connect.io/api:kP8T1CK7/cases/case-001" \
  -H "Content-Type: application/json" \
  -d '{
    "company_id": "your-company-id",
    "api_key": "your-api-key",
    "priority": "critical"
  }'

POST /cases//transition

Transition a case to a new status.
curl -X POST "https://api.vh3connect.io/api:kP8T1CK7/cases/case-001/transition" \
  -H "Content-Type: application/json" \
  -d '{
    "company_id": "your-company-id",
    "api_key": "your-api-key",
    "status": "resolved"
  }'

POST /cases//comments

Add a comment to a case.
curl -X POST "https://api.vh3connect.io/api:kP8T1CK7/cases/case-001/comments" \
  -H "Content-Type: application/json" \
  -d '{
    "company_id": "your-company-id",
    "api_key": "your-api-key",
    "body": "Senior engineer booked for Friday. Parts on order."
  }'

GET /cases//activity

Retrieve the full activity timeline for a case — all updates, comments, transitions, and linked items.
curl -G "https://api.vh3connect.io/api:kP8T1CK7/cases/case-001/activity" \
  --data-urlencode "company_id=your-company-id" \
  --data-urlencode "api_key=your-api-key"

POST /cases//participants

Add a participant to a case.
curl -X POST "https://api.vh3connect.io/api:kP8T1CK7/cases/case-001/participants" \
  -H "Content-Type: application/json" \
  -d '{
    "company_id": "your-company-id",
    "api_key": "your-api-key",
    "user_id": "user-42"
  }'

POST /cases//items

Link an item (job, contact, site) to a case.
curl -X POST "https://api.vh3connect.io/api:kP8T1CK7/cases/case-001/items" \
  -H "Content-Type: application/json" \
  -d '{
    "company_id": "your-company-id",
    "api_key": "your-api-key",
    "item_type": "job",
    "item_id": "12345"
  }'