Skip to main content
GET
/
inspection-templates
List Inspection Templates
curl --request GET \
  --url https://api.inspecto.com/api/third-party/v1/inspection-templates \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "title": "<string>",
      "description": "<string>",
      "version": 123,
      "isActive": true,
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "itemCount": 123,
      "inspectionCount": 123,
      "items": [
        {
          "id": "<string>",
          "label": "<string>",
          "inputType": "<string>",
          "isRequired": true,
          "options": [
            {}
          ],
          "order": 123,
          "instructionImageUrl": "<string>",
          "dependsOn": {}
        }
      ]
    }
  ]
}

Endpoint

GET /api/third-party/v1/inspection-templates

Authentication

Requires inspections:read scope.

Query Parameters

page
integer
default:"1"
Page number
limit
integer
default:"50"
Items per page (max: 100)
groupId
string
Filter by vehicle group ID
Search by template title
isActive
boolean
default:"true"
Filter by active status

Response

data
array
Array of inspection template objects

Example Request

curl -X GET "https://api.inspecto.com/api/third-party/v1/inspection-templates?isActive=true&limit=10" \
  -H "Authorization: Bearer insp_your_api_key_here"

Example Response

{
  "data": [
    {
      "id": "a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d",
      "title": "Pre-Trip Inspection",
      "description": "Standard pre-trip vehicle inspection",
      "version": 2,
      "isActive": true,
      "createdAt": "2024-01-15T10:00:00Z",
      "updatedAt": "2024-06-20T14:30:00Z",
      "itemCount": 15,
      "inspectionCount": 1247,
      "items": [
        {
          "id": "item-001",
          "label": "Check tire pressure",
          "inputType": "BOOLEAN",
          "isRequired": true,
          "options": [],
          "order": 1,
          "instructionImageUrl": null
        },
        {
          "id": "item-002",
          "label": "Tire condition",
          "inputType": "SELECT",
          "isRequired": true,
          "options": ["Good", "Worn", "Damaged"],
          "order": 2,
          "instructionImageUrl": "https://..."
        }
      ]
    }
  ],
  "meta": {
    "version": "v1",
    "pagination": {
      "currentPage": 1,
      "totalPages": 1,
      "totalCount": 5,
      "hasNextPage": false,
      "hasPreviousPage": false
    }
  }
}