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

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

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

List templates

Your organization's cargo templates (saved items), newest first.

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

Name one in an item with template_id. Free: no credits are charged.

المصادقة

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

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

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

Page size.

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

next_cursor of the previous page.

qstring
string
لا

Only templates whose label 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/templates?created_by=me" \
  -H "Authorization: Bearer $CARGODUO_API_KEY"

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

200 OK · TemplateList
{
  "data": [
    {
      "id": "tpl_43",
      "object": "template",
      "label": "Carton A",
      "shape": "box",
      "length": 60,
      "width": 40,
      "height": 40,
      "radius": 0,
      "weight": 12,
      "stackable": true,
      "max_stack_weight": 0,
      "rotation": "upright",
      "hazardous": false,
      "priority": 0,
      "color": "#f59e0b",
      "nesting_height": 0,
      "created_by": {
        "id": "usr_7",
        "name": "Elif Kaya"
      },
      "updated_by": {
        "id": "usr_7",
        "name": "Elif Kaya"
      },
      "created_at": "2026-09-28T14:05:52Z",
      "updated_at": "2026-09-28T14:05:52Z"
    },
    {
      "id": "tpl_42",
      "object": "template",
      "label": "Euro pallet",
      "shape": "box",
      "length": 120,
      "width": 80,
      "height": 140,
      "radius": 0,
      "weight": 450,
      "stackable": false,
      "max_stack_weight": 0,
      "rotation": "all",
      "hazardous": false,
      "priority": 0,
      "color": "#3b82f6",
      "nesting_height": 0,
      "created_by": {
        "id": "usr_7",
        "name": "Elif Kaya"
      },
      "updated_by": {
        "id": "usr_7",
        "name": "Elif Kaya"
      },
      "created_at": "2026-09-28T14:05:52Z",
      "updated_at": "2026-09-28T14:05:52Z"
    }
  ],
  "next_cursor": ""
}

الاستجابات

  • 200OKOne page of templates.
    الاسمالنوعمطلوبالوصف
    dataTemplate[]
    Template[]
    لا

    Newest 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
    نعم
    كل رموز الأخطاء