> For the complete documentation index, see [llms.txt](https://jenyaszf.gitbook.io/mcapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jenyaszf.gitbook.io/mcapi/api/routes.md).

# Routes

List of all routes and their description

#### GET /player/{id}

Returns [player](/mcapi/api/objects/entity/living/player.md) with given [id](/mcapi/api/objects/entity/living/player.md#id)

#### GET /player/{id}/location

Returns [location](/mcapi/api/objects/location.md) of player with given [id](/mcapi/api/objects/entity/living/player.md#id)

#### POST /player/{selector}/send

Sends message to [players](/mcapi/api/objects/entity/living/player.md) by given [selector](/mcapi/api/objects/entity/living/player.md#selector)

#### PUT /player/{selector}/ban

Bans [players](/mcapi/api/objects/entity/living/player.md) by given [selector](/mcapi/api/objects/entity/living/player.md#selector). Reason of ban describes in body

#### DELETE /player/{selector}/kick

Kicks [players](/mcapi/api/objects/entity/living/player.md) by given [selector](/mcapi/api/objects/entity/living/player.md#selector). Reason of kick describes in body

#### DELETE /player/{selector}/kill

Kills [players](/mcapi/api/objects/entity/living/player.md) by given [selector](/mcapi/api/objects/entity/living/player.md#selector)

#### GET /player/{id}/inventory

Returns [inventory object](/mcapi/api/objects/inventory.md) of [player](/mcapi/api/objects/entity/living/player.md) with given [id](/mcapi/api/objects/entity/living/player.md#id)

#### GET /player/{id}/inventory/{item}

Returns [item](/mcapi/api/objects/inventory/item_stack.md) from [inventory](/mcapi/api/objects/inventory.md) of [player](/mcapi/api/objects/entity/living/player.md) with given [id](/mcapi/api/objects/entity/living/player.md#id)

#### POST /player/{id}/link

Sends request to [player](/mcapi/api/objects/entity/living/player.md) to link with him. Link request describes in body

#### GET /players/list

Returns array of uuids of all online [players](/mcapi/api/objects/entity/living/player.md)

#### GET /offline/{id}

Returns [offline player](/mcapi/api/objects/offline_player.md) with given [id](/mcapi/api/objects/offline_player.md#id)

#### PUT /offline/{selector}/ban

Bans [offline players](/mcapi/api/objects/offline_player.md) by given [selector](/mcapi/api/objects/offline_player.md#selector). Reason of ban describes in body

#### GET /bot/{selector}/linked

Returns [bot](/mcapi/api/objects/bot.md) links by given [selector](/mcapi/api/objects/bot.md#selector)

#### GET /bot/{selector}/permission/{permission}

Returns [bot](/mcapi/api/objects/bot.md) global permission

#### GET /bot/{selector}/permission/{permission}/{target}

Returns [bot](/mcapi/api/objects/bot.md) target permission

#### POST /command

Creates [bot](/mcapi/api/objects/bot.md) command. Command describes in body

#### DELETE /command/{name}

Deletes [bot](/mcapi/api/objects/bot.md) command with given path (Spaces replaced by '\_')

#### GET /world/{id}

Returns [world](/mcapi/api/objects/world.md) with given [id](/mcapi/api/objects/world.md#id)

#### GET /world/{id}/block/{x}/{y}/{z}

Returns [block](/mcapi/api/objects/block.md) with given coordinates from [world](/mcapi/api/objects/world.md) with given [id](/mcapi/api/objects/world.md#id)

#### GET /world/{id}/block/{x}/{y}/{z}/data

Returns block data with given coordinates from [world](/mcapi/api/objects/world.md) with given id

#### GET /world/{id}/block/{x}/{y}/{z}/data/inventory

Returns [inventory](/mcapi/api/objects/inventory.md) object of [block](/mcapi/api/objects/block.md) with given coordinates from [world](/mcapi/api/objects/world.md) with given id

#### GET /world/{id}/block/{x}/{y}/{z}/data/inventory/{item}

Returns [item](/mcapi/api/objects/inventory/item_stack.md) from [inventory](/mcapi/api/objects/inventory.md) of [block](/mcapi/api/objects/block.md) with given coordinates from [world](/mcapi/api/objects/world.md) with given id

#### PUT /world/{id}/block/{x}/{y}/{z}/data/{name}

Sets field with given name of block data with given coordinates from [world](/mcapi/api/objects/world.md) with given id

#### GET /player/{id}/ender

Returns ender chest [inventory](/mcapi/api/objects/inventory.md) of [player](/mcapi/api/objects/entity/living/player.md) with given [id](/mcapi/api/objects/entity/living/player.md#id)

#### GET /player/{id}/ender/{item}

Returns [item](/mcapi/api/objects/inventory/item_stack.md) from ender chest of [player](/mcapi/api/objects/entity/living/player.md) with given [id](/mcapi/api/objects/entity/living/player.md#id)

#### GET /entity/{id}

Returns entity with given id

#### PUT /entity/{id}/capture

Captures entity with given id

#### PUT /player/{selector}/inventory/open

Opens [inventory](/mcapi/api/objects/inventory.md) for player by given selector. Inventory is described in body

#### DELETE /player/{selector}/inventory/close

Closes [inventory](/mcapi/api/objects/inventory.md) for player by given selector
