Connect settings

Request fields, response templates, signature, messages, game profiles, CipherLink and the public page.

Each call works on one endpoint, main or test, and one game profile, default unless profile is sent.

Keep in mind

Get connect

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

methodget-connect

Read the Connect settings of an endpoint and game profile: request fields, response templates, signature, IP guard, CipherLink and messages.

Body

  • soft_id integer required

    ID of a software you own

  • endpoint string optional

    Main or test, default main

  • profile optional

    Game profile ID, default default

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-connect",
    "soft_id": 123,
    "endpoint": "main"
}

Update connect

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

methodedit-connect

Change request fields, templates, signature, IP guard or CipherLink. Send only the fields to change.

Body

  • soft_id integer required

    ID of a software you own

  • endpoint string optional

    Main or test

  • profile optional

    Game profile ID

  • request_game optional

    Field name

  • request_key optional

    Field name

  • request_serial optional

    Field name

  • request_game_enabled optional

    Boolean

  • request_custom_fields optional

    List of field names

  • success_template optional

    Object or JSON string

  • error_template optional

    Object or JSON string

  • signature_enabled optional

    Boolean

  • signature_source optional

    String

  • token_algorithm optional

    String

  • connect_secret optional

    16-128 characters

  • reset_connect_secret optional

    Boolean

  • one_hwid_per_ip boolean optional

    Boolean

  • connect_cipher_enabled optional

    Boolean, needs CipherLink keys

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-connect",
    "soft_id": 123,
    "one_hwid_per_ip": true
}

Update connect messages

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

methodedit-connect-messages

Change the refusal messages of an endpoint and game profile.

Body

  • soft_id integer required

    ID of a software you own

  • endpoint string optional

    Main or test

  • profile optional

    Game profile ID

  • 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

  • ip_device_limit 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-connect-messages",
    "soft_id": 123,
    "err_key_blocked": "Your key is blocked"
}

Create game profile

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

methodcreate-game-profile

Add a game profile with its own fields, templates and messages.

Body

  • soft_id integer required

    ID of a software you own

  • endpoint string optional

    Main or test

  • name string required

    Lowercase letters and numbers

  • value string required

    Value the mod sends in the game field

  • copy_from optional

    Profile to copy, default default

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-game-profile",
    "soft_id": 123,
    "name": "pubg",
    "value": "pubg"
}

Delete game profile

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

methoddelete-game-profile

Delete a game profile.

Body

  • soft_id integer required

    ID of a software you own

  • endpoint string optional

    Main or test

  • profile string required

    Game profile ID

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-game-profile",
    "soft_id": 123,
    "profile": "pubg"
}

Rotate cipher keys

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

methodrotate-cipher-keys

Generate CipherLink keys and turn CipherLink on. Replacing existing keys needs confirm=true; old builds stop passing validation.

Body

  • soft_id integer required

    ID of a software you own

  • endpoint string optional

    Main or test

  • confirm string optional

    Boolean, required when keys exist

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": "rotate-cipher-keys",
    "soft_id": 123
}

Update connect page

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

methodedit-connect-page

Change the public page at the Connect URL. To upload background or music, send multipart/form-data with the method in the query string: POST /api/v2/action?method=edit-connect-page.

Body

  • soft_id integer required

    ID of a software you own

  • endpoint string optional

    Main or test

  • enabled boolean optional

    Boolean

  • title string optional

    Up to 100 characters

  • description optional

    Up to 2000 characters

  • links object optional

    List of {text, url}, up to 10

  • music_loop optional

    Boolean

  • music_volume optional

    0-100

  • background optional

    Image file

  • music optional

    Audio file

  • remove_background optional

    Boolean

  • remove_music 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": "edit-connect-page",
    "soft_id": 123,
    "enabled": true,
    "title": "My mod",
    "links": [
        {
            "text": "Telegram",
            "url": "https://t.me/example"
        }
    ]
}
Esc