This page is available as Markdown : https://docs.vyse.cloud/automate/the-api.md. Index of all the documentation for AI : https://docs.vyse.cloud/llms.txt (full version: https://docs.vyse.cloud/llms-full.txt).

The API

The v1 API allows a script, application, or AI without MCP to read and modify your Vyse projects. It is versioned: what is listed here does not change without notice.

Bash
curl https://api.vyse.cloud/api/v1/context -H "Authorization: Bearer vyse_..."

The response tells you where you are: your organization, your scopes, and each project with its ID, type, and what you can do there.

JSON
{
  "apiVersion": "v1",
  "key": {"id": "...", "name": "Claude Desktop", "scopes": ["read", "write", "manage"], "restrictedToProjects": []},
  "organization": {"id": "...", "name": "E2E Studio", "slug": "e2e-studio"},
  "projects": [{
    "id": "2b182a39-...",
    "name": "Medieval Pack",
    "type": "JAVA",
    "platforms": ["java", "bedrock"],
    "atlasLayout": "LEGACY",
    "access": {"role": "OWNER", "external": false, "canRead": true, "canWrite": true, "canManage": true}
  }],
  "hints": ["..."]
}

The API lives under https://api.vyse.cloud/api/v1. Each request sends the key, either via:

Plain text
Authorization: Bearer vyse_...
X-Vyse-Api-Key: vyse_...

The front API (/api/... without v1) serves the web application. It is not stable and rejects API keys; the v1 API rejects user sessions. The two do not exchange the same objects: the v1 API has its own formats, organized into three families.

FamilyRoute PrefixFor
Common/api/v1/...Context, projects, tree structure, categories, folders, textures, global search
Java/api/v1/projects/{id}/java/...Blocks, supplies, entities, vanilla blocks of a Java project
Bedrock/api/v1/projects/{id}/bedrock/...Bedrock settings for blocks and supplies
MethodRouteScope
GET/contextread
GET/projectsread
POST/projectsmanage
GET/projects/{projectId}read
GET/projects/{projectId}/treeread
GET/projects/{projectId}/settingsread
PATCH/projects/{projectId}/settingsmanage

The tree structure gives categories, their folders, and the number of assets:

Bash
curl "https://api.vyse.cloud/api/v1/projects/<projectId>/tree" -H "Authorization: Bearer vyse_..."
JSON
{
  "project": {"id": "...", "type": "JAVA"},
  "categories": [{
    "category": {"id": "61e9...", "name": "Furniture", "type": "CUSTOM_PACK"},
    "directories": [
      {"id": "9475...", "name": "Stones", "type": "CUSTOM_BLOCK", "assetCount": 2},
      {"id": "d70a...", "name": "Tables", "type": "FURNITURE", "assetCount": 1}
    ]
  }]
}

Changing a project's configuration (scope manage, role MANAGER):

Bash
curl -X PATCH "https://api.vyse.cloud/api/v1/projects/<projectId>/settings" \
  -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \
  -d '{"activeDefaultPack": false, "glslEmissive": true, "textureExportReference": "SLUG"}'
FieldValues
name3 to 20 characters
activeCustomPack, activeDefaultPackExport the custom pack, the vanilla pack
textureExportReferenceSLUG or UUID: names of exported texture files
serverExportPlatformITEMS_ADDER. NEXO returns 503 while Nexo is disabled.
glslEmissiveEmissive shaders
MethodRouteScope
POST/projects/{projectId}/categorieswrite
GET, PATCH, DELETE/categories/{categoryId}read, write, write
GET, POST/categories/{categoryId}/directoriesread, write
GET, PATCH, DELETE/directories/{directoryId}read, write, write
Bash
curl -X POST "https://api.vyse.cloud/api/v1/categories/<categoryId>/directories" \
  -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \
  -d '{"name": "Tables", "type": "FURNITURE"}'

PATCH renames ({"name": "..."}). DELETE moves the element and its content to the project trash; it can be restored from the application.

MethodRouteScope
GET/projects/{projectId}/textures?objectType=&query=&limit=read
POST/projects/{projectId}/textureswrite
GET/projects/{projectId}/textures/{textureId}?includeContent=trueread
Bash
curl -X POST "https://api.vyse.cloud/api/v1/projects/<projectId>/textures" \
  -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \
  -d '{"slug": "oak_table_top", "objectType": "FURNITURE", "pngBase64": "iVBORw0KGgo..."}'

objectType: BLOCK_CUSTOM (block faces), FURNITURE, ENTITY, ITEM, BLOCK, JAVA_MODEL. Vyse applies the texture with assets of the relevant type; identical content is reused. Max 10 MB.

These routes apply only to JAVA projects. On a Bedrock project, they return 409 with the route to use.

MethodRouteScope
GET/projects/{p}/java/blocks?directoryId=read
POST/projects/{p}/java/directories/{directoryId}/blockswrite
GET, PATCH, DELETE/projects/{p}/java/blocks/{blockId}read, write, write
GET/projects/{p}/java/furniture?directoryId=&includeModel=read
POST/projects/{p}/java/directories/{directoryId}/furniturewrite
GET, PATCH, DELETE/projects/{p}/java/furniture/{furnitureId}read, write, write
GET/projects/{p}/java/entities?directoryId=&includeModel=read
POST/projects/{p}/java/directories/{directoryId}/entitieswrite
GET, PATCH, DELETE/projects/{p}/java/entities/{entityId}read, write, write
GET, POST/projects/{p}/java/vanilla-blocksread, write
GET, PATCH, DELETE/projects/{p}/java/vanilla-blocks/{blockstateId}read, write, write

An asset is created in a folder of the correct type: a block in a CUSTOM_BLOCK folder, otherwise 409. Full examples: Your first block, Your first supply.

Adding a vanilla block to the vanilla pack (category VANILLA_PACK):

Bash
curl -X POST "https://api.vyse.cloud/api/v1/projects/<projectId>/java/vanilla-blocks" \
  -H "Authorization: Bearer vyse_..." -H "Content-Type: application/json" \
  -d '{"blockName": "oak_planks", "categoryId": "<vanillaCategoryId>"}'

When multiple copies of a vanilla block exist, only one provides the exported files: PATCH .../vanilla-blocks/{id} with {"exportSelected": true}.

These routes do not edit models, blockstate rules, or vanilla texture overrides. Use the Vyse interface for these settings; see Organize Vanilla Pack Blocks and Replace a Vanilla Texture.

MethodRouteScope
GET/projects/{p}/bedrock/assets?kind=block|furnitureread
GET, PATCH/projects/{p}/bedrock/assets/{kind}/{assetId}read, write

PATCH accepts exportEnabled, collisionBox, and selectionBox. See Hitboxes.

Don't know which project an asset is in? Search across all your projects at once:

Bash
curl "https://api.vyse.cloud/api/v1/assets?query=stone&kind=BLOCK" -H "Authorization: Bearer vyse_..."
JSON
[{
  "id": "2a8afd05-...",
  "kind": "BLOCK",
  "name": "Polished stone",
  "location": {"projectId": "...", "projectName": "Medieval Pack", "projectType": "JAVA",
               "categoryName": "Furniture", "directoryName": "Stones"},
  "platforms": ["java", "bedrock"],
  "links": {
    "asset": "/api/v1/assets/2a8afd05-...",
    "java": "/api/v1/projects/.../java/blocks/2a8afd05-...",
    "bedrock": "/api/v1/projects/.../bedrock/assets/block/2a8afd05-..."
  }
}]

GET /api/v1/assets/{assetId} locates any block, supply, or entity by its ID alone.

Without saving anything:

RouteInputOutput
POST /tools/java/bbmodel-to-java-model{"bbModel": "..."}{"javaModel": "..."}
POST /tools/java/java-model-to-bbmodel{"javaModel": "...", "textures": {"block/stone": "<png base64>"}}{"bbModel": "...", "missingTextures": []}

All errors have the same format, with a message saying what to fix:

JSON
{"status": 409, "error": "CONFLICT", "message": "Directory d70a... holds FURNITURE assets, not CUSTOM_BLOCK. Create the asset in a CUSTOM_BLOCK directory.", "requestId": "req_...", "timestamp": "..."}

See Errors.

The API · Automate