Online System and files

Mod feature switches, floating text and Online Lib files.

Running mods read these values on their next key check.

Keep in mind

Get online

POST https://dev.mod.wtf/api/v2/action

methodget-online

Read the Online System: mod feature switches, mod name, status and floating text.

Body

  • soft_id integer required

    ID of a software you own

Errors it can return

POST /api/v2/action HTTP/1.1
Host: dev.mod.wtf
Content-Type: application/json
Accept: application/json

{
    "api_key": "YOUR_API_KEY",
    "method": "get-online",
    "soft_id": 123
}

Update online

POST https://dev.mod.wtf/api/v2/action

methodedit-online

Change Online System values. Send only what changes; running mods get them on the next check.

Body

  • soft_id integer required

    ID of a software you own

  • features object optional

    Object of esp, items, aim, silent_aim, bullet_track, memory, floating, settings: booleans

  • mod_name optional

    String

  • mod_status string optional

    Safe or High

  • floating_text optional

    String

Errors it can return

POST /api/v2/action HTTP/1.1
Host: dev.mod.wtf
Content-Type: application/json
Accept: application/json

{
    "api_key": "YOUR_API_KEY",
    "method": "edit-online",
    "soft_id": 123,
    "features": {
        "esp": false
    },
    "mod_status": "Safe"
}

List files

POST https://dev.mod.wtf/api/v2/action

methodget-files

List Online Lib files of a software with their public links.

Body

  • soft_id integer required

    ID of a software you own

Errors it can return

POST /api/v2/action HTTP/1.1
Host: dev.mod.wtf
Content-Type: application/json
Accept: application/json

{
    "api_key": "YOUR_API_KEY",
    "method": "get-files",
    "soft_id": 123
}

Upload files

POST https://dev.mod.wtf/api/v2/action

methodupload-files

Upload library files. Send multipart/form-data with the method in the query string: POST /api/v2/action?method=upload-files. Up to 10 files and 14 MB per upload.

Body

  • soft_id integer required

    ID of a software you own

  • files[] required

    .so, .a, .dll, .dylib or .lib files

  • version string optional

    Up to 32 characters

Errors it can return

POST /api/v2/action HTTP/1.1
Host: dev.mod.wtf
Content-Type: application/json
Accept: application/json

{
    "api_key": "YOUR_API_KEY",
    "method": "upload-files",
    "soft_id": 123,
    "version": "1.0.0"
}

Rename file

POST https://dev.mod.wtf/api/v2/action

methodrename-file

Change the public link name of a file. Old links keep working.

Body

  • soft_id integer required

    ID of a software you own

  • token string required

    File token from get-files

  • link string required

    New file name

Errors it can return

POST /api/v2/action HTTP/1.1
Host: dev.mod.wtf
Content-Type: application/json
Accept: application/json

{
    "api_key": "YOUR_API_KEY",
    "method": "rename-file",
    "soft_id": 123,
    "token": "<TOKEN>",
    "link": "libmod-v2.so"
}

Replace file

POST https://dev.mod.wtf/api/v2/action

methodreplace-file

Replace a file. Send multipart/form-data with the method in the query string: POST /api/v2/action?method=replace-file. Its links keep working.

Body

  • soft_id integer required

    ID of a software you own

  • token string required

    File token from get-files

  • file required

    The new file

  • version string optional

    Up to 32 characters

Errors it can return

POST /api/v2/action HTTP/1.1
Host: dev.mod.wtf
Content-Type: application/json
Accept: application/json

{
    "api_key": "YOUR_API_KEY",
    "method": "replace-file",
    "soft_id": 123,
    "token": "<TOKEN>",
    "version": "1.0.1"
}

Delete file

POST https://dev.mod.wtf/api/v2/action

methoddelete-file

Delete one file, or every file of the software with all=true. Their links stop working.

Body

  • soft_id integer required

    ID of a software you own

  • token string optional

    File token from get-files

  • all optional

    Boolean

Errors it can return

POST /api/v2/action HTTP/1.1
Host: dev.mod.wtf
Content-Type: application/json
Accept: application/json

{
    "api_key": "YOUR_API_KEY",
    "method": "delete-file",
    "soft_id": 123,
    "token": "<TOKEN>"
}
Esc