Skip to content
SoulFire LogoSoulFire

Get bot world map

GET
/v1/instances/{instance_id}/bots/{bot_id}/world-map

Samples loaded terrain and optional entity overlays for top-down viewers.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

instance_id*string
Formatuuid
bot_id*string
Formatuuid

Query Parameters

center_x?|

Center coordinates. Each defaults to the bot's current block position.

center_z?|null
radius?integer

Radius in blocks. Defaults to 64 and is clamped to 1-256.

Formatint32
sample_step?integer

Distance between sampled columns. Defaults to 1 and is clamped to 1-16.

Formatint32
include_entities?boolean

Include nearby entity overlays in the returned snapshot.

Response Body

A bounded, rectangular top-down world sample.

application/json
  1. response

A bounded, rectangular top-down world sample.

dimension*string
centerX*integer
Formatint32
centerZ*integer
Formatint32
radius*integer
Formatint32
sampleStep*integer
Formatint32
minY*integer
Formatint32
maxY*integer
Formatint32
worldRevision*string
Match^-?(0|[1-9][0-9]*)$
sampledAt*string
Formatdate-time
columns?array<>
entities?array<>
Example Request
curl -X GET 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/bots/497f6eca-6276-4993-bfeb-53cbbbba6f08/world-map'
Example Response
{
  "dimension": "string",
  "centerX": 0,
  "centerZ": 0,
  "radius": 0,
  "sampleStep": 0,
  "minY": 0,
  "maxY": 0,
  "worldRevision": "string",
  "sampledAt": "2019-08-24T14:15:22Z",
  "columns": [
    {
      "x": 0,
      "z": 0,
      "loaded": true,
      "surfaceY": 0,
      "blockId": "string",
      "biomeId": "string",
      "skyLight": 0,
      "blockLight": 0
    }
  ],
  "entities": [
    {
      "entityId": "string",
      "entityType": "string",
      "displayName": "string",
      "x": 0.1,
      "y": 0.1,
      "z": 0.1,
      "yaw": 0.1
    }
  ]
}

Was this page helpful?