本文へスキップ
CargoDuo logoCargoDuo
料金

このドキュメントは現在、英語版のみです。

開発者向けドキュメントAPI referenceAccount

Get limits

The limits that apply to your organization and the rate card new jobs are priced with.

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

認証

Bearer API キー(必要なスコープ)account:read詳細を見る

リクエストの例

curl -X GET "https://runner.cargoduo.com/v1/limits" \
  -H "Authorization: Bearer $CARGODUO_API_KEY"

レスポンスの例

200 OK · Limits
{
  "max_items_per_request": 2000,
  "max_vehicles_per_request": 20,
  "max_time_limit_seconds": 90,
  "allowed_vehicle_types": [
    "truck",
    "trailer",
    "container",
    "pallet"
  ],
  "concurrency": 1,
  "max_queued_jobs": 20,
  "rate_limits": {
    "per_minute": 60,
    "per_hour": 1000,
    "per_day": 5000
  },
  "retention_days": 14,
  "rate_card": {
    "version": 1,
    "per_job": 0.06,
    "per_vehicle": 0.2,
    "per_compute_second": 0.005,
    "large_load_threshold": 500,
    "per_hundred_items_over": 0.02
  }
}

レスポンス

  • 200OKLimits and rate card.
    名前型必須説明
    max_items_per_requestinteger
    integer
    いいえ

    Most item units (sum of quantities) per job.

    max_vehicles_per_requestinteger
    integer
    いいえ

    Most vehicles a job may list and load (auto-added ones included).

    max_time_limit_secondsinteger
    integer
    いいえ

    Compute budget ceiling per job.

    allowed_vehicle_typesstring[]
    string[]
    いいえ

    Vehicle types the API accepts.

    concurrencyinteger
    integer
    いいえ

    Jobs of your organization computing at the same time; more wait in the queue.

    max_queued_jobsinteger
    integer
    いいえ

    Queued + running jobs per organization.

    rate_limitsRateLimits
    RateLimits
    いいえ

    Requests per window, per key and per organization.

    retention_daysinteger
    integer
    いいえ

    Days request/result bodies and PDF links are kept.

    rate_cardRateCard
    RateCard
    いいえ

    Prices in credits (1 credit = 1 USD).

  • 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
    はい
    すべてのエラーコード
  • 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
    はい
    すべてのエラーコード