curl --request GET \
--url https://api.ctrl-hub.com/v3/vehicle-inventory-checks \
--header 'X-Session-Token: <api-key>'{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"inspected_at": "2023-11-07T05:31:56Z",
"items": [
{
"equipment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"present": true,
"working": true,
"certified": true
}
]
},
"meta": {
"created_at": "2023-11-07T05:31:56Z",
"summary": {
"present": {
"total": 123,
"passed": 123,
"failed": 123,
"unknown": 123
},
"working": {
"total": 123,
"passed": 123,
"failed": 123,
"unknown": 123
},
"certified": {
"total": 123,
"passed": 123,
"failed": 123,
"unknown": 123
}
}
},
"relationships": {
"organisation": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
},
"vehicle": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
},
"author": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
},
"equipment": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
}
}
}
],
"meta": {
"pagination": {
"counts": {
"pages": 123,
"resources": 123
},
"current_page": 123,
"offsets": {
"next": 123,
"previous": 123
},
"requested": {
"limit": 123,
"offset": 123
}
},
"features": {
"include": {
"options": [
"<string>"
]
}
}
},
"jsonapi": {
"version": "<string>"
},
"included": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"serial": "<string>",
"status": "<string>"
},
"meta": {
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"relationships": {
"organisation": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
},
"model": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
},
"vehicle": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
}
}
}
]
}Retrieve a list of vehicle inventory checks. Filter by vehicle with ?filter=eq(vehicle,xxx).
curl --request GET \
--url https://api.ctrl-hub.com/v3/vehicle-inventory-checks \
--header 'X-Session-Token: <api-key>'{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"inspected_at": "2023-11-07T05:31:56Z",
"items": [
{
"equipment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"present": true,
"working": true,
"certified": true
}
]
},
"meta": {
"created_at": "2023-11-07T05:31:56Z",
"summary": {
"present": {
"total": 123,
"passed": 123,
"failed": 123,
"unknown": 123
},
"working": {
"total": 123,
"passed": 123,
"failed": 123,
"unknown": 123
},
"certified": {
"total": 123,
"passed": 123,
"failed": 123,
"unknown": 123
}
}
},
"relationships": {
"organisation": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
},
"vehicle": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
},
"author": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
},
"equipment": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
}
}
}
],
"meta": {
"pagination": {
"counts": {
"pages": 123,
"resources": 123
},
"current_page": 123,
"offsets": {
"next": 123,
"previous": 123
},
"requested": {
"limit": 123,
"offset": 123
}
},
"features": {
"include": {
"options": [
"<string>"
]
}
}
},
"jsonapi": {
"version": "<string>"
},
"included": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"serial": "<string>",
"status": "<string>"
},
"meta": {
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"relationships": {
"organisation": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
},
"model": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
},
"vehicle": {
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
}
}
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.ctrl-hub.com/llms.txt
Use this file to discover all available pages before exploring further.
Session token for authentication.
Filters the response data based on the value provided.
Available filters:
eq(id,xxx): Filter vehicle inventory checks by ID.eq(organisation,xxx): Filter vehicle inventory checks by organisation ID.eq(vehicle,xxx): Filter vehicle inventory checks by vehicle ID.eq(author,xxx): Filter vehicle inventory checks by author user ID.A comma separated list of related resources to include.
author, equipment, organisation, vehicle Limit the number of resources returned by the API
x >= 1Offset the resources returned by the API
x >= 0Get a list of vehicle inventory checks.
JSON API response object
Show child attributes
Show child attributes
Show child attributes
Related resources that can be included when a vehicle inventory check is returned.
An equipment item
Show child attributes