Create Watchlist
curl --request POST \
--url https://truckerfetch.com/api/v1/watchlists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "<string>",
"filters": {
"q": "<string>",
"states": [
"<string>"
],
"classifications": [
"<string>"
],
"entity_types": [
"<string>"
],
"cargo": [
"<string>"
],
"filing_types": [
"<string>"
],
"insurer": "<string>",
"census_status": [
"<string>"
],
"operations": [
"<string>"
],
"fleet": {
"min": 4503599627370495,
"max": 4503599627370495
},
"trucks": {
"min": 4503599627370495,
"max": 4503599627370495
},
"drivers": {
"min": 4503599627370495,
"max": 4503599627370495
}
}
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
filters: {
q: '<string>',
states: ['<string>'],
classifications: ['<string>'],
entity_types: ['<string>'],
cargo: ['<string>'],
filing_types: ['<string>'],
insurer: '<string>',
census_status: ['<string>'],
operations: ['<string>'],
fleet: {min: 4503599627370495, max: 4503599627370495},
trucks: {min: 4503599627370495, max: 4503599627370495},
drivers: {min: 4503599627370495, max: 4503599627370495}
}
})
};
fetch('https://truckerfetch.com/api/v1/watchlists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://truckerfetch.com/api/v1/watchlists"
payload = {
"name": "<string>",
"filters": {
"q": "<string>",
"states": ["<string>"],
"classifications": ["<string>"],
"entity_types": ["<string>"],
"cargo": ["<string>"],
"filing_types": ["<string>"],
"insurer": "<string>",
"census_status": ["<string>"],
"operations": ["<string>"],
"fleet": {
"min": 4503599627370495,
"max": 4503599627370495
},
"trucks": {
"min": 4503599627370495,
"max": 4503599627370495
},
"drivers": {
"min": 4503599627370495,
"max": 4503599627370495
}
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": "<unknown>",
"meta": {},
"next_cursor": "<string>"
}API Reference
Create Watchlist
Requires active Pro and an owner-scoped REST bearer key. Required scopes: watchlists:write. Creates an owned named watchlist. Optional scope and filters configure its settings. The name is trimmed and must contain 1 to 120 characters. Save the payload and Idempotency-Key before submission.
POST
/
watchlists
Create Watchlist
curl --request POST \
--url https://truckerfetch.com/api/v1/watchlists \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "<string>",
"filters": {
"q": "<string>",
"states": [
"<string>"
],
"classifications": [
"<string>"
],
"entity_types": [
"<string>"
],
"cargo": [
"<string>"
],
"filing_types": [
"<string>"
],
"insurer": "<string>",
"census_status": [
"<string>"
],
"operations": [
"<string>"
],
"fleet": {
"min": 4503599627370495,
"max": 4503599627370495
},
"trucks": {
"min": 4503599627370495,
"max": 4503599627370495
},
"drivers": {
"min": 4503599627370495,
"max": 4503599627370495
}
}
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
filters: {
q: '<string>',
states: ['<string>'],
classifications: ['<string>'],
entity_types: ['<string>'],
cargo: ['<string>'],
filing_types: ['<string>'],
insurer: '<string>',
census_status: ['<string>'],
operations: ['<string>'],
fleet: {min: 4503599627370495, max: 4503599627370495},
trucks: {min: 4503599627370495, max: 4503599627370495},
drivers: {min: 4503599627370495, max: 4503599627370495}
}
})
};
fetch('https://truckerfetch.com/api/v1/watchlists', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://truckerfetch.com/api/v1/watchlists"
payload = {
"name": "<string>",
"filters": {
"q": "<string>",
"states": ["<string>"],
"classifications": ["<string>"],
"entity_types": ["<string>"],
"cargo": ["<string>"],
"filing_types": ["<string>"],
"insurer": "<string>",
"census_status": ["<string>"],
"operations": ["<string>"],
"fleet": {
"min": 4503599627370495,
"max": 4503599627370495
},
"trucks": {
"min": 4503599627370495,
"max": 4503599627370495
},
"drivers": {
"min": 4503599627370495,
"max": 4503599627370495
}
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": "<unknown>",
"meta": {},
"next_cursor": "<string>"
}Authorizations
Owner-scoped Pro API key
Headers
Persist this key with the exact request payload and reuse both after a timeout or confirmation; a changed payload conflicts.
Required string length:
8 - 128Pattern:
^[-._:a-zA-Z0-9]{8,128}$Body
application/json