Bulk operations

Change or remove many keys of one software in a single call.

Each action changes every key that matches the filter and answers with the count.

Keep in mind

Filters
Pass an optional filter object with game, key_type, active and status to narrow the keys.
Extending
Only activated, time-limited keys move. Unused and lifetime keys are skipped, paused keys stay paused.
Deleting everything
delete-keys with kind=all also needs confirm=I_KNOW_WHAT_I_AM_DOING.

Reset keys HWID

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

methodreset-keys-hwid

Reset devices for all matching keys.

Body

  • soft_id integer required

    ID of a software you own

  • filter object optional

    Object {game?, key_type?, active?, status?}

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-keys-hwid",
    "soft_id": 123,
    "filter": {
        "game": "standoff2"
    }
}

Pause keys

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

methodpause-keys

Pause matching keys (active=0).

Body

  • soft_id integer required

    ID of a software you own

  • filter object optional

    The same filter object as reset-keys-hwid

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": "pause-keys",
    "soft_id": 123,
    "filter": {
        "game": "standoff2"
    }
}

Resume keys

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

methodresume-keys

Resume matching keys (active=1).

Body

  • soft_id integer required

    ID of a software you own

  • filter object optional

    Object {game?, key_type?, active?, status?}

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": "resume-keys",
    "soft_id": 123,
    "filter": {
        "game": "standoff2"
    }
}

Extend keys

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

methodextend-keys

Add or subtract days from activated, time-limited keys. Paused keys stay paused. Unactivated and lifetime keys are skipped.

Body

  • soft_id integer required

    ID of a software you own

  • days integer required

    -3650 to 3650, excluding zero

  • filter object optional

    The same filter object as reset-keys-hwid

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": "extend-keys",
    "soft_id": 123,
    "days": 7,
    "filter": {
        "game": "standoff2"
    }
}

Delete keys

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

methoddelete-keys

Delete matching keys. kind=all requires confirm.

Body

  • soft_id integer required

    ID of a software you own

  • kind string required

    Expired, blocked, inactive, unused or all

  • confirm string optional

    Required only for kind=all, value I_KNOW_WHAT_I_AM_DOING

  • filter object optional

    Object {game?, key_type?, active?, status?}, applied on top of kind

Errors it can return

Deleting every key

kind=all removes every key of the software and needs confirm=I_KNOW_WHAT_I_AM_DOING. It cannot be undone.

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-keys",
    "soft_id": 123,
    "kind": "expired"
}

Block keys

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

methodblock-keys

Block matching keys (status=0). Blocked keys are refused by Connect.

Body

  • soft_id integer required

    ID of a software you own

  • filter object optional

    Same structure as above

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": "block-keys",
    "soft_id": 123,
    "filter": {
        "game": "standoff2"
    }
}

Unblock keys

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

methodunblock-keys

Unblock matching keys (status=1).

Body

  • soft_id integer required

    ID of a software you own

  • filter object optional

    Same structure as above

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": "unblock-keys",
    "soft_id": 123,
    "filter": {
        "game": "standoff2"
    }
}
Esc