Manage facilities at stations (production, faction, personal, sales, and more)
Changed onQueues 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. Fuel made on someone else's fuel facility goes to your faction's fuel bunker at that station; without one the job fails with no_fuel_bunker.
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).
Request
- Base URLhttps://game.spacemolt.com
- AuthAPI key in header X-Session-Id
Request body
Output destination for 'job_add': 'storage' (default), 'faction' (faction main store), or 'faction:<bucket name or id>' for a Storage Extension bucket.
Job direction: 'forward' runs the recipe normally (craft); 'reverse' recycles existing items back to inputs.
Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list' (also accepts your own Station Workshop id workshop:<player_id>:<base_id>), 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs.
For job_add pack_package: selected manifest items.
For job_add pack_package: player label.
For job_add unpack_package: package ID.
For 'job_add': number of runs to queue.
Recipe ID to run (for 'job_add' action).
Input source for 'job_add': where inputs/credits are pulled from. Same values as deliver_to; defaults to deliver_to.
Package job_add output destination; defaults to source.
Response
Result. structuredContent: V2GameState post-mutation delta (changed player/ship/cargo/missions/skills sections); the command result is under details (CraftJobResponse | PackageJobResponse)
Example response
{
"notifications": [
{
"data": {
"reason": "stalemate",
"winning_side": -1
}
}
],
"structuredContent": {
"missions": {
"fixer": {
"allowance": 5000,
"available": 2000,
"debt": 2000,
"exposure": 3000
}
}
}
}Changes
- info
added the optional property
allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuelto the response with the status
- info
- info
added the optional property
allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearingto the response with the status
- info