Templates

Saved presets for key generation.

Issue the same key batch again in one step, from the panel or the API.

Keep in mind

Who can use it
access_type is all, roles or users; the last two need allowed_roles or allowed_users.
Batches
loopcount issues 1 to 10 keys each time the template is used.

List key templates

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

methodget-key-templates

Your key generation templates.

Body

  • soft_id integer optional

    ID of a software you own; your main software when omitted

  • 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-key-templates"
}

Create key template

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

methodcreate-key-template

Create a generation template.

Body

  • soft_id integer required

    Software ID

  • name string required

    Template name shown in the panel

  • game string required

    Game id

  • duration integer | string required

    Days, a negative number for hours, or lifetime

  • key_type string optional

    APK or INJECTOR

  • max_devices integer optional

    Device limit of each key, default 1

  • loopcount integer optional

    1 to 10, default 1

  • is_single boolean optional

    True or false, single-use key

  • access_type string optional

    All, roles or users

  • allowed_roles array optional

    1 to 5 role IDs (values 1..5), required when access_type=roles

  • allowed_users array optional

    1 to 100 user IDs from this software, required when access_type=users

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-key-template",
    "soft_id": 123,
    "name": "Daily",
    "game": "standoff2",
    "duration": 1,
    "max_devices": 1
}

Delete key template

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

methoddelete-key-template

Delete your template.

Body

  • template_id integer required

    Generation template ID

  • soft_id integer optional

    ID of a software you own; your main software when omitted

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-key-template",
    "template_id": 1
}
Esc