Introduction
This documentation aims to provide all the information you need to work with our API.
Base URL
https://api-dieseldocs.com
Authenticating requests
This API is not authenticated.
Document
Usage stats
View a subscriber's document usage stats.
Example request:
curl --request GET \
--get "https://api-dieseldocs.com/api/v1/molestiae/usage-stats?verbose=1&type=DL" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "DL-Authorization: {YOUR_API_KEY}"
Example response (200):
{
"meta": {
"usage": {
"used": [],
"max": 2
}
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
List
Retrieve all documents
Example request:
curl --request GET \
--get "https://api-dieseldocs.com/api/v1/document?subscriber_uid=impedit&document_type_id=8&system_type_id=14¬_categorized=1&sort_by=name&sort_dir=asc&page=11&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "DL-Authorization: {YOUR_API_KEY}"
Example response (200):
{
"data": [
{
"id": 10,
"document_type_id": 15,
"name": "Cummins - B6.7 - 2012-2015.PDF",
"token": "A2ZF...",
"preview_url": "https://api-dieseldocs.com/api/v1/document/A2ZF.../preview?cache-buster=1584024861",
"preview_pages": "1",
"dependencies": {
"documentType": {
"id": 15,
"model_id": 7,
"name": "Instruction"
},
"model": {
"id": 7,
"year_id": 4,
"name": "B6.7"
},
"year": {
"id": 4,
"type_id": 1,
"name": "2012-2015"
},
"type": {
"id": 1,
"make_id": 1,
"name": "Engine"
},
"make": {
"id": 1,
"industry_id": 1,
"name": "Cummins"
},
"industry": {
"id": 1,
"name": "On Highway"
}
},
"url": ""
}
],
"links": {
"first": "https://api-dieseldocs.com/api/v1/document?page=1",
"last": "https://api-dieseldocs.com/api/v1/document?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://api-dieseldocs.com/api/v1/document",
"per_page": 10,
"to": 9,
"total": 9
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Retrieve
Retrieve the document
Example request:
curl --request GET \
--get "https://api-dieseldocs.com/api/v1/document/15?subscriber_uid=omnis" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "DL-Authorization: {YOUR_API_KEY}"
Example response (200):
{
"data": {
"id": 10,
"document_type_id": 15,
"name": "Cummins - B6.7 - 2012-2015.PDF",
"token": "O74s...",
"preview_url": "https://api-dieseldocs.com/api/v1/document/O74s.../preview?cache-buster=1584024375",
"preview_pages": "1",
"dependencies": {
"documentType": {
"id": 15,
"model_id": 7,
"name": "Instruction"
},
"model": {
"id": 7,
"year_id": 4,
"name": "B6.7"
},
"year": {
"id": 4,
"type_id": 1,
"name": "2012-2015"
},
"type": {
"id": 1,
"make_id": 1,
"name": "Engine"
},
"make": {
"id": 1,
"industry_id": 1,
"name": "Cummins"
},
"industry": {
"id": 1,
"name": "On Highway"
}
},
"url": ""
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
View PDF
View a document's PDF. NOTE: this counts towards the user's viewing quota.
Example request:
curl --request GET \
--get "https://api-dieseldocs.com/api/v1/document/explicabo/view" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "DL-Authorization: {YOUR_API_KEY}"
Example response (200):
{}
Received response:
Request failed with error:
Preview PDF
Preview PDF file
Example request:
curl --request GET \
--get "https://api-dieseldocs.com/api/v1/document/saepe/preview" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "DL-Authorization: {YOUR_API_KEY}"
Example response (200):
{}
Received response:
Request failed with error:
Document Type
List
Retrieve all document types
Example request:
curl --request GET \
--get "https://api-dieseldocs.com/api/v1/document-type?model_id=17&sort_by=name&sort_dir=asc&page=17&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "DL-Authorization: {YOUR_API_KEY}"
Example response (200):
{
"data": [
{
"id": 1,
"model_id": 1,
"name": "Instruction"
}
],
"links": {
"first": "http://api-dieseldocs.com/api/v1/document-type?page=1",
"last": "http://api-dieseldocs.com/api/v1/document-type?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": null,
"last_page": 1,
"path": "http://api-dieseldocs.com/api/v1/document-type",
"per_page": 300,
"to": null,
"total": 0
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Industry
List
Retrieve all industries
Example request:
curl --request GET \
--get "https://api-dieseldocs.com/api/v1/industry?sort_by=name&sort_dir=asc&page=4&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "DL-Authorization: {YOUR_API_KEY}"
Example response (200):
{
"data": [
{
"id": 1,
"name": "On Highway"
}
],
"links": {
"first": "http://api-dieseldocs.com/api/v1/industry?page=1",
"last": "http://api-dieseldocs.com/api/v1/industry?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "http://api-dieseldocs.com/api/v1/industry",
"per_page": 300,
"to": 4,
"total": 4
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Make
List
Retrieve all makes
Example request:
curl --request GET \
--get "https://api-dieseldocs.com/api/v1/make?industry_id=2&sort_by=name&sort_dir=asc&page=18&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "DL-Authorization: {YOUR_API_KEY}"
Example response (200):
{
"data": [
{
"id": 1,
"industry_id": 1,
"name": "Cummins"
}
],
"links": {
"first": "http://api-dieseldocs.com/api/v1/make?page=1",
"last": "http://api-dieseldocs.com/api/v1/make?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": null,
"last_page": 1,
"path": "http://api-dieseldocs.com/api/v1/make",
"per_page": 300,
"to": null,
"total": 0
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Model
List
Retrieve all models
Example request:
curl --request GET \
--get "https://api-dieseldocs.com/api/v1/model?year_id=18&sort_by=name&sort_dir=asc&page=6&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "DL-Authorization: {YOUR_API_KEY}"
Example response (200):
{
"data": [
{
"id": 1,
"year_id": 1,
"name": "B6.7"
}
],
"links": {
"first": "http://api-dieseldocs.com/api/v1/model?page=1",
"last": "http://api-dieseldocs.com/api/v1/model?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": null,
"last_page": 1,
"path": "http://api-dieseldocs.com/api/v1/model",
"per_page": 300,
"to": null,
"total": 0
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
System Type
List
Retrieve all system types
Example request:
curl --request GET \
--get "https://api-dieseldocs.com/api/v1/system-type?document_type_id=3&sort_by=name&sort_dir=asc&page=18&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "DL-Authorization: {YOUR_API_KEY}"
Example response (200):
{
"data": [
{
"id": 66744,
"document_type_id": 8516,
"name": "20V689000"
}
],
"links": {
"first": "https://api-dieseldocs.com/api/v1/system-type?page=1",
"last": "https://api-dieseldocs.com/api/v1/system-type?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://api-dieseldocs.com/api/v1/system-type",
"per_page": 300,
"to": 1,
"total": 1
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Type
List
Retrieve all types 'ID' of the make
Example request:
curl --request GET \
--get "https://api-dieseldocs.com/api/v1/type?make_id=19&sort_by=name&sort_dir=asc&page=14&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "DL-Authorization: {YOUR_API_KEY}"
Example response (200):
{
"data": [
{
"id": 1,
"make_id": 1,
"name": "Engine"
}
],
"links": {
"first": "http://api-dieseldocs.com/api/v1/type?page=1",
"last": "http://api-dieseldocs.com/api/v1/type?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": null,
"last_page": 1,
"path": "http://api-dieseldocs.com/api/v1/type",
"per_page": 300,
"to": null,
"total": 0
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Year
List
Retrieve all years
Example request:
curl --request GET \
--get "https://api-dieseldocs.com/api/v1/year?type_id=13&sort_by=name&sort_dir=asc&page=4&per_page=20" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "DL-Authorization: {YOUR_API_KEY}"
Example response (200):
{
"data": [
{
"id": 1,
"type_id": 1,
"name": "2017-2019"
}
],
"links": {
"first": "http://api-dieseldocs.com/api/v1/year?page=1",
"last": "http://api-dieseldocs.com/api/v1/year?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": null,
"last_page": 1,
"path": "http://api-dieseldocs.com/api/v1/year",
"per_page": 300,
"to": null,
"total": 0
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error: