---
title: "Executes an allowlisted chat command in the minecraft mod of the authenticated user. Requires a google login or an api key. Without a booster cookie `/bz item` becomes a queued bazaar search."
method: POST
path: "/api/mod/execute"
tags: ["ModBridge"]
---

# Executes an allowlisted chat command in the minecraft mod of the authenticated user. Requires a google login or an api key. Without a booster cookie \`/bz item\` becomes a queued bazaar search.

`POST /api/mod/execute`

## Request

- Base URL: `https://sky.coflnet.com` (the document declares no server; this is the origin it was published from)
- URL: `https://sky.coflnet.com/api/mod/execute`
- Auth: none declared

## Request body

- ModExecuteRequest: Request to run a command in the mod
  - `command` string, nullable: The chat command, e.g. `/bz Enchanted Diamond`. Only a small allowlist is accepted.

## Response `200`

OK

- ModExecuteResponse: Result of a remote command execution
  - `executed` boolean, required: True if at least one mod session received the command
  - `receivers` integer, required: Number of receiving servers
  - `command` string, nullable: The command that was sent (may differ from the requested one, see fallback)
  - `fallback` string, nullable: `no_cookie_pending_search` when /bz was replaced by a queued search, `not_connected` when no mod session is online

## Changes

- **2026-10-14** `886696623fe1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coflnet/apis/skyapi/changes/api/mod/execute/post.md)

---

[API](https://skmtc.dev/coflnet/apis/skyapi.md) - [All operations](https://skmtc.dev/coflnet/apis/skyapi/llms.txt) - [OpenAPI document](https://skmtc.dev/coflnet/apis/skyapi/revisions/c787372dc7a2?raw)
