Skip to content
Developer docsAPI 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.

Authentication

Bearer API key with scoperesources:readLearn more

Query parameters

NameTypeRequiredDescription
limitinteger
integer
No

Page size.

Default 201–100
cursorstring
string
No

next_cursor of the previous page.

qstring
string
No

Only templates whose label contains this text.

created_bystring
string
No

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

Example request

curl -X GET "https://runner.cargoduo.com/v1/templates?created_by=me" \
  -H "Authorization: Bearer $CARGODUO_API_KEY"

Example response

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": ""
}

Responses

  • 200OKOne page of templates.
    NameTypeRequiredDescription
    dataTemplate[]
    Template[]
    No

    Newest first.

    next_cursorstring
    string
    No

    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.
    NameTypeRequiredDescription
    errorErrorBodyrequired
    ErrorBody
    Yes
    All error codes
  • 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.
    NameTypeRequiredDescription
    errorErrorBodyrequired
    ErrorBody
    Yes
    All error codes
  • 422Unprocessable entityvalidation_failed
    • validation_failedThe request is well-formed JSON but describes an invalid job. details[] lists every problem.
    NameTypeRequiredDescription
    errorErrorBodyrequired
    ErrorBody
    Yes
    All error codes
  • 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.
    NameTypeRequiredDescription
    errorErrorBodyrequired
    ErrorBody
    Yes
    All error codes
  • 500Internal server errorinternal_error
    • internal_errorSomething failed on our side.
    NameTypeRequiredDescription
    errorErrorBodyrequired
    ErrorBody
    Yes
    All error codes
  • 503Service unavailableapi_disabled
    • api_disabledThe API is temporarily disabled (maintenance) or switched off for the organization.
    NameTypeRequiredDescription
    errorErrorBodyrequired
    ErrorBody
    Yes
    All error codes