Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/torgix-ai:torgix-ai-work-orders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: Torgix Work Orders API
version: v2
description: 'Read and write your Torgix equipment data, and subscribe to webhooks. The API is included with every Torgix account at no extra cost; an admin enables it and issues keys under Settings, API & Webhooks in the app. All requests are tenant-scoped to the key’s account.
The path is `/v1`; the service root reports engine version `v2`, the second, additive generation of the same surface. 55 resources are exposed through one engine: every resource supports list, get, export and aggregate; writable ones add create, batch, update and soft delete. Fields mirror the record as it appears in the app, including any custom fields an admin has defined. Pull one record to learn its shape.
Limits: 10 requests per second per key, pages of up to 200, exports of up to 2000 rows per call, batches of up to 200, request bodies up to 1 MB.'
contact:
name: Torgix
url: https://torgix.ai
x-generated: lib/api_openapi.js from lib/api_resources.js; served live at /v1/openapi.json
servers:
- url: https://app.torgix.ai/v1
description: Production
security:
- ApiKeyAuth: []
- OAuth2: []
tags:
- name: work_orders
x-displayName: Work orders
description: Create, update, delete.
paths:
/work_orders:
get:
tags:
- work_orders
summary: List work orders
description: 'Returns a page of work orders. Without `sort`, pages are keyset (pass `next_cursor` back as `cursor`); with `sort`, pages are numbered (`page`, `page_size`, `next_page`). Filter on any field: `?status=active` (exact), or an operator in brackets, `?hours[gte]=500`, `?status[in]=open,active`, `?name[like]=%320%`, `?cleared_at[null]=true` (operators: eq, ne, gt, gte, lt, lte, in, nin, like, nlike, null). Add `?changed_since=` for incremental sync and `?fields=` to project columns. Soft-deleted rows are hidden unless `?include_deleted=true`.'
security:
- ApiKeyAuth:
- read
- OAuth2:
- read
parameters:
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/changed_since'
- $ref: '#/components/parameters/cursor'
- $ref: '#/components/parameters/page_size'
- $ref: '#/components/parameters/sort'
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/include_deleted'
responses:
'200':
description: A page of work orders.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
additionalProperties: true
next_cursor:
type:
- string
- 'null'
description: 'Keyset mode: pass back as ?cursor= for the next page; null when no more.'
page:
type: integer
description: Sorted mode only.
page_size:
type: integer
description: Sorted mode only.
next_page:
type:
- integer
- 'null'
description: Sorted mode only.
request_id:
type: string
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
operationId: getWorkOrders
x-operation-id-source: derived
post:
tags:
- work_orders
summary: Create work orders
description: Creates one record. `company_id` and internal columns are set by Torgix and cannot be supplied; for asset-scoped resources `asset_id` is required and verified to belong to your account. Send `Idempotency-Key` to make retries safe. Accepts `custom_fields` keyed by API key.
security:
- ApiKeyAuth:
- write
- OAuth2:
- write
parameters:
- $ref: '#/components/parameters/IdempotencyKey'
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
description: Writable fields for the record.
responses:
'201':
description: Created.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
content:
application/json:
schema:
type: object
properties:
data:
type: object
additionalProperties: true
request_id:
type: string
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'409':
$ref: '#/components/responses/Conflict'
'422':
$ref: '#/components/responses/Unprocessable'
'429':
$ref: '#/components/responses/RateLimited'
operationId: postWorkOrders
x-operation-id-source: derived
/work_orders/batch:
post:
tags:
- work_orders
summary: Batch work orders
description: Up to 200 operations in one call; each item reports its own status. Operations may be `create` or `update`.
security:
- ApiKeyAuth:
- write
- OAuth2:
- write
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BatchRequest'
responses:
'200':
description: Per-item results.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
content:
application/json:
schema:
$ref: '#/components/schemas/BatchResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'422':
$ref: '#/components/responses/Unprocessable'
'429':
$ref: '#/components/responses/RateLimited'
operationId: postWorkOrdersBatch
x-operation-id-source: derived
/work_orders/export:
get:
tags:
- work_orders
summary: Export work orders
description: Bulk pull (JSON array, or `?format=ndjson` with an `X-Truncated` header), capped at 2000 rows per call with a `truncated` flag. The same filters, `fields` and `changed_since` apply.
security:
- ApiKeyAuth:
- export
- OAuth2:
- export
parameters:
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/changed_since'
- $ref: '#/components/parameters/include_deleted'
- name: format
in: query
schema:
type: string
enum:
- json
- ndjson
responses:
'200':
description: Exported rows.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
additionalProperties: true
count:
type: integer
truncated:
type: boolean
max:
type: integer
request_id:
type: string
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
operationId: getWorkOrdersExport
x-operation-id-source: derived
/work_orders/aggregate:
get:
tags:
- work_orders
summary: Aggregate work orders
description: One number, or one number per group, over the same filters as the list. `metric` is `count` or `sum:col`, `avg:col`, `min:col`, `max:col`; add `group_by=col` for up to 1000 groups, largest first.
security:
- ApiKeyAuth:
- read
- OAuth2:
- read
parameters:
- $ref: '#/components/parameters/metric'
- $ref: '#/components/parameters/group_by'
- $ref: '#/components/parameters/changed_since'
- $ref: '#/components/parameters/include_deleted'
responses:
'200':
description: The metric.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
content:
application/json:
schema:
type: object
properties:
data:
oneOf:
- type: object
properties:
value:
type: number
- type: array
items:
type: object
properties:
group: {}
value:
type: number
metric:
type: string
group_by:
type: string
request_id:
type: string
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
operationId: getWorkOrdersAggregate
x-operation-id-source: derived
/work_orders/{id}:
get:
tags:
- work_orders
summary: Get work orders
security:
- ApiKeyAuth:
- read
- OAuth2:
- read
parameters:
- name: id
in: path
required: true
schema:
type: integer
- $ref: '#/components/parameters/include_deleted'
responses:
'200':
description: One record. Includes `custom_fields`.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
content:
application/json:
schema:
type: object
properties:
data:
type: object
additionalProperties: true
request_id:
type: string
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
operationId: getWorkOrdersById
x-operation-id-source: derived
patch:
tags:
- work_orders
summary: Update work orders
description: Patches the supplied fields on one record. `asset_id` cannot be changed. `custom_fields` may be included.
security:
- ApiKeyAuth:
- write
- OAuth2:
- write
parameters:
- name: id
in: path
required: true
schema:
type: integer
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: true
responses:
'200':
description: Updated.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
content:
application/json:
schema:
type: object
properties:
data:
type: object
additionalProperties: true
request_id:
type: string
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'405':
$ref: '#/components/responses/ReadOnly'
'422':
$ref: '#/components/responses/Unprocessable'
'429':
$ref: '#/components/responses/RateLimited'
operationId: patchWorkOrdersById
x-operation-id-source: derived
delete:
tags:
- work_orders
summary: Delete work orders
description: 'Soft delete: stamps `deleted_at`; the row disappears from reads unless `?include_deleted=true`. Nothing is ever hard-deleted. Repeating the call returns 200 with `already_deleted`. Supported where the underlying table keeps a `deleted_at` column; otherwise 501 `delete_not_supported`.'
security:
- ApiKeyAuth:
- write
- OAuth2:
- write
parameters:
- name: id
in: path
required: true
schema:
type: integer
responses:
'200':
description: Deleted (or already deleted).
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
content:
application/json:
schema:
type: object
properties:
data:
type: object
properties:
id:
type: integer
deleted:
type: boolean
already_deleted:
type: boolean
request_id:
type: string
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'501':
$ref: '#/components/responses/NotSupported'
operationId: deleteWorkOrdersById
x-operation-id-source: derived
components:
schemas:
BatchRequest:
type: object
required:
- operations
properties:
operations:
type: array
maxItems: 200
items:
type: object
properties:
method:
type: string
enum:
- create
- update
default: create
id:
type: integer
description: Required for update.
data:
type: object
additionalProperties: true
BatchResponse:
type: object
properties:
results:
type: array
items:
type: object
properties:
status:
type: integer
data:
type: object
additionalProperties: true
error:
$ref: '#/components/schemas/Error'
request_id:
type: string
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
field:
type:
- string
- 'null'
request_id:
type: string
parameters:
changed_since:
name: changed_since
in: query
schema:
type: string
format: date-time
description: Only records updated/created at or after this ISO-8601 time.
metric:
name: metric
in: query
required: true
schema:
type: string
default: count
description: '`count`, or `sum:col`, `avg:col`, `min:col`, `max:col`.'
fields:
name: fields
in: query
schema:
type: string
description: Comma-separated fields to return (projection).
group_by:
name: group_by
in: query
schema:
type: string
description: Column to group by.
include_deleted:
name: include_deleted
in: query
schema:
type: boolean
default: false
description: Include soft-deleted rows.
page_size:
name: page_size
in: query
schema:
type: integer
default: 50
maximum: 200
description: Items per page (max 200).
IdempotencyKey:
name: Idempotency-Key
in: header
schema:
type: string
description: 'Optional. Repeat a create safely; the first result is replayed for the same key (response carries `Idempotent-Replayed: true`).'
page:
name: page
in: query
schema:
type: integer
default: 1
description: Page number, sorted mode only.
cursor:
name: cursor
in: query
schema:
type: string
description: Opaque forward cursor (use next_cursor from the previous page). Keyset mode only.
sort:
name: sort
in: query
schema:
type: string
description: Comma-separated columns, `-` prefix for descending, up to 3 (e.g. `-created_at,name`). Switches paging to page numbers.
responses:
ReadOnly:
description: This resource does not accept that write in v1.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unprocessable:
description: The write was rejected (e.g. a required field is missing); `field` names the column.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: 'Malformed request: bad JSON, empty body, bad batch, bad id, or an invalid metric or group_by.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotSupported:
description: The resource or operation is not available (table not provisioned, or no deleted_at column for delete).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing or invalid credentials.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Conflict:
description: A request with this Idempotency-Key is still being processed.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: Resource not found in this account.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Per-second rate limit exceeded.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
Retry-After:
schema:
type: integer
description: Seconds to wait.
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-Request-Id:
$ref: '#/components/headers/X-Request-Id'
Forbidden:
description: API access not enabled for the account, missing scope, or IP not allowlisted.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers:
X-RateLimit-Remaining:
schema:
type: integer
description: Tokens left in the current second.
X-Request-Id:
schema:
type: string
description: Echoed on every response for support/correlation.
X-RateLimit-Limit:
schema:
type: integer
description: Requests allowed per second.
securitySchemes:
ApiKeyAuth:
type: http
scheme: bearer
description: 'Send an API key as `Authorization: Bearer tgx_live_...`. Scopes (read, write, export) are set per key.'
OAuth2:
type: oauth2
description: Authorization-code flow with PKCE (S256 required). Register a client in the app under Settings, API & Webhooks; the access token is a Bearer credential accepted on every endpoint.
flows:
authorizationCode:
authorizationUrl: https://app.torgix.ai/oauth/authorize
tokenUrl: https://app.torgix.ai/oauth/token
refreshUrl: https://app.torgix.ai/oauth/token
scopes:
read: Read your equipment data
write: Create and update records
export: Export data in bulk
x-tagGroups:
- name: Reference
tags:
- Reference
- Events
- name: Resources
tags:
- assets
- locations
- work_orders
- maintenance
- pm_schedules
- inspections
- issues
- activities
- projects
- rentals
- customers
- parts
- parts_orders
- inventory
- warranties
- fuel_logs
- meter_readings
- tire_readings
- users
- audit_events
- compliance
- insurance
- documents
- costs
- cost_inputs
- downtime
- telematics
- idle_time
- customer_contacts
- inventory_usage
- project_assets
- faults
- recalls
- charge_logs
- checkouts
- employees
- service_trips
- service_trip_stops
- vendor_orders
- rental_classes
- rental_catalog
- rental_logistics
- meter_daily
- fleet_briefs
- module_briefs
- warranty_assessments
- inspection_templates
- compliance_requirements
- asset_compliance_requirements
- warranty_skus
- asset_photos
- trips
- telematics_alerts
- geofences
- inspection_defects
x-resources:
- name: assets
label: Assets
write: cru
note: null
- name: locations
label: Locations
write: cru
note: null
- name: work_orders
label: Work orders
write: cru
note: null
- name: maintenance
label: Maintenance logs
write: create
note: 'Completed service history. Append-only: a log is a record of work already done.'
- name: pm_schedules
label: PM schedules
write: null
note: Preventive maintenance schedules per asset (interval, last done, next due).
- name: inspections
label: Inspections
write: create
note: null
- name: issues
label: Issues
write: cru
note: null
- name: activities
label: Activities
write: null
note: null
- name: projects
label: Projects
write: null
note: null
- name: rentals
label: Rental contracts
write: null
note: null
- name: customers
label: Customers
write: null
note: null
- name: parts
label: Parts requests
write: null
note: null
- name: parts_orders
label: Parts orders
write: null
note: null
- name: inventory
label: Inventory
write: null
note: null
- name: warranties
label: Warranties
write: null
note: null
- name: fuel_logs
label: Fuel logs
write: create
note: null
- name: meter_readings
label: Meter readings
write: create
note: null
- name: tire_readings
label: Tire readings
write: create
note: null
- name: users
label: Users
write: null
note: null
- name: audit_events
label: Audit log
write: null
note: The account audit log, for pulling into a SIEM. Filter by created_at, cursor by id.
- name: compliance
label: Compliance records
write: cru
note: null
- name: insurance
label: Insurance
write: cru
note: null
- name: documents
label: Documents
write: null
note: Document metadata; the storage path is not exposed and uploads go through the app.
- name: costs
label: True Cost
write: null
note: Computed True Cost rows per asset, including the CFO fields; read-only because they are derived.
- name: cost_inputs
label: Cost inputs
write: cru
note: The per-asset inputs True Cost is computed from (purchase, salvage, finance, insurance, storage).
- name: downtime
label: Downtime
write: create
note: null
- name: telematics
label: Telematics
write: null
note: Latest GPS and engine snapshot per asset, fed by the connected telematics provider.
- name: idle_time
label: Idle time
write: null
note: Idle events derived from telematics.
- name: customer_contacts
label: Customer contacts
write: cru
note: null
- name: inventory_usage
label: Inventory usage
write: null
note: null
- name: project_assets
label: Project assets
write: create
note: null
- name: faults
label: Fault codes
write: create
note: Diagnostic trouble codes per asset (OBD-II, J1939, J1587) from telematics, import, or manual entry. Post one to record a code read off the machine.
- name: recalls
label: Recalls and bulletins
write: create
note: NHTSA recalls, OEM bulletins and manual notices matched to an asset, with a status workflow.
- name: charge_logs
label: EV charge sessions
write: create
note: 'EV charging sessions: state of charge in and out, kWh added, duration. Fed by Samsara; post one for a charger that is not connected.'
- name: checkouts
label: Tool checkouts
write: null
note: 'Small-tool checkouts: what left the shop, where it went, when it came back, what was charged.'
- name: employees
label: Employees
write: cru
note: 'People for labor costing: position, pay basis, burden. Includes pay fields; issue keys accordingly.'
- name: service_trips
label: Road calls
write: null
note: Job-site repair trips by a service truck, costed by miles and mechanic time.
- name: service_trip_stops
label: Road call stops
write: null
note: The stops on a road call, each tied to a work order with its share of the trip cost.
- name: vendor_orders
label: Vendor orders
write: null
note: Parts orders placed through Commerce Connect vendors, with totals and status.
- name: rental_classes
label: Rental classes
write: null
note: Rental classes an asset can belong to (rate setup follows the rental billing release).
- name: rental_catalog
label: Rental catalog
write: null
note: Rentable items and services with their rates.
- name: rental_logistics
label: Rental logistics
write: null
note: Deliveries and pickups scheduled against a rental contract.
- name: meter_daily
label: Daily telematics meters
write: null
note: 'One row per asset per day: engine hours, idle, odometer, fuel, PTO and regen hours, payload. Fed by Samsara, Motive or Rovi.'
- name: fleet_briefs
label: Fleet briefs
write: null
note: AI fleet briefs generated for the account, by date.
- name: module_briefs
label: Module briefs
write: null
note: AI briefs generated per module and record.
- name: warranty_assessments
label: Warranty assessments
write: null
note: 'AI warranty verdict per work order: covered items, exclusions, rationale, confidence.'
- name: inspection_templates
label: Inspection templates
write: null
note: Inspection checklists defined by the account.
- name: compliance_requirements
label: State compliance requirements
write: null
note: State compliance requirements the account tracks, with authority, cadence and verification status.
- name: asset_compliance_requirements
label: Asset compliance requirements
write: null
note: Which requirements apply to which asset, and whether each is satisfied.
- name: warranty_skus
label: Warranty SKUs
write: null
note: Warranty products the account sells or tracks.
- name: asset_photos
label: Asset photos
write: null
note: Photo metadata per asset (name, type, size, caption). The image itself is not served by the API.
- name: trips
label: Trips
write: null
note: 'One row per journey from the connected telematics provider: start and end time, place, address and geofence, distance in miles, top and average speed in mph, drive and idle seconds, odometer, engine hours, fuel used in gallons, driver. Read-only.'
- name: telematics_alerts
label: Telematics alerts
write: null
note: Alerts the telematics provider triggered (speeding, idling, geofence arrive or leave, maintenance fault, tamper and so on), matched to the asset. Read-only.
- name: geofences
label: Geofences
write: null
note: 'Geofences (points of interest) defined in the telematics provider: circle (center and radius in meters) or polygon (points as [lat, lon] pairs). active is false once removed at the provider. Read-only.'
- name: inspection_defects
label: Inspection defects
write: null
note: Defects raised on vehicle checks synced from the telematics provider, with the provider repair status (OPEN, DEFERRED, CLOSED_REPAIRED and so on). The check itself is in inspections. Read-only.