Public
Documentation Settings

Medieval Engineers API

API to view and manage a Medieval Engineers server.

For requests that need authorization follow my guide at https://forum.keenswh.com/threads/solved-making-post-requests-with-the-remote-api.7402451/#post-1287103184

If you want to use Postman, set your Pre-request script for the collection to:

Plain Text
const moment = require('moment')

const secret = CryptoJS.enc.Base64.parse(pm.environment.get("api_key"));
const date = `${moment.utc().format('ddd, DD MMM YYYY HH:mm:ss')} GMT`;

const generateNonce = (length) => {
    let text = "";
    const possible = "0123456789";
    for(let i = 0; i < length; i++) {
        text += possible.charAt(Math.floor(Math.random() * possible.length));
    }
    return text;
}

const url = request.url.slice(34);
const route = '/vrageremote/v1/session/gamechat';
const nonce = generateNonce(9);
const message = `${route}\r\n${nonce}\r\n${date}\r\n`;
const hash = CryptoJS.enc.Base64.stringify(CryptoJS.HmacSHA1(message, secret));

pm.environment.set("date", date);
pm.environment.set("nonce", nonce);
pm.environment.set("hash", hash);

You will also have to create an environment and set the following environment variables

Environment variables:

domain: Your API address.

port: Your API port.

api_key: Your API key.

Server

GETPing

http://{{domain}}:{{port}}/vrageremote/v1/server/ping

Responds with pong.

HEADERS
Accept

application/json

GETServer

http://{{domain}}:{{port}}/vrageremote/v1/server

Get the server health values.

HEADERS
Accept

application/json

Loading