Skip to main content
GET
/
vehicle-fields
List Vehicle Fields
curl --request GET \
  --url https://api.inspecto.com/api/third-party/v1/vehicle-fields \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "label": "<string>",
      "description": "<string>",
      "inputType": "<string>",
      "isRequired": true,
      "hasStatusRule": true,
      "groups": [
        {}
      ],
      "options": [
        {}
      ]
    }
  ]
}

Endpoint

GET /api/third-party/v1/vehicle-fields

Authentication

Requires vehicle-fields:read. Legacy compatibility:
  • vehicles:read
  • vehicles:write

Query Parameters

page
integer
default:"1"
Page number to retrieve
limit
integer
default:"50"
Number of items per page (max: 100)
Search by field label, description, or assigned vehicle group name

Response

data
array
Array of vehicle field definitions

Example Request

curl -X GET "https://api.inspecto.com/api/third-party/v1/vehicle-fields?search=dokumenty" \
  -H "Authorization: Bearer insp_your_api_key_here"

Example Response

{
  "data": [
    {
      "id": "field-docs",
      "label": "Dokumenty",
      "description": "Status kompletu dokumentow w pojezdzie",
      "inputType": "SELECT",
      "isRequired": false,
      "instructionImageUrl": null,
      "hasStatusRule": false,
      "groupIds": ["group-trailers"],
      "groups": [
        {
          "id": "group-trailers",
          "name": "Naczepy"
        }
      ],
      "options": [
        {
          "id": "option-complete",
          "label": "Komplet",
          "value": "complete",
          "status": "OK"
        },
        {
          "id": "option-missing",
          "label": "Braki",
          "value": "missing",
          "status": "WARNING"
        }
      ],
      "createdAt": "2026-04-01T10:00:00.000Z",
      "updatedAt": "2026-04-20T14:00:00.000Z"
    }
  ],
  "meta": {
    "version": "v1",
    "pagination": {
      "currentPage": 1,
      "totalPages": 1,
      "totalCount": 1,
      "hasNextPage": false,
      "hasPreviousPage": false
    },
    "filters": {
      "search": "dokumenty"
    }
  }
}