/api/p/v{version}/dispatchpreferences/search

This endpoint provides detailed information about dispatch preferences that match the search criteria, enabling efficient tracking and management of dispatcher, driver, truck, and trailer assignments.

Request Parameters

The following parameter is required in the URL path:

ParameterTypeRequiredDescription
versionStringYesThe API version to use.

Request Body Parameters

The following parameters are required in the request body:

ParameterTypeRequiredDescription
dispatcherIdsArray of StringsNoA list of dispatcher IDs to filter results.
driverIdsArray of StringsNoA list of driver IDs to filter results.
truckIdsArray of StringsNoA list of truck IDs to filter results.
trailerIdsArray of StringsNoA list of trailer IDs to filter results.
updatedAtStartString (DateTime)NoThe start date-time for filtering updated dispatch data.
updatedAtEndString (DateTime)NoThe end date-time for filtering updated dispatch data.

Example CURL request

Use the current API version number and ensure you replace the Authorization header value with your actual Bearer token for the request:

curl --location 'https://integrations.alvys.com/api/p/v1/dispatchpreferences/search' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ...' \
--header 'Content-Type: application/json' \
--data '{
  "dispatcherIds": ["2c551c41c840410ebcf34ba388749258"],
  "driverIds": ["DR2517197559590084753"],
  "truckIds": ["TR2517389363484408036"],
  "trailerIds": ["TL2517274420190288696"],
  "updatedAtStart": "2025-03-01T00:00:00.000Z",
  "updatedAtEnd": "2025-03-03T23:59:59.999Z"
}'

Response Parameters

The following table lists the parameters included in the response for dispatch preferences requests.

ParameterTypeRequiredDescription
UpdatedAtString (DateTime)NoThe timestamp when the dispatch preference was last updated.
DispatcherIdStringNoThe unique identifier of the dispatcher.
Driver1IdStringNoThe unique identifier of the primary driver.
Driver2IdStringNoThe unique identifier of the secondary driver.
TruckIdStringNoThe unique identifier of the truck.
TrailerIdStringNoThe unique identifier of the trailer.

Versioning

The version parameter in the URL path specifies which version of the API you are using. Including the version number ensures that your application interacts with the correct version of the API, providing stability and compatibility as the API evolves. For more information on how versioning works and how to include it in your requests, please refer to the Versioning page.

Example Response

[
  {
    "UpdatedAt": "2025-03-02T14:30:05+00:00",
    "DispatcherId": "2c551c41c840410ebcf34ba388749258",
    "Driver1Id": "DR2517197559590084753",
    "Driver2Id": "DR2518197559590084765",
    "TruckId": "TR2517389363484408036",
    "TrailerId": "TL2517274420190288696"
  },
  {
    "UpdatedAt": "2025-03-02T16:45:10+00:00",
    "DispatcherId": "3d671c41c840410ebcf34ba388749275",
    "Driver1Id": "DR2527197559590084754",
    "Driver2Id": "",
    "TruckId": "TR2527389363484408047",
    "TrailerId": "TL2527274420190288799"
  }
]

Rate Limits

All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information on rate limits, please refer to the Rate Limits section.

This page is interactive, allowing you to try a request by specifying the API version in the URL path and providing the necessary request body. As you fill out the parameters, the Curl command on the right side of the page will be automatically updated. Alternatively, you can fork our Public API Postman Collection directly. Make sure to authorize yourself before trying a request.

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!