REC
//CLASSIFIEDOPS_COMPANION v3.0.1//CONSOLE.READY////
DEMO ENV
[D-05]UNLIMITED PLAN

API REFERENCE

REST endpoints, webhook events, authentication, and integration patterns for connecting OPS Companion to your existing infrastructure.

// OPS_COMPANION FIELD MANUAL
PLAN REQUIREMENT
The API and webhook system is included in the Unlimited plan. It is available as a paid add-on for Starter and Team plans. Contact support for add-on pricing.

Overview

OPS Companion exposes a REST API and a WebSocket subscription layer for real-time events. The REST API follows standard HTTP conventions. Authentication uses JWT Bearer tokens. All responses are JSON.

Base URLhttps://api.ops-companion.tech/v1
Auth MethodBearer JWT token
Response FormatJSON (application/json)
Rate Limit — Starter1,000 req/min
Rate Limit — Team5,000 req/min
Rate Limit — UnlimitedUnlimited
TLS1.3 required

Authentication

Obtain a JWT token by posting credentials to the auth endpoint. Include the token as a Bearer header in all subsequent requests.

// Obtain a token
POST /auth/token
{
"email": "admin@yourcompany.com",
"password": "...",
"organization_id": "org_123"
}
// Use the token in subsequent requests
Authorization: Bearer <token>
API KEYS
Administrators can generate long-lived API keys from the Admin dashboard for server-to-server integrations. API keys bypass the token expiry cycle but are subject to the same RLS restrictions as the user account they belong to.

REST Endpoints

/work-ordersGET, POST, PATCH, DELETE

List, create, update, and delete work orders. Supports filtering by status, assignee, date range, and priority.

/assetsGET, POST, PATCH

Machine and equipment registry. Query by make, model, client, GPS zone, or mechanical state.

/employeesGET, POST, PATCH

Employee roster management. Role assignment, certification records, contact information.

/inventoryGET, POST, PATCH

Multi-warehouse parts inventory. Stock levels, warehouse locations, parts-to-machine linkage.

/quotesGET, POST, PATCH

Quote pipeline management. Create quotes, update pipeline stage, retrieve acceptance status and signature data.

/gps-eventsGET

GPS telemetry event stream. Query historical positions by asset, time range, or geofence zone.

/timesheetsGET

Punch records and generated timesheets. Filter by employee, date range, or approval status.

/inspection-formsGET, POST

Completed inspection form submissions. Includes photo attachments and electronic signatures.

Webhook Events

Configure webhook endpoints in the Admin dashboard. OPS Companion will POST a JSON payload to your URL for each subscribed event. All deliveries include a signature header for verification.

work_order.createdA new work order was created
work_order.assignedA work order was assigned to a technician
work_order.startedA technician began work on an order
work_order.completedA work order was completed and signed off
quote.createdA new quote was created
quote.sentA quote email was sent to the client
quote.acceptedA client accepted a quote with digital signature
asset.geofence_breachA machine entered or exited a restricted zone
employee.punched_inAn employee punched in with GPS verification
employee.punched_outAn employee punched out
inspection.submittedAn inspection form was completed and signed
PAGINATION
All list endpoints return paginated results. Use ?limit=50&offset=0 query parameters. The response includes a total count and next_cursor for cursor-based pagination on high-volume endpoints.