Follow Authority
curl --request POST \
--url https://truckerfetch.com/api/v1/watchlists/{id}/targets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"usdot": "<string>",
"docket_number": "<string>",
"authority_type": "<string>",
"authority_record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
usdot: '<string>',
docket_number: '<string>',
authority_type: '<string>',
authority_record_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://truckerfetch.com/api/v1/watchlists/{id}/targets', 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}/targets"
payload = {
"usdot": "<string>",
"docket_number": "<string>",
"authority_type": "<string>",
"authority_record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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
Follow Authority
Requires active Pro and an owner-scoped REST bearer key. Required scopes: watchlists:write. Follows the exact published usdot, docket_number, authority_type and authority_record_id in an owned watchlist. Resolve these from authority evidence and confirm the target with the user before changing it. Save the payload and Idempotency-Key.
POST
/
watchlists
/
{id}
/
targets
Follow Authority
curl --request POST \
--url https://truckerfetch.com/api/v1/watchlists/{id}/targets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"usdot": "<string>",
"docket_number": "<string>",
"authority_type": "<string>",
"authority_record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
usdot: '<string>',
docket_number: '<string>',
authority_type: '<string>',
authority_record_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://truckerfetch.com/api/v1/watchlists/{id}/targets', 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}/targets"
payload = {
"usdot": "<string>",
"docket_number": "<string>",
"authority_type": "<string>",
"authority_record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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}$Path Parameters
Body
application/json
Pattern:
^[0-9]{1,16}$Required string length:
1 - 64Required string length:
1 - 160Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$