تخطَّ إلى المحتوى

هذه الوثائق متاحة حاليًا باللغة الإنجليزية فقط.

وثائق المطورينAPI referenceVehicles

List vehicles

Every vehicle you can name with vehicle_id: the presets (containers, trailers, trucks, pallets of the types your organization may use), then your organization's own vehicles.

GEThttps://runner.cargoduo.com/v1/vehicles

Free: no credits are charged.

المصادقة

مفتاح API من نوع Bearer بالصلاحيةresources:readاعرف المزيد

معاملات الاستعلام

الاسمالنوعمطلوبالوصف
limitinteger
integer
لا

Page size.

الافتراضي 201–100
cursorstring
string
لا

next_cursor of the previous page.

kindstring
string
لا

Only presets (preset), or only your own vehicles (custom).

presetcustom
typestring
string
لا

Only vehicles of this type.

trucktrailerflatbedcontainerpalletaircraftship
qstring
string
لا

Only vehicles whose name contains this text.

created_bystring
string
لا

Only what this member created: me (the key's creator) or a member id (usr_…).

مثال على الطلب

curl -X GET "https://runner.cargoduo.com/v1/vehicles?type=trailer" \
  -H "Authorization: Bearer $CARGODUO_API_KEY"

مثال على الاستجابة

200 OK · SavedVehicleList
{
  "data": [
    {
      "id": "standard-trailer-13-6m",
      "object": "vehicle",
      "kind": "preset",
      "name": "Standard Trailer (13.6m)",
      "type": "trailer",
      "length": 1362,
      "width": 248,
      "height": 270,
      "max_weight": 24000,
      "floor_load_capacity": 1800,
      "axle_positions": [
        30,
        938,
        1069,
        1200
      ],
      "axle_max_loads": [
        10000,
        8000,
        8000,
        8000
      ],
      "cog_range_x": 50,
      "cog_range_y": 20,
      "aux_deck": false,
      "aux_deck_height": null,
      "aux_deck_max_weight": null,
      "tractor_weight": null,
      "empty_trailer_weight": null,
      "front_axle_to_middle_axle": null,
      "front_axle_to_tractor_cog": null,
      "front_axle_to_kingpin": null,
      "kingpin_to_rear_axle": null,
      "trailer_cog_to_rear_axle": null,
      "trailer_start_to_kingpin": null,
      "max_middle_axle_weight": null,
      "max_rear_axle_weight": null,
      "blocked_areas": [],
      "created_by": null,
      "updated_by": null,
      "created_at": null
    },
    {
      "id": "veh_118",
      "object": "vehicle",
      "kind": "custom",
      "name": "Mega trailer 13.6 m",
      "type": "trailer",
      "length": 1360,
      "width": 248,
      "height": 300,
      "max_weight": 24000,
      "floor_load_capacity": null,
      "axle_positions": [],
      "axle_max_loads": [],
      "cog_range_x": null,
      "cog_range_y": null,
      "aux_deck": false,
      "aux_deck_height": null,
      "aux_deck_max_weight": null,
      "tractor_weight": null,
      "empty_trailer_weight": null,
      "front_axle_to_middle_axle": null,
      "front_axle_to_tractor_cog": null,
      "front_axle_to_kingpin": null,
      "kingpin_to_rear_axle": null,
      "trailer_cog_to_rear_axle": null,
      "trailer_start_to_kingpin": null,
      "max_middle_axle_weight": null,
      "max_rear_axle_weight": null,
      "blocked_areas": [],
      "created_by": {
        "id": "usr_7",
        "name": "Elif Kaya"
      },
      "updated_by": {
        "id": "usr_7",
        "name": "Elif Kaya"
      },
      "created_at": "2026-10-02T08:41:17Z"
    }
  ],
  "next_cursor": ""
}

Abridged: one preset and one of your vehicles are shown.

الاستجابات

  • 200OKOne page of vehicles.
    الاسمالنوعمطلوبالوصف
    dataSavedVehicle[]
    SavedVehicle[]
    لا

    Presets first, then your own vehicles, oldest first.

    next_cursorstring
    string
    لا

    Pass as ?cursor= for the next page; empty on the last page.

  • 401Unauthorizedunauthorizedkey_revokedkey_expired
    • unauthorizedMissing, malformed or unknown API key.
    • key_revokedThe key was revoked.
    • key_expiredThe key passed its expiry date.
    الاسمالنوعمطلوبالوصف
    errorErrorBodyمطلوب
    ErrorBody
    نعم
    كل رموز الأخطاء
  • 403Forbiddenip_not_allowedsubscription_inactiveaccount_inactivescope_missing
    • ip_not_allowedThe calling IP is not on the key's allowlist.
    • subscription_inactiveThe organization has no active subscription that includes the API.
    • account_inactiveThe organization is suspended, or has no owner whose account is active.
    • scope_missingThe key lacks a scope this endpoint needs.
    الاسمالنوعمطلوبالوصف
    errorErrorBodyمطلوب
    ErrorBody
    نعم
    كل رموز الأخطاء
  • 422Unprocessable entityvalidation_failed
    • validation_failedThe request is well-formed JSON but describes an invalid job. details[] lists every problem.
    الاسمالنوعمطلوبالوصف
    errorErrorBodyمطلوب
    ErrorBody
    نعم
    كل رموز الأخطاء
  • 429Too many requestsrate_limited
    • rate_limitedToo many requests in the current minute, hour or day (per key or per organization), or more than 60 failed authentications per minute from your IP address.
    الاسمالنوعمطلوبالوصف
    errorErrorBodyمطلوب
    ErrorBody
    نعم
    كل رموز الأخطاء
  • 500Internal server errorinternal_error
    • internal_errorSomething failed on our side.
    الاسمالنوعمطلوبالوصف
    errorErrorBodyمطلوب
    ErrorBody
    نعم
    كل رموز الأخطاء
  • 503Service unavailableapi_disabled
    • api_disabledThe API is temporarily disabled (maintenance) or switched off for the organization.
    الاسمالنوعمطلوبالوصف
    errorErrorBodyمطلوب
    ErrorBody
    نعم
    كل رموز الأخطاء