Eranio
Color theme

Bridge endpoint

Base: /api/v1

The single endpoint your plugin talks to the panel through: sends the current state and receives waiting actions.

Handler: MinecraftBridgeController
POST /api/v1/hytale/bridge

Send status & fetch actions

The same thing your plugin does on every poll interval: reports player state, whitelist and the results of previously sent actions, and receives up to 20 waiting actions plus the current live status in return.

Request Body

Field Type Required Description
version string No Plugin-Version, z. B. "1.3.0"
paused boolean No "true" oder "false"
game string No "minecraft" oder "hytale"

Response Example

{
  "actions": [
    {
      "group": "sabotage",
      "id": 914,
      "action": "freeze",
      "player": "Steve",
      "params": { "seconds": 10 },
      "viewer": "ChatterName",
      "label": null,
      "show_title": true
    }
  ],
  "display": {
    "live": true,
    "streamer": "ExampleStreamer",
    "platform": "tiktok",
    "url": "https://tiktok.com/@examplestreamer/live",
    "viewers": 342
  }
}

cURL

curl -X POST 'https://your-panel.example/api/v1/hytale/bridge' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"version":"1.4.0","paused":false,"game":"hytale"}'
Important to understand: this is the poll the plugin itself makes. To trigger "action X for player Y" on purpose and see the result, use "Send test action" and "Query test status". Here the plugin only reports its status, and the panel independently decides which actions are already waiting (triggered by a channel point redemption, a TikTok gift, an automation, or the test button in the panel itself) and delivers them on the next poll; in demo mode the button therefore only shows an example of what a response with a waiting action looks like (depending on the "game" field). Under "Your server URL" enter the address of the panel your plugin connects to (the same one as in your config.json), and under "Authorization" your token in the format "Bearer your-token". This call then behaves exactly like a normal poll from your plugin: any waiting actions are marked as "sent" and delivered in this response. Only test live when your server is not currently expecting an action, otherwise your actual plugin will not see that action on its next poll. Note: this test tool always sends the request unencrypted (http) first and does not follow redirects, so against a panel that only accepts encrypted connections (https) you may see just a redirect response here instead of the real data. In that case, use the curl example below.

Internal Behavior

Identical to the Minecraft variant (different endpoint path: /api/v1/hytale/bridge instead of /api/v1/minecraft/bridge, so nothing says "minecraft" anywhere in a Hytale install), plus every returned action includes a "group" field ("sabotage" or empty), which StreamBridge-Hytale uses to color the title display (red/green).

Possible values for "action" in the returned actions (full table with parameters in the "Actions reference" guide):

freeze: freezes the player
root: roots the player to the ground
slow: slows the player
stun: stuns the player
poison: poisons the player
burn: burning effect
stamina_drain: drains stamina
mana_drain: drains mana
regeneration: heals the player over time
stoneskin: grants protection (stoneskin)
immune: temporarily immune to effects
morph: turns the player into an animal
launch: launches the player upward
knockback: knocks the player in a random direction
scale_giant: makes the player giant
scale_tiny: makes the player tiny
random_warp: teleports to a random warp
teleport_back: teleports to the last saved location
random_instance: teleports into a random instance
leave_instance: leaves the current instance
spawn_mob: spawns enemies at the player
animal_rain: rains animals from the sky
night: sets the game time to midnight
day_clear: sets the game time to noon, removes forced weather
weather: forces a specific weather
drop_hand: drops the item from the hotbar
shuffle_hotbar: shuffles the hotbar
half_health: halves the health
heal: fully heals
stamina_refill: refills stamina
antidote: removes all status effects
give_item: gives an item
portal_time_add: increases the remaining portal time
portal_time_remove: decreases the remaining portal time
vulnerable: makes vulnerable
electric_shock: electric shock, briefly stuns
fall_immunity: no fall damage
fire_immunity: no fire damage
dimension_teleport: random safe spot in the same world or dimension
world_spawn: to the spawn point of the current world
teleport_to_player: to another player in the same world
swap_places: swap position with another player
portal_timer_pause: stop the portal timer, resumes afterward
void_hold: hold back the void invasion
camera_topdown: top-down camera
camera_sidescroller: side view, 2D movement only
hide_debug: block the coordinates display
fake_sound: scare sound for the player only
steer: viewer control, walks briefly in a direction (direction, strength)
jump: viewer control, jump
turn: viewer control, turns by degrees
look: viewer control, looks up or down by degrees
hotbar: viewer control, selects hotbar slot
revive: viewer control, revives after death

The answer also contains the field "viewer_control": a list of entries {"player": player name, "kill_radius": 8 to 48}. For these players the plugin removes hostile creatures in the radius. Before every answer the endpoint also resolves running viewer control votes.
POST /api/v1/hytale/bridge/test-action

Send test action

Queues an action for your own server, exactly as if a viewer had triggered it. The plugin picks it up on its next poll and executes it. This lets you check the whole chain: the panel accepts it, the plugin picks it up, the game executes it, the result comes back.

Request Body

Field Type Required Description
action string Yes Action from the catalog
player string Yes Player name (must be online on your server)
params object No Parameters as JSON, prefilled when you choose an action
viewer string No Displayed viewer name, default "API-Test"

Response Example

{
    "id": 1234,
    "status": "pending",
    "action": "spawn_mob",
    "group": "sabotage",
    "player": "Steve",
    "params": {
        "mob": "yeti",
        "count": 1
    },
    "result": null,
    "created_at": "2026-10-14T09:30:00+02:00",
    "sent_at": null,
    "plugin_seen_at": "2026-10-14T09:30:00+02:00"
}

cURL

curl -X POST 'https://your-panel.example/api/v1/hytale/bridge/test-action' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"action":"spawn_mob","player":"Steve","params":{"mob":"yeti","count":1}}'
Demo mode: choose an action (its parameters are prefilled) and a player name, the response shows what the entry would look like; afterwards you can see the result under "Query test status" with the same ID. Own server: enter your panel address and "Bearer your-token" above (the same token as in the plugin configuration), the player must be online. The action is then really executed in the game. Do not call "Send status & fetch actions" at the same time, otherwise you pick up the action instead of your plugin.

Internal Behavior

Checks the token, checks action and player name against the panel action catalog (only actions the plugin executes itself), limits the parameters exactly like real triggers (duration, count, allowed choice values) and creates a queue entry with status "pending". At most 20 test actions per minute.
GET /api/v1/hytale/bridge/test-action/{id}

Query test status

Shows what became of a test action: "pending" (waiting), "sent" (picked up by the plugin), "done" (executed), "failed" (failed, reason in "result", for example "player_offline" or "no_space") or "expired" (not picked up in time).

Parameters

Name Type Required Description
id integer Yes ID from "Send test action"

Response Example

{
    "id": 1234,
    "status": "done",
    "action": "spawn_mob",
    "group": "sabotage",
    "player": "Steve",
    "params": {
        "mob": "yeti",
        "count": 1
    },
    "result": null,
    "created_at": "2026-10-14T09:30:00+02:00",
    "sent_at": "2026-10-14T09:30:01+02:00",
    "plugin_seen_at": "2026-10-14T09:30:02+02:00"
}

cURL

curl 'https://your-panel.example/api/v1/hytale/bridge/test-action/1234' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Enter the ID from "Send test action" under "id". With your own server and token you see the real result from the game here, usually one or two seconds after sending.

Internal Behavior

Only returns entries of your own server. If the plugin does not pick up an entry within 30 seconds or reports no result, it is set to "expired". "plugin_seen_at" shows when the plugin last checked in.