List jobs
Your organization's jobs, newest first, one page at a time.
認証
クエリパラメーター
limitintegerPage size.
201–100cursorstringnext_cursor of the previous page.
statusstringOnly jobs in this status.
queuedrunningsucceededfailedcanceledリクエストの例
curl -X GET "https://runner.cargoduo.com/v1/jobs?limit=2&status=succeeded" \
-H "Authorization: Bearer $CARGODUO_API_KEY"const res = await fetch("https://runner.cargoduo.com/v1/jobs?limit=2&status=succeeded", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.CARGODUO_API_KEY}`,
},
});
const data = await res.json();
console.log(res.status, data);import os
import requests
response = requests.get(
"https://runner.cargoduo.com/v1/jobs",
headers={"Authorization": f"Bearer {os.environ['CARGODUO_API_KEY']}"},
params={
"limit": 2,
"status": "succeeded",
},
)
print(response.status_code, response.json())package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://runner.cargoduo.com/v1/jobs?limit=2&status=succeeded", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("CARGODUO_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.StatusCode, string(out))
}import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://runner.cargoduo.com/v1/jobs?limit=2&status=succeeded"))
.header("Authorization", "Bearer " + System.getenv("CARGODUO_API_KEY"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System.Net.Http.Headers;
using System.Text;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("CARGODUO_API_KEY"));
var request = new HttpRequestMessage(HttpMethod.Get, "https://runner.cargoduo.com/v1/jobs?limit=2&status=succeeded");
var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");<?php
$ch = curl_init('https://runner.cargoduo.com/v1/jobs?limit=2&status=succeeded');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('CARGODUO_API_KEY'),
],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), ' ', $response, PHP_EOL;require "net/http"
require "uri"
uri = URI("https://runner.cargoduo.com/v1/jobs?limit=2&status=succeeded")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer #{ENV.fetch("CARGODUO_API_KEY")}"
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") do |http|
http.request(request)
end
puts response.code, response.bodyレスポンスの例
{
"data": [
{
"id": "job_4bK9mT2xQe7LpW1zRc8VdN3f",
"object": "job",
"status": "succeeded",
"reference": "order-1042",
"source": "api",
"created_at": "2026-10-19T09:12:03Z",
"started_at": "2026-10-19T09:12:03Z",
"finished_at": "2026-10-19T09:12:07Z",
"progress": {
"stage": "done",
"vehicles_done": 1,
"placed_items": 58
},
"summary": {
"items_requested": 58,
"items_placed": 58,
"items_unplaced": 0,
"vehicles_used": 1,
"total_weight": 8580,
"volume_utilization": 0.3116,
"queue_ms": 12,
"compute_ms": 4210
},
"cost": {
"credits": 0.28105,
"reserved_credits": 1.11,
"rate_card_version": 1,
"breakdown": {
"base": 0.06,
"vehicles": 0.2,
"compute": 0.02105,
"large_load": 0
}
},
"error": null,
"warnings": [],
"result_url": "https://runner.cargoduo.com/v1/jobs/job_4bK9mT2xQe7LpW1zRc8VdN3f/result",
"pdf_url": "https://app.cargoduo.com/r/Xq7Lm2Vt9KbR4cN8wZp1Hs6Yd3Fg5Jk0Ta2Ue7Wn4Ci",
"expires_at": "2026-11-02T09:12:03Z"
},
{
"id": "job_7hN2wQ5rTb9xKc3LmP8sVa1d",
"object": "job",
"status": "succeeded",
"reference": "order-1039",
"source": "api",
"created_at": "2026-10-18T07:12:03Z",
"started_at": "2026-10-18T07:12:03Z",
"finished_at": "2026-10-18T07:12:05Z",
"progress": {
"stage": "done",
"vehicles_done": 1,
"placed_items": 24
},
"summary": {
"items_requested": 24,
"items_placed": 24,
"items_unplaced": 0,
"vehicles_used": 1,
"total_weight": 6240,
"volume_utilization": 0.2213,
"queue_ms": 9,
"compute_ms": 2870
},
"cost": {
"credits": 0.27435,
"reserved_credits": 1.11,
"rate_card_version": 1,
"breakdown": {
"base": 0.06,
"vehicles": 0.2,
"compute": 0.01435,
"large_load": 0
}
},
"error": null,
"warnings": [],
"result_url": "https://runner.cargoduo.com/v1/jobs/job_7hN2wQ5rTb9xKc3LmP8sVa1d/result",
"pdf_url": "https://app.cargoduo.com/r/Xq7Lm2Vt9KbR4cN8wZp1Hs6Yd3Fg5Jk0Ta2Ue7Wn4Ci",
"expires_at": "2026-11-01T07:12:03Z"
}
],
"next_cursor": "job_7hN2wQ5rTb9xKc3LmP8sVa1d"
}レスポンス
200OKOne page of jobs.
名前型必須説明dataJob[]Job[]いいえidstring必須stringはいJob id (job_…).
objectstring必須stringはいAlways
job.jobstatusstring必須stringはいqueued→running→succeeded|failed|canceled.queuedrunningsucceededfailedcanceledreferencestringstringいいえYour reference from the request.
sourcestringstringいいえWhere the job was created.
apiplaygroundproject_idstringstringいいえThe project (prj_…) a POST /v1/projects/{id}/pack job saves its plan into. Absent on other jobs.
created_atstring必須stringはいRFC 3339 timestamp.
started_atstring | nullstring | nullいいえWhen computing started (RFC 3339) or
null.finished_atstring | nullstring | nullいいえWhen the job ended (RFC 3339) or
null.progressJobProgressJobProgressいいえLive progress while queued/running.
stagestringstringいいえCurrent stage, such as
queued,running,finalizingordone. Informational: branch onJob.status.vehicles_doneintegerintegerいいえVehicles packed so far.
placed_itemsintegerintegerいいえItem units placed so far.
summaryJobSummaryJobSummaryいいえCounts and timings.
items_requestedintegerintegerいいえTotal item units (sum of quantities).
items_placedintegerintegerいいえUnits placed.
items_unplacedintegerintegerいいえUnits that could not be placed.
vehicles_usedintegerintegerいいえVehicles that carry at least one item.
total_weightnumber · kgnumber · kgいいえWeight loaded.
volume_utilizationnumbernumberいいえAverage volume utilization of the used vehicles, 0–1.
queue_msintegerintegerいいえTime spent waiting for a compute slot (not billed).
compute_msintegerintegerいいえCompute time (billed).
costJobCostJobCostいいえCredits charged (final once the job ended) and the reservation held while it ran.
creditsnumber · creditsnumber · creditsいいえCredits charged (0 until the job ends). Failed jobs are not charged, except time_limit_exceeded, which is charged like a canceled job.
reserved_creditsnumber · creditsnumber · creditsいいえCredits held while the job was queued/running (the worst-case price). Released when it ends.
rate_card_versionintegerintegerいいえRate card the job is priced with.
breakdownCostBreakdownCostBreakdownいいえItemized price.
basenumber · creditsnumber · creditsいいえPer-job fee.
vehiclesnumber · creditsnumber · creditsいいえPer loaded vehicle (not charged for canceled or time_limit_exceeded jobs).
computenumber · creditsnumber · creditsいいえPer compute-second, pro-rated per millisecond.
large_loadnumber · creditsnumber · creditsいいえSurcharge per started 100 items above the large-load threshold.
errorJobError | nullJobError | nullいいえWhy the job failed or was canceled;
nullotherwise.codestringstringいいえMachine code (see Errors).
messagestringstringいいえEnglish explanation.
warningsWarning[]Warning[]いいえNon-blocking remarks about the request (also repeated in the result).
codestringstringいいえMachine code.
messagestringstringいいえEnglish explanation.
result_urlstringstringいいえGET this URL for the full result once
statusissucceeded.pdf_urlstringstringいいえA browser link that renders the load plan as a PDF (3D views + loading steps). Valid until expires_at. Empty after expiry.
expires_atstringstringいいえWhen the request/result bodies and the PDF link are deleted (RFC 3339). Job metadata and charges are kept.
resultResultResultいいえThe full result, inlined only when requested (?include=result) or when POST /v1/pack?wait= finished in time.
job_idstringstringいいえThe job.
vehiclesResultVehicle[]ResultVehicle[]いいえLoaded vehicles in loading order (empty vehicles are left out).
indexintegerintegerいいえ0-based position in the plan.
vehicle_idstringstringいいえYour vehicle definition id (for a project job: the slot id, pv_…).
copyintegerintegerいいえ1-based copy number of that definition (quantity > 1, or added in auto mode).
auto_addedbooleanbooleanいいえAdded by
packing_modeautobeyond thequantityyou listed.namestringstringいいえVehicle name.
typestringstringいいえVehicle type.
lengthnumber · cmnumber · cmいいえCargo-space length.
widthnumber · cmnumber · cmいいえCargo-space width.
heightnumber · cmnumber · cmいいえCargo-space height.
max_weightnumber · kgnumber · kgいいえPayload limit.
items_placedintegerintegerいいえUnits in this vehicle.
total_weightnumber · kgnumber · kgいいえWeight in this vehicle.
volume_utilizationnumbernumberいいえUsed volume / cargo-space volume, 0–1.
weight_utilizationnumbernumberいいえtotal_weight / max_weight, 0–1 (may exceed 1 with allow_overweight).
center_of_gravityPointPointいいえCentre of gravity of the load (cm).
xnumber · cmnumber · cmいいえynumber · cmnumber · cmいいえznumber · cmnumber · cmいいえplacementsPlacement[]Placement[]いいえEvery unit in this vehicle.
item_idstringstringいいえYour item definition id (for a project job: the item id, item_…).
instanceintegerintegerいいえ1-based unit number within that item definition (unique across the whole plan).
labelstringstringいいえItem label.
xnumber · cmnumber · cmいいえMin-corner position along the length.
ynumber · cmnumber · cmいいえMin-corner height above the floor.
znumber · cmnumber · cmいいえMin-corner position across the width.
lengthnumber · cmnumber · cmいいえSize along x as placed.
widthnumber · cmnumber · cmいいえSize along z as placed.
heightnumber · cmnumber · cmいいえSize along y as placed.
rotatedbooleanbooleanいいえPlaced in a different orientation than defined.
orientationstringstringいいえWhich defined side lies along x, z and y:
lwh= as defined,wlh= turned 90° around the vertical axis,lhw,hwl,whl,hlw= tipped onto a side.stepintegerintegerいいえ1-based loading step within the vehicle (load in ascending order).
weightnumber · kgnumber · kgいいえUnit weight.
axle_loads利用申請が必要AxleLoad[]AxleLoad[]いいえLoad per axle (vehicles with axle data only).
namestringstringいいえAxle 1,Axle 2… in the order ofaxle_positions.positionnumber · cmnumber · cmいいえAxle position from the front of the cargo area.
loadnumber · kgnumber · kgいいえCargo load on the axle.
maxnumber · kgnumber · kgいいえConfigured maximum (0 = none).
okbooleanbooleanいいえload≤max(alwaystruewithout a maximum).unplacedUnplacedItem[]UnplacedItem[]いいえUnits that could not be placed, with the reason.
item_idstringstringいいえYour item definition id.
instanceintegerintegerいいえ1-based unit number.
labelstringstringいいえItem label.
reasonstringstringいいえWhy it could not be placed.
warningsWarning[]Warning[]いいえRemarks about the plan.
codestringstringいいえMachine code.
messagestringstringいいえEnglish explanation.
pdf_urlstringstringいいえBrowser link that renders the plan as a PDF.
expires_atstringstringいいえWhen this result is deleted (RFC 3339).
next_cursorstringstringいいえPass as ?cursor= for the next page; empty on the last page.
401Unauthorized
unauthorizedkey_revokedkey_expiredunauthorizedMissing, malformed or unknown API key.key_revokedThe key was revoked.key_expiredThe key passed its expiry date.
すべてのエラーコード名前型必須説明errorErrorBody必須ErrorBodyはいcodestring必須stringはいMachine code (snake_case). Branch on this, never on
message.messagestring必須stringはいEnglish explanation.
request_idstring必須stringはいSame as the X-Request-Id header. Quote it when contacting support.
detailsErrorDetail[]ErrorDetail[]いいえPer-field problems (
validation_failed).pathstringstringいいえJSON path of the offending field, e.g. items[3].length.
codestringstringいいえrequired,invalid_value,out_of_range,duplicate_id,unknown_vehicle,unknown_template,type_not_allowed,unknown_group,does_not_fit,too_many_items,too_many_vehicles,unknown_field,invalid_json.messagestringstringいいえEnglish explanation.
403Forbidden
ip_not_allowedsubscription_inactiveaccount_inactivescope_missingip_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はいcodestring必須stringはいMachine code (snake_case). Branch on this, never on
message.messagestring必須stringはいEnglish explanation.
request_idstring必須stringはいSame as the X-Request-Id header. Quote it when contacting support.
detailsErrorDetail[]ErrorDetail[]いいえPer-field problems (
validation_failed).pathstringstringいいえJSON path of the offending field, e.g. items[3].length.
codestringstringいいえrequired,invalid_value,out_of_range,duplicate_id,unknown_vehicle,unknown_template,type_not_allowed,unknown_group,does_not_fit,too_many_items,too_many_vehicles,unknown_field,invalid_json.messagestringstringいいえEnglish explanation.
422Unprocessable entity
validation_failedvalidation_failedThe request is well-formed JSON but describes an invalid job. details[] lists every problem.
すべてのエラーコード名前型必須説明errorErrorBody必須ErrorBodyはいcodestring必須stringはいMachine code (snake_case). Branch on this, never on
message.messagestring必須stringはいEnglish explanation.
request_idstring必須stringはいSame as the X-Request-Id header. Quote it when contacting support.
detailsErrorDetail[]ErrorDetail[]いいえPer-field problems (
validation_failed).pathstringstringいいえJSON path of the offending field, e.g. items[3].length.
codestringstringいいえrequired,invalid_value,out_of_range,duplicate_id,unknown_vehicle,unknown_template,type_not_allowed,unknown_group,does_not_fit,too_many_items,too_many_vehicles,unknown_field,invalid_json.messagestringstringいいえEnglish explanation.
429Too many requests
rate_limitedrate_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はいcodestring必須stringはいMachine code (snake_case). Branch on this, never on
message.messagestring必須stringはいEnglish explanation.
request_idstring必須stringはいSame as the X-Request-Id header. Quote it when contacting support.
detailsErrorDetail[]ErrorDetail[]いいえPer-field problems (
validation_failed).pathstringstringいいえJSON path of the offending field, e.g. items[3].length.
codestringstringいいえrequired,invalid_value,out_of_range,duplicate_id,unknown_vehicle,unknown_template,type_not_allowed,unknown_group,does_not_fit,too_many_items,too_many_vehicles,unknown_field,invalid_json.messagestringstringいいえEnglish explanation.
500Internal server error
internal_errorinternal_errorSomething failed on our side.
すべてのエラーコード名前型必須説明errorErrorBody必須ErrorBodyはいcodestring必須stringはいMachine code (snake_case). Branch on this, never on
message.messagestring必須stringはいEnglish explanation.
request_idstring必須stringはいSame as the X-Request-Id header. Quote it when contacting support.
detailsErrorDetail[]ErrorDetail[]いいえPer-field problems (
validation_failed).pathstringstringいいえJSON path of the offending field, e.g. items[3].length.
codestringstringいいえrequired,invalid_value,out_of_range,duplicate_id,unknown_vehicle,unknown_template,type_not_allowed,unknown_group,does_not_fit,too_many_items,too_many_vehicles,unknown_field,invalid_json.messagestringstringいいえEnglish explanation.
503Service unavailable
api_disabledapi_disabledThe API is temporarily disabled (maintenance) or switched off for the organization.
すべてのエラーコード名前型必須説明errorErrorBody必須ErrorBodyはいcodestring必須stringはいMachine code (snake_case). Branch on this, never on
message.messagestring必須stringはいEnglish explanation.
request_idstring必須stringはいSame as the X-Request-Id header. Quote it when contacting support.
detailsErrorDetail[]ErrorDetail[]いいえPer-field problems (
validation_failed).pathstringstringいいえJSON path of the offending field, e.g. items[3].length.
codestringstringいいえrequired,invalid_value,out_of_range,duplicate_id,unknown_vehicle,unknown_template,type_not_allowed,unknown_group,does_not_fit,too_many_items,too_many_vehicles,unknown_field,invalid_json.messagestringstringいいえEnglish explanation.