Saved loads
Keep a run you want to come back to under a name, and find it again later among the runs you kept.
When to use this
- A plan is worth keeping: you are going to load it, show it again or build on it, and you want to find it by name.
- You want to tell the runs you kept apart from the rest in the job list.
Walkthrough
A run you want to keep becomes a saved load: POST /v2/saved-loads?jobId={id} with the name to keep it under. Only an order that has succeeded can be saved. A saved load is the run itself, kept: it has the run's id, its request (/v2/jobs/{id}/input), result, instructions and share link stay under /v2/jobs/{id}/..., and its name is the run's name.
curl -X POST "https://api.loadoptimizer.ai/v2/saved-loads?jobId=01975cbc-1f40-7d21-9b3e-5a7c2e8f0d19" \
-H "X-Api-Key: ck_live_..." -H "Content-Type: application/json" \
-d '{ "name": "Rotterdam week 40" }'
{
"id": "01975cbc-1f40-7d21-9b3e-5a7c2e8f0d19",
"name": "Rotterdam week 40",
"problemType": "LoadPlanning",
"createdAt": "2026-09-28T08:12:33.412+00:00",
"createdBy": { "type": "user", "id": "0192f3a4-5b6c-7d8e-9f01-23456789abcd", "via": null },
"savedAt": "2026-10-01T14:03:10.007+00:00",
"savedBy": { "type": "apiKey", "id": "0192f3a4-7e8f-7a9b-8c0d-1e2f3a4b5c6d", "via": null }
}
- The limit. Your plan allows a number of saved loads per problem type; see Limits & quotas. At the limit the save answers
422withcode: "max_saved_loads". To save in place of an older one, name it inreplace: a validreplacereleases that saved load in the same call, at the limit or not, and the released run'sexpiresAtbecomes at least 30 days from now; a refused save releases nothing (another problem type, or a value that is not an id, answers400; an id that names none of your saved loads answers404withcode: "saved_load_not_found"). - Retries. Saving a run that is already saved answers
409withcode: "saved_load_exists"and changes nothing, so a retry after a timeout tells you the first attempt landed; itsresourcenames the saved load. - Listing and releasing.
GET /v2/saved-loadslists them the wayGET /v2/jobslists orders (filtersproblemType,q,savedFrom,savedToandsavedBy, which takes theidof a user or of an API key, repeatable, ascreatedBydoes on the job list;sort=savedAtby default, orcreatedAt,nameorproblemType).GET /v2/saved-loads/{id}reads one, andDELETE /v2/saved-loads/{id}releases one: the run stays among your jobs, with its result and its name, and itsexpiresAtbecomes at least 30 days from now. Every job says whether it is saved insaved, andGET /v2/jobs?saved=falselists the runs you have not kept.
Key fields
| Field | Where | Notes |
|---|---|---|
id |
SavedLoad |
The run's job id: its request, result, instructions and share link are under /v2/jobs/{id}/.... Release it with DELETE /v2/saved-loads/{id}. |
name |
SavedLoad |
The run's name, at most 256 characters. Set when saving; PUT /v2/jobs/{id}/name changes it for the run and the saved load alike. null only when it was cleared that way afterwards. |
problemType |
SavedLoad |
LoadPlanning or MixedPalletizing. The saved-load limit counts per problem type, and replace has to name a saved load of the same one. |
createdAt |
SavedLoad |
When the run was submitted (UTC). |
createdBy |
SavedLoad |
Who submitted the run, as an actor. |
savedAt |
SavedLoad |
When it was saved (UTC). GET /v2/saved-loads sorts on it by default, most recently saved first. |
savedBy |
SavedLoad |
Who saved it, as an actor (via: agent when through an AI agent). The filter of the same name takes its id. See Users, API keys and who did what. |
Notes & caveats
- Saved loads are kept. Jobs are deleted at their
expiresAt, 90 days after they were created (see Retention). A saved load is not part of that: it stays until you release it or close your account, and itsexpiresAtisnull. A released run goes back under retention, with anexpiresAtat least 30 days from now. - Only a succeeded order can be saved. A run that has not succeeded answers
409withcode: "job_not_succeeded". A loading-instructions job is not an order: its id answers404withcode: "job_not_found", like an unknown id. - Releasing is never limited. An account over its limit, after a plan change for example, can always make room. To undo a release, save the run again.
Related
- Listing your jobs: the job list, and its
savedfilter. - Limits & quotas: the saved-load limit, per problem type.
- Errors & troubleshooting:
max_saved_loads,saved_load_exists,saved_load_not_foundand the other codes.