Skip to main content
POST
Search maintenance records
The Search Maintenance API endpoint allows you to search for maintenance records within the Alvys system based on various criteria such as asset type, category, status, and date range. This endpoint provides detailed information about each maintenance record that matches the search criteria, facilitating efficient management and retrieval of maintenance records.

Request Parameters

The following parameter is required in the URL path:

Request Body

The following fields are required in the request body to filter the search results: <Table> ParameterTypeRequiredDescription PageIntegerYesThe page number to retrieve.PageSizeIntegerYesThe number of results per page.
PageSize must be greater than 0.
TruckIdsArray of StringsConditionallyA list of truck IDs to filter by. This field is required if the other conditionally required fields are left empty.TrailerIdsArray of StringsConditionallyA list of trailer IDs to filter by. This field is required if the other conditionally required fields are left empty.CategoriesArray of StringsConditionallyA list of categories to filter by. This field is required if the other conditionally required fields are left empty.StatusStringConditionallyThe status of the maintenance record. One of the following: Urgent, Open, Closed. This field is required if the other conditionally required fields are left empty.DateRangeObjectConditionallyThe date range for the maintenance records. This field is required if the other conditionally required fields are left empty.DateRange.StartString (Date-Time)ConditionallyThe start date of the maintenance records range. This field is required if the other conditionally required fields are left empty.DateRange.EndString (Date-Time)ConditionallyThe end date of the maintenance records range. This field is required if the other conditionally required fields are left empty. </Table>

Example CURL request

Use the Current API version number and make sure to replace the Authorization header value with your actual Bearer token for the request:

Response Parameters

The following table lists the parameters included in the response for maintenance search requests:

Example Response

On the right side, you can see examples of different error codes by clicking “Example” and selecting the response code.

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 completing the fields for the parameters below. As you fill out the parameters, the Curl command on the right side of the page will be automatically updated. Alternatively, you can directly edit the Curl command. Make sure to authorize yourself before trying a request.

Authorizations

Authorization
string
header
required

OAuth 2.0 client-credentials access token. Obtain one from https://auth.alvys.com/oauth/token (grant_type=client_credentials, audience=https://api.alvys.com/public/), then paste it here. The playground sends it as Authorization: Bearer <token>.

Path Parameters

version
string
default:1.0
required

API version (e.g., 1.0)

Example:

"1.0"

Body

Page
integer<int32>
required
PageSize
integer<int32>
required
TruckIds
string[] | null
TrailerIds
string[] | null
Categories
string[] | null
Status
string | null
DateRange
object | null

Response

OK

Page
integer<int32>
required
PageSize
integer<int32>
required
Total
integer<int64>
required
Items
object[]
required
Facets
object | null