{"info":{"_postman_id":"a8d0f6ac-2f4e-49b8-924d-26926958b65e","name":"MoonBase v1 Beta","description":"<html><head></head><body><h4 id=\"get-a-free-api-key-and-start-building-your-moonbase-built-with-love-by-codespan\">Get a <a href=\"https://codespan.com/moonbase\">free API key</a> and start building your MoonBase! Built with love by <a href=\"https://codespan.com\">CodeSpan</a>.</h4>\n<h1 id=\"getting-started\">Getting Started</h1>\n<p>The MoonBase API is a RESTful service structured by object-oriented endpoints, utilizing standard HTTP response codes and verbs. Before building your MoonBase, let's review a few concepts:</p>\n<ul>\n<li><strong>Day</strong>: Did you know a day on the Moon is over 700 hours? That's just a fun fact, in our world we control how long a day lasts! Each day, your MoonBase facilities collect a fixed amount of resources, your astronauts complete missions, and there may be a few surprises along the way!</li>\n<li><strong>Epoch</strong>: The period of time during which you are building your MoonBase. Think of an <strong>Epoch</strong> as a game - you have a fixed amount of time to accomplish as much as possible, and when time is called you earn a score based on how well you performed. <strong>Each Epoch is 100 days</strong>.</li>\n<li><strong>Score</strong>: After <strong>100 days</strong>, all of your MoonBase resources, facilities, and successful missions will be counted as a final score and emailed to you. Who's up for a friendly competition with fellow space pioneers?</li>\n</ul>\n<p>May we suggest a gradual approach:</p>\n<ul>\n<li><strong>Beginner</strong>: Have your Postman collection handy! Begin an Epoch and then manually make calls via Postman to check your MoonBase for new events, build facilities as you gather resources, and send vehicles on missions. After you have made the neccesarry calls proceed the Epoch to the next day!</li>\n<li><strong>Intermediate</strong>: Let's start programming! Write a script that is able to call the API, automatically build facilities based on resources available, and address those pesky meteors. At the end of the script proceed the Epoch to the next day.</li>\n<li><strong>Advanced</strong>: Time to host your application - with a server ready to accept webhooks, you are all set to fully automate the development of your MoonBase!</li>\n<li><strong>Super Advanced</strong>: Did someone just say machine learning?</li>\n</ul>\n<h1 id=\"environments\">Environments</h1>\n<p>Documentation: <a href=\"https://moonbase.codespan.com\">https://moonbase.codespan.com</a><br>Base API URL: <a href=\"https://moonbase-v1.codespan.com\">https://moonbase-v1.codespan.com</a></p>\n<h1 id=\"responses\">Responses</h1>\n<p>All endpoints return JSON-encoded responses and standard HTTP status codes.</p>\n<p>Error response examples:</p>\n<p>Response (401): <code>{\"message\": \"Unable to authenticate.\"}</code><br>Response (404): <code>{\"message\": \"Object could not be found.\"}</code><br>Response (429): <code>{\"message\": \"Your account has been locked for 1 hour.\"}</code><br>Response (500): <code>{\"message\": \"Our server experienced an unexpected error. We have been alerted to this error, please try again later.\"}</code></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Getting Started","slug":"getting-started"},{"content":"Environments","slug":"environments"},{"content":"Responses","slug":"responses"}],"owner":"21852176","collectionId":"a8d0f6ac-2f4e-49b8-924d-26926958b65e","publishedId":"2s847BSFHR","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"d43030"},"publishDate":"2022-10-15T19:30:23.000Z"},"item":[{"name":"Authentication","item":[{"name":"Tokens","event":[{"listen":"test","script":{"id":"80fc00a7-f7ce-4ba9-9120-4c8354593c3f","exec":["const token_data = pm.response.json();","pm.environment.set(\"token\", token_data['AccessToken']);"],"type":"text/javascript"}}],"id":"6df6f6b4-7945-4a31-9636-61256eed7e22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"george.p.burdell@codespan.com\",\r\n    \"password\": \"iHeartCodeSpan\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/tokens/","description":"<p>Note: This endpoint is rate limited to 5 requests per hour, per email address.</p>\n","urlObject":{"protocol":"https","path":["tokens",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"2d878597-b705-4536-85b7-d62ca0e60198","name":"Tokens","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"george.p.burdell@codespan.com\",\r\n    \"password\": \"iHeartCodeSpan\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/tokens/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"9e04d2c7-3733-4a30-bbc9-637cc4ba323a\",\n    \"expires\": \"2021-10-26 23:56:35.113643+00:00\"\n}"}],"_postman_id":"6df6f6b4-7945-4a31-9636-61256eed7e22"}],"id":"ec2ff987-3e64-42e8-a39d-eaa975904ea3","description":"<p>Email and password combinations are required to generate tokens which are used for authorizing subsequent API calls. Tokens are accepted for 12 hours after generation; it is suggested to cache your token expiration timestamp locally, although it is acceptable to attempt API actions to determine token validity and re-authenticate as necessary. The token is passed as <code>Authorization</code> in the header for all subsequent calls.</p>\n","_postman_id":"ec2ff987-3e64-42e8-a39d-eaa975904ea3"},{"name":"Lookups","item":[{"name":"Definitions","id":"42136f2b-fe37-48cb-afda-e81c952155c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/definitions/","description":"<p>Note: An optional query string parameter <code>fields</code> accepts a comma delimited value of the definition keys and dictates the structure of the response; ex: <code>?fields=statuses,missions</code>.</p>\n","urlObject":{"protocol":"https","path":["definitions",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"d8b44bcb-56ee-4f35-a21a-e7a53ac0bd3b","name":"Definitions","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/definitions/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"statuses\": {\r\n        \"facilities\": [\r\n            \"Operational\",\r\n            \"Needs Repair\",\r\n            \"Destroyed\"\r\n        ],\r\n        \"vehicles\": [\r\n            \"Awaiting Deployment\",\r\n            \"Deployed\",\r\n            \"Needs Repair\",\r\n            \"Destroyed\",\r\n            \"Missing\"\r\n        ],\r\n        \"missions\": [\r\n            \"Not Started\",\r\n            \"In Progress\",\r\n            \"Completed\"\r\n        ]\r\n    },\r\n    \"resources\": [\r\n        {\r\n            \"type\": \"Energy\",\r\n            \"description\": \"Energy is required to construct and repair assets, and can be harvested using solar and nuclear generation facilities.\"\r\n        },\r\n        {\r\n            \"type\": \"Ore\",\r\n            \"description\": \"Ore is required to construct and repair assets, and can be harvested using mining facilities.\"\r\n        }\r\n    ],\r\n    \"facilities\": [\r\n        {\r\n            \"type\": \"Headquarters\",\r\n            \"description\": \"The foundational facility of your MoonBase, providing self sustaining housing, storage, and basic resource gathering.\",\r\n            \"daily_output\": {\r\n                \"energy\": 1,\r\n                \"ore\": 1\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 100,\r\n                \"ore\": 100\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 100,\r\n                \"ore\": 100\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Mining Outpost\",\r\n            \"description\": \"A basic facility for mining and storing ore.\",\r\n            \"daily_output\": {\r\n                \"energy\": 0,\r\n                \"ore\": 10\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 0,\r\n                \"ore\": 100\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 25,\r\n                \"ore\": 25\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Mining Complex\",\r\n            \"description\": \"An advanced facility for mining and storing ore.\",\r\n            \"daily_output\": {\r\n                \"energy\": 0,\r\n                \"ore\": 50\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 0,\r\n                \"ore\": 500\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 200,\r\n                \"ore\": 200\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Underground Mining Facility\",\r\n            \"description\": \"A mining facility to harvest materials beneath the surface of the Moon.\",\r\n            \"daily_output\": {\r\n                \"energy\": 0,\r\n                \"ore\": 200\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 0,\r\n                \"ore\": 2000\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 1000,\r\n                \"ore\": 1000\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Solar Power Plant\",\r\n            \"description\": \"A basic facility for harvesting and storing energy.\",\r\n            \"daily_output\": {\r\n                \"energy\": 10,\r\n                \"ore\": 0\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 100,\r\n                \"ore\": 0\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 25,\r\n                \"ore\": 25\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Nuclear Power Plant\",\r\n            \"description\": \"An advanced facility for harvesting and storing energy.\",\r\n            \"daily_output\": {\r\n                \"energy\": 50,\r\n                \"ore\": 0\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 500,\r\n                \"ore\": 0\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 200,\r\n                \"ore\": 200\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Dyson Sphere\",\r\n            \"description\": \"A megastructure that harnesses the energy of a neighboring star.\",\r\n            \"daily_output\": {\r\n                \"energy\": 200,\r\n                \"ore\": 0\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 2000,\r\n                \"ore\": 0\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 1000,\r\n                \"ore\": 1000\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Vehicle Assembly Plant\",\r\n            \"description\": \"A facility for constructing surface and space vehicles.\",\r\n            \"daily_output\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 200,\r\n                \"ore\": 200\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Spaceport\",\r\n            \"description\": \"A facility for launching and docking spacecraft, required to perform space-based missions.\",\r\n            \"daily_output\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 500,\r\n                \"ore\": 500\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Energy Storage Bunker\",\r\n            \"description\": \"A facility to store large amounts of energy, immune to asteroid impacts and other disasters.\",\r\n            \"daily_output\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0,\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 2000,\r\n                \"ore\": 0\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 1000,\r\n                \"ore\": 1000\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Ore Storage Bunker\",\r\n            \"description\": \"A facility to store large amounts of ore, immune to asteroid impacts and other disasters.\",\r\n            \"daily_output\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0,\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 0,\r\n                \"ore\": 2000\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 1000,\r\n                \"ore\": 1000\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Armored Garage\",\r\n            \"description\": \"A facility to store rovers and drones, immune to asteroid impacts and other disasters.\",\r\n            \"daily_output\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0,\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 1000,\r\n                \"ore\": 1000\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Mining Technology Laboratory\",\r\n            \"description\": \"A research facility which increases all MoonBase mining facility outputs over time.\",\r\n            \"daily_output\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0,\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 2000,\r\n                \"ore\": 2000\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Energy Technology Laboratory\",\r\n            \"description\": \"A research facility which increases all MoonBase energy facility outputs over time.\",\r\n            \"daily_output\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0,\r\n            },\r\n            \"storage_capacity\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0\r\n            },\r\n            \"construction_cost\": {\r\n                \"energy\": 2000,\r\n                \"ore\": 2000\r\n            }\r\n        }\r\n    ],\r\n    \"vehicles\": [\r\n        {\r\n            \"type\": \"Rover\",\r\n            \"description\": \"A land-based wheeled vehicle used to perform terrestrial resource gathering missions.\",\r\n            \"construction_cost\": {\r\n                \"energy\": 20,\r\n                \"ore\": 20\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Drone\",\r\n            \"description\": \"A low-altitude jet propulsion vehicle to perform terrestrial resource gathering missions more efficiently.\",\r\n            \"construction_cost\": {\r\n                \"energy\": 100,\r\n                \"ore\": 100\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Spaceship\",\r\n            \"description\": \"A high-altitude vehicle capable of performing space-based missions.\",\r\n            \"construction_cost\": {\r\n                \"energy\": 300,\r\n                \"ore\": 300\r\n            }\r\n        }\r\n    ],\r\n    \"missions\": [\r\n        {\r\n            \"type\": \"Asteroid Recovery\",\r\n            \"description\": \"A terrestrial mission to harvest resource-rich, grounded asteroids.\",\r\n            \"success_probability\": 0.9,\r\n            \"vehicles\": [\r\n                {\r\n                    \"type\": \"Rover\",\r\n                    \"duration\": 1\r\n                },\r\n                {\r\n                    \"type\": \"Drone\",\r\n                    \"duration\": 0.5\r\n                },\r\n                {\r\n                    \"type\": \"Spaceship\",\r\n                    \"duration\": null\r\n                }\r\n            ],\r\n            \"reward\": {\r\n                \"energy\": 10,\r\n                \"ore\": 100\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Asteroid Capture\",\r\n            \"description\": \"A space mission to capture resource-rich, in-flight asteroids.\",\r\n            \"success_probability\": 0.6,\r\n            \"vehicles\": [\r\n                {\r\n                    \"type\": \"Rover\",\r\n                    \"duration\": null\r\n                },\r\n                {\r\n                    \"type\": \"Drone\",\r\n                    \"duration\": null\r\n                },\r\n                {\r\n                    \"type\": \"Spaceship\",\r\n                    \"duration\": 2\r\n                }\r\n            ],\r\n            \"reward\": {\r\n                \"energy\": 100,\r\n                \"ore\": 1000\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Asteroid Impact Prevention\",\r\n            \"description\": \"A space mission to deploy a single-use asteroid interception system, preventing a collision with MoonBase facilities.\",\r\n            \"success_probability\": 0.4,\r\n            \"vehicles\": [\r\n                {\r\n                    \"type\": \"Rover\",\r\n                    \"duration\": null\r\n                },\r\n                {\r\n                    \"type\": \"Drone\",\r\n                    \"duration\": null\r\n                },\r\n                {\r\n                    \"type\": \"Spaceship\",\r\n                    \"duration\": 4\r\n                }\r\n            ],\r\n            \"reward\": {\r\n                \"energy\": 0,\r\n                \"ore\": 0\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Barter With Aliens\",\r\n            \"description\": \"A land based mission to trade away unused food for resources, they are a temperamental bunch so it is not always successful\",\r\n            \"success_probability\": 0.5,\r\n            \"vehicles\": [\r\n                {\r\n                    \"type\": \"Rover\",\r\n                    \"duration\": 1\r\n                },\r\n                {\r\n                    \"type\": \"Drone\",\r\n                    \"duration\": 1\r\n                },\r\n                {\r\n                    \"type\": \"Spaceship\",\r\n                    \"duration\": null\r\n                }\r\n            ],\r\n            \"reward\": {\r\n                \"energy\": 100,\r\n                \"ore\": 100\r\n            }\r\n        },\r\n        {\r\n            \"type\": \"Classified\",\r\n            \"description\": \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\r\n            \"success_probability\": 0.2,\r\n            \"vehicles\": [\r\n                {\r\n                    \"type\": \"Rover\",\r\n                    \"duration\": X\r\n                },\r\n                {\r\n                    \"type\": \"Drone\",\r\n                    \"duration\": X\r\n                },\r\n                {\r\n                    \"type\": \"Spaceship\",\r\n                    \"duration\": X\r\n                }\r\n            ],\r\n            \"reward\": {\r\n                \"energy\": 10000,\r\n                \"ore\": 10000\r\n            }\r\n        }\r\n    ]\r\n}"}],"_postman_id":"42136f2b-fe37-48cb-afda-e81c952155c6"}],"id":"05ce3684-7d49-46da-af77-c1565dc5ee3e","description":"<p>Note: only <code>GET</code> requests are allowed.</p>\n<p>An optional query string param <code>fields</code> is available in order to limit which definitions are included in the response.</p>\n","_postman_id":"05ce3684-7d49-46da-af77-c1565dc5ee3e"},{"name":"Epoch","item":[{"name":"Epoch","id":"901907c4-9492-43d5-8d6d-15c1e5df7eb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/epoch/","urlObject":{"protocol":"https","path":["epoch",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"0af85f3e-eda6-4ed1-8a3f-8568ce8e5067","name":"Epoch","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/epoch/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Epoch is on day 14.\"\n}"}],"_postman_id":"901907c4-9492-43d5-8d6d-15c1e5df7eb9"},{"name":"Begin Epoch","id":"2c335a00-b852-4307-a65f-1a00728691b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"action\": \"begin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/epoch/","urlObject":{"protocol":"https","path":["epoch",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"9e83936d-0730-42f9-a3e5-1da7de2deb1c","name":"Begin Epoch","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"action\": \"begin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/epoch/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Epoch Started\"\n}"}],"_postman_id":"2c335a00-b852-4307-a65f-1a00728691b4"},{"name":"Proceed Epoch","id":"0b93b495-56d6-4e9a-ae34-ca2abe0225b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"action\": \"proceed\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/epoch/","urlObject":{"protocol":"https","path":["epoch",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"cbf8a28d-eb38-4bfd-8957-dd92c0f0c0be","name":"Proceed Epoch","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"action\": \"proceed\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/epoch/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Epoch is now on day 14.\"\n}"}],"_postman_id":"0b93b495-56d6-4e9a-ae34-ca2abe0225b2"}],"id":"7c96a30e-8f79-4cba-b58a-a56007c39353","description":"<p>Note: Only <code>GET</code> and <code>POST</code> requests are allowed and only 1 Epoch can be in progress at a time.</p>\n","_postman_id":"7c96a30e-8f79-4cba-b58a-a56007c39353"},{"name":"Base","item":[{"name":"Base","id":"f9ffdf7f-ff12-495d-8c37-94992ebd5ce6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/base/","urlObject":{"protocol":"https","path":["base",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"ecfab543-d33e-43ec-a255-cc33e046379d","name":"Base","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/base/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"MoonBase Alpha\",\n    \"webhook\": \"https://example.com/webhook\",\n    \"resources\": {\n        \"energy\": {\n            \"daily_output\": 5,\n            \"storage_capacity\": 2000,\n            \"available\": 1500\n        },\n        \"ore\": {\n            \"daily_output\": 6,\n            \"storage_capacity\": 1500,\n            \"available\": 1000\n        }\n    },\n    \"assets\": {\n        \"facilities\": 5,\n        \"vehicles\": 9\n    }\n}"}],"_postman_id":"f9ffdf7f-ff12-495d-8c37-94992ebd5ce6"}],"id":"ebbaf158-095b-433b-9f3e-c6c3c8381776","description":"<p>Note: only the <code>GET</code> method is supported.</p>\n","_postman_id":"ebbaf158-095b-433b-9f3e-c6c3c8381776"},{"name":"Facilities","item":[{"name":"Facilities","id":"844766f6-3777-4bd8-a1f7-3a49dae58321","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/facilities/","urlObject":{"protocol":"https","path":["facilities",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"4bf2940c-a57e-4798-bcea-a48438c6083d","name":"Facilities","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/facilities/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"facilities\": [\n        {\n            \"id\": 1,\n            \"name\": \"Mine Alpha\",\n            \"type\": \"Mining Outpost\",\n            \"status\": \"Operational\",\n            \"built_datetime\": \"2021-10-26 23:56:35.113643+00:00\",\n        }\n    ]\n}"}],"_postman_id":"844766f6-3777-4bd8-a1f7-3a49dae58321"},{"name":"Facilities","id":"af12a093-94ad-43d1-9531-367a4c2283fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Mine Alpha\",\n    \"type\": \"Mining Outpost\"\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/facilities/","description":"<p>Required fields:</p>\n<ul>\n<li>name</li>\n<li>type</li>\n</ul>\n","urlObject":{"protocol":"https","path":["facilities",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"f2c56bae-2baa-4b7c-ad56-5c47c77bd285","name":"Facilities","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Mine Alpha\",\n    \"type\": \"Mining Outpost\"\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/facilities/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"Mine Alpha\",\n    \"type\": \"Mining Outpost\",\n    \"status\": \"Operational\",\n    \"built\": \"2022-07-12 20:09:32.769177+00:00\"\n}"}],"_postman_id":"af12a093-94ad-43d1-9531-367a4c2283fa"},{"name":"Facilities","id":"753e7915-f9c0-45ea-b418-cd084cedc625","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 1,\n    \"name\": \"Better Headquarters Name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/facilities/","description":"<p>Either <code>name</code> or <code>status</code> is required to be in the body.</p>\n","urlObject":{"protocol":"https","path":["facilities",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"9449340f-8198-416a-9b15-b2252dc78a65","name":"Facilities","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 1,\n    \"name\": \"Better Headquarters Name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/facilities/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 1,\n    \"name\": \"Better Headquarters Name\",\n    \"type\": \"Headquarters\",\n    \"status\": \"Operational\",\n    \"built\": \"2022-07-12 19:53:02.551671+00:00\"\n}"}],"_postman_id":"753e7915-f9c0-45ea-b418-cd084cedc625"},{"name":"Facilities","id":"a1abcf68-7228-4ec2-9eba-426de51d9e31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/facilities/{{facility-id}}","description":"<p>The <code>DELETE</code> method requires the user to extend the URL with the ID of the Facility they want to delete.</p>\n","urlObject":{"protocol":"https","path":["facilities","{{facility-id}}"],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"4107a500-8345-4a6f-b653-4641733696ce","name":"Facilities","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/facilities/{{facility-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Delete successful.\"\n}"}],"_postman_id":"a1abcf68-7228-4ec2-9eba-426de51d9e31"}],"id":"aa125586-b5e7-40b1-80bb-223025ff5af2","description":"<p>Methods: <code>GET</code>, <code>POST</code>, <code>PATCH</code>, <code>DELETE</code></p>\n<p>Note: Deleting a facility will return 75% of the construction costs to your reserves, provided there is available storage capacity.</p>\n<p>Note: Use the <code>PATCH</code> request to repair damaged facilities, provided you have the necessary resources, which cost 25% of the original construction cost.</p>\n","_postman_id":"aa125586-b5e7-40b1-80bb-223025ff5af2"},{"name":"Vehicles","item":[{"name":"Vehicles","id":"5401bf31-a4e3-4d50-afe5-9ed19df88d9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/vehicles/","urlObject":{"protocol":"https","path":["vehicles",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"b7fcd004-9bd4-468e-828c-9063e1bfcb91","name":"Vehicles","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/vehicles/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"vehicles\": [\n        {\n            \"id\": 1,\n            \"name\": \"Rover Alpha\",\n            \"type\": \"Rover\",\n            \"status\": \"Awaiting Deployment\",\n            \"built\": \"2022-07-12 20:35:17.421291+00:00\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Drone Beta\",\n            \"type\": \"Drone\",\n            \"status\": \"Awaiting Deployment\",\n            \"built\": \"2022-07-12 20:35:26.074460+00:00\"\n        }\n    ]\n}"}],"_postman_id":"5401bf31-a4e3-4d50-afe5-9ed19df88d9b"},{"name":"Vehicles","id":"0e8a4587-03e1-4bf6-92f6-07585c6618b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Rover Alpha\",\n    \"type\": \"Rover\"\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/vehicles/","description":"<p>Required fields:</p>\n<ul>\n<li>name</li>\n<li>type</li>\n</ul>\n","urlObject":{"protocol":"https","path":["vehicles",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"10ea8173-7783-44c9-b398-f65c73dd4106","name":"Vehicles","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Red Rover\",\n    \"type\": \"Rover\"\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/vehicles/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 14,\n    \"name\": \"Rover Alpha\",\n    \"type\": \"Rover\",\n    \"status\": \"Awaiting Deployment\",\n    \"built\": \"2022-07-12 20:38:33.364883+00:00\"\n}"}],"_postman_id":"0e8a4587-03e1-4bf6-92f6-07585c6618b9"},{"name":"Vehicles","id":"bb1ea1e6-7237-463a-b94a-02339925c10f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 12,\n    \"name\": \"Better Rover Name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/vehicles/","description":"<p>Either <code>name</code> or <code>status</code> is required to be in the body.</p>\n","urlObject":{"protocol":"https","path":["vehicles",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"1f873dc3-0065-4395-91bf-413b40a6fbb0","name":"Vehicles","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 12,\n    \"name\": \"Better Rover Name\"\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/vehicles/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 12,\n    \"name\": \"Better Rover Name\",\n    \"type\": \"Rover\",\n    \"status\": \"Awaiting Deployment\",\n    \"built\": \"2022-07-12 20:35:17.421291+00:00\"\n}"}],"_postman_id":"bb1ea1e6-7237-463a-b94a-02339925c10f"},{"name":"Vehicles","id":"5e238799-1839-4169-98a4-e7fab882be11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/vehicles/{{vehicle-id}}","urlObject":{"protocol":"https","path":["vehicles","{{vehicle-id}}"],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"b73f87e9-02b0-4454-b774-a18a1e73be6d","name":"Vehicles","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/vehicles/{{vehicle-id}}"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Delete successful.\"\n}"}],"_postman_id":"5e238799-1839-4169-98a4-e7fab882be11"}],"id":"bd634499-1ae5-410f-be7b-9e02001c86ce","description":"<p>Methods: <code>GET</code>, <code>POST</code>, <code>PATCH</code>, <code>DELETE</code></p>\n<p>Note: You must build a <code>Vehicle Assembly Plant</code> before building any vehicles.</p>\n<p>Note: Deleting a vehicle will return 50% of the construction costs to your reserves, provided there is available storage capacity.</p>\n<p>Note: Use the <code>PATCH</code> request to repair damaged vehicles, provided you have the necessary resources, which cost 25% of the original construction cost.</p>\n","_postman_id":"bd634499-1ae5-410f-be7b-9e02001c86ce"},{"name":"Missions","item":[{"name":"Missions","id":"ccbe9bb5-4f94-4ce8-ba91-bf04689a9e45","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/missions/","urlObject":{"protocol":"https","path":["missions",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"d677fa33-a1d6-4557-b856-165d1048e801","name":"Missions","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/missions/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"missions\": [\n        {\n            \"id\": 1,\n            \"type\": \"Asteroid Recovery\",\n            \"vehicle_ids\": [\n                1,\n                2\n            ],\n            \"status\": \"In Progress\",\n            \"started\": \"2022-07-12 20:46:28.080024+00:00\"\n        }\n    ]\n}"}],"_postman_id":"ccbe9bb5-4f94-4ce8-ba91-bf04689a9e45"},{"name":"Missions","id":"28b28a03-df20-44de-b013-02b278cc8f2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\": \"Asteroid Recovery\",\n    \"vehicles\": [1,2]\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/missions/","description":"<p>Required fields:</p>\n<ul>\n<li>type</li>\n<li>vehicles [list of vehicle ids]</li>\n</ul>\n","urlObject":{"protocol":"https","path":["missions",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"d88f9fff-c7df-47db-8e07-479d1613bdda","name":"Missions","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\": \"Asteroid Recovery\",\n    \"vehicles\": [1,2]\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/missions/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 7,\n    \"type\": \"Asteroid Recovery\",\n    \"vehicle_ids\": [\n        1,\n        2\n    ],\n    \"status\": \"In Progress\",\n    \"started\": \"2022-07-12 20:46:28.080024+00:00\"\n}"}],"_postman_id":"28b28a03-df20-44de-b013-02b278cc8f2f"},{"name":"Missions","id":"df03c527-dc7a-42f7-8da3-21ce116c1dcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 7\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/missions/","description":"<p>Required field:</p>\n<ul>\n<li>id</li>\n</ul>\n","urlObject":{"protocol":"https","path":["missions",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"7d17919e-81e9-453e-88a4-bed9b9f2c35b","name":"Missions","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 7\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/missions/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Mission patch successful\"\n}"}],"_postman_id":"df03c527-dc7a-42f7-8da3-21ce116c1dcb"},{"name":"Missions","id":"d5209207-7b9f-4cb6-bd01-37aa8a8d038d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/missions/{{mission-id}}","urlObject":{"protocol":"https","path":["missions","{{mission-id}}"],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"9c6f7472-9cbd-4959-941a-b497e8766465","name":"Missions","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://moonbase-v1.codespan.com/missions/{{mission-id}}"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Mission has been abandoned.\"\n}"}],"_postman_id":"d5209207-7b9f-4cb6-bd01-37aa8a8d038d"}],"id":"09902f64-a58e-4b74-9b1e-aa3fd613a36b","description":"<p>Methods: <code>GET</code>, <code>POST</code>, <code>PATCH</code>, <code>DELETE</code></p>\n<p>Note: Deleting a mission will return the associated vehicles to the <code>AWAITING DEPLOYMENT</code> status.</p>\n<p>Note: Use the <code>PATCH</code> request to resume a delayed mission, provided you have the necessary resources, which costs 15% of the reward.</p>\n","_postman_id":"09902f64-a58e-4b74-9b1e-aa3fd613a36b"},{"name":"Discoveries","item":[{"name":"Discoveries","id":"ab09d991-20a2-46aa-bbb8-bdc8e32cfb49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/discoveries/","urlObject":{"protocol":"https","path":["discoveries",""],"host":["moonbase-v1","codespan","com"],"query":[],"variable":[]}},"response":[{"id":"9b5ed6d9-c955-4b65-9690-bba873113ae7","name":"Discoveries","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"url":"https://moonbase-v1.codespan.com/discoveries/"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"discoveries\": [\n        {\n            \"type\": \"Laser Mining\",\n            \"description\": \"The scientists at your Mining Technology Laboratory have developed a laser mining process\",\n            \"resource_type\": \"ore\",\n            \"resource_bonus\": 0.05,\n            \"discovered\": \"2022-08-03 22:31:00.048883+00:00\"\n        },\n        {\n            \"type\": \"Perovskite Solar Cells\",\n            \"description\": \"The scientists at your Energy Technology Laboratory have developed stable perovskite solar cells\",\n            \"resource_type\": \"energy\",\n            \"resource_bonus\": 0.05,\n            \"discovered\": \"2022-08-03 22:31:12.490923+00:00\"\n        }\n    ]\n}"}],"_postman_id":"ab09d991-20a2-46aa-bbb8-bdc8e32cfb49"}],"id":"c2ffe329-4066-46d6-af17-efe0f808b154","description":"<p>Note: only the <code>GET</code> method is supported.</p>\n<p>Once you build a <code>Mining Technology Laboratory</code> or <code>Energy Technology Laboratory</code> your scientists will get to work and improve the MoonBase's resource gathering efficiency. With each discovery your <code>Energy Research Bonus</code> or <code>Ore Research Bonus</code> will rise, which increases that resources daily output and reward from completed missions!</p>\n","_postman_id":"c2ffe329-4066-46d6-af17-efe0f808b154"}],"event":[{"listen":"prerequest","script":{"id":"0e6101ab-77b2-4328-bdd9-296bed43a054","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7394378e-898c-4363-84de-b80faff1f022","type":"text/javascript","exec":[""]}}]}