Add Watch Targets
curl --request POST \
--url https://truckerfetch.com/api/v1/watchlists/{id}/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"usdots": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({usdots: ['<string>']})
};
fetch('https://truckerfetch.com/api/v1/watchlists/{id}/items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://truckerfetch.com/api/v1/watchlists/{id}/items"
payload = { "usdots": ["<string>"] }
headers = {
"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
Add Watch Targets
Requires active Pro and an owner-scoped REST bearer key. Required scopes: watchlists:write. Adds one to 100 visible USDOT string identifiers to this owned watchlist. The REST route does not require an Idempotency-Key for this operation.
POST
/
watchlists
/
{id}
/
items
Add Watch Targets
curl --request POST \
--url https://truckerfetch.com/api/v1/watchlists/{id}/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"usdots": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({usdots: ['<string>']})
};
fetch('https://truckerfetch.com/api/v1/watchlists/{id}/items', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://truckerfetch.com/api/v1/watchlists/{id}/items"
payload = { "usdots": ["<string>"] }
headers = {
"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
Path Parameters
Body
application/json
Required array length:
1 - 100 elementsPattern:
^[0-9]{1,16}$