Software

Read, create, update and delete your software.

Covers every software the account owns: Connect messages, prices, key format and switches.

Keep in mind

status is yours, soft_status is not
status switches Connect on and off. soft_status is set by the platform and cannot be changed through the API.
Two sets of texts
err_* fields are the Connect messages, test_err_* the ones for Test Connect.

List software

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

methodget-softs

List every software you own.

Body

  • q string optional

    Substring search

  • limit integer optional

    Number of records to return, 1..200, default 50

  • offset integer optional

    Number of records to skip for pagination

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-softs"
}

Get software

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

methodget-soft

Get software details by ID.

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-soft",
    "soft_id": 123
}

Update software

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

methodedit-soft

Update software fields (allowed fields listed below).

Body

  • soft_id integer required

    ID of a software you own

  • name string optional

    Software name, up to 100 characters: Latin letters, digits, spaces, underscores and hyphens. A current name outside this rule still saves while it stays unchanged

  • key_format string optional

    For example {NAME}-{DURATION}-{RANDOM:8}

  • status optional

    1 turns Connect on, 0 turns it off and answers with status_reason

  • status_reason string optional

    Offline message

  • price object optional

    Object {duration_code: price}

  • hwid_reset_limit integer optional

    HWID resets allowed per key: -1 for unlimited, or 0 to 1000

  • err_key_not_found string optional

    Connect text for a key that does not exist

  • err_key_on_pause string optional

    Connect text for a paused key

  • err_key_blocked string optional

    Connect text for a blocked key

  • err_expire_key string optional

    Connect text for an expired key

  • err_device_max_slots string optional

    Connect text for a key whose device slots are all taken

  • test_err_key_not_found string optional

    Test Connect text for a key that does not exist

  • test_err_key_on_pause string optional

    Test Connect text for a paused key

  • test_err_key_blocked string optional

    Test Connect text for a blocked key

  • test_err_expire_key string optional

    Test Connect text for an expired key

  • test_err_device_max_slots string optional

    Test Connect text for a key whose device slots are all taken

  • emulator_response string optional

    Main Connect: disabled, success or a supported emulated error code

  • test_emulator_response string optional

    Test Connect: disabled, success or a supported emulated error code

  • test_connect_enabled boolean optional

    0 or 1. When 0, Test Connect returns 404

  • template_auto_generate boolean optional

    1 issues keys from the default template automatically, 0 turns that off

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-soft",
    "soft_id": 123,
    "name": "MyCheat",
    "err_key_blocked": "Your key is blocked.",
    "test_err_key_blocked": "Test key is blocked."
}

Create software

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

methodcreate-soft

Create extra software. Needs the right from the panel owner; the limit counts software you created.

Body

  • name string required

    1-100 characters: Latin letters, numbers, spaces, _ and -

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": "create-soft",
    "name": "My Second Mod"
}

Delete software

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

methoddelete-soft

Delete software you created. It must be empty: no keys, accounts, domains or files.

Body

  • soft_id integer required

    ID of software you created

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-soft",
    "soft_id": 124
}

Reset software hash

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

methodreset-soft-hash

Generate a new software hash.

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": "reset-soft-hash",
    "soft_id": 123
}
Esc