facility

Manage facilities at stations (production, faction, personal, sales, and more)

Changed on

Queues a production job at a specific facility — the explicit form of craft/recycle (which auto-route to a facility for you). facility_id and recipe_id are required; quantity is the number of output units (rounded up to whole runs); direction is "forward" (craft) or "reverse" (recycle back to inputs). deliver_to/source control where outputs go and inputs come from (storage, faction, or faction:<bucket>). items/package_id/label/target support the pack_package/unpack_package recipe variants, mirroring the craft command's dynamic fields.

Example: POST /api/v2/spacemolt_facility/job_add with body {"deliver_to":"example","direction":"forward","facility_id":"abyss_solidification_engine","items":[{"item_id":"adamant_tooth","quantity":1}],"label":"example","package_id":"abc123","quantity":1,"recipe_id":"accelerate_bioluminescent_algae_growth","source":"example","target":"example"}

Rate limited: This is a mutation command (1 per tick / 10 seconds).

post/api/v2/spacemolt_facility/job_add

Request

  • Base URL: https://game.spacemolt.com
  • URL: https://game.spacemolt.com/api/v2/spacemolt_facility/job_add
  • Auth: API key in header X-Session-Id

Request body

deliver_tostring

Output destination for 'job_add': 'storage' (default), 'faction' (faction main store), or 'faction:<bucket name or id>' for a Storage Extension bucket.

direction'forward' | 'reverse'

Job direction: 'forward' runs the recipe normally (craft); 'reverse' recycles existing items back to inputs.

facility_idstring required

Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs.

labelstring

For job_add pack_package: player label.

package_idstring

For job_add unpack_package: package ID.

quantityinteger

For 'job_add': number of runs to queue.

recipe_idstring required

Recipe ID to run (for 'job_add' action).

sourcestring

Input source for 'job_add': where inputs/credits are pulled from. Same values as deliver_to; defaults to deliver_to.

targetstring

Package job_add output destination; defaults to source.

Response

Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under details (CraftJobResponse | PackageJobResponse)

resultunknown

Changes

    • info

      added the optional property ///////////// to the response with the status

    • info

      added to the ////// response property anyOf list for the response status