Galya Docs
API referencevisualize

Mint a short-lived embed token for the 3D index visualization

GET
/visualize

Authenticated with X-API-Key. Returns a signed token and optional embed_url for the Cloudflare Pages visualization app. Omit both entity_ids and cluster_ids to visualize the full workspace catalog (clusters from Convex sdkCatalogEntities.tasteAffinities, capped server-side). Optional cluster_ids narrows to those clusters; optional entity_ids filters catalog entities. Graph JSON is loaded via Convex (not Turbopuffer layout). Requires GALYA_VISUALIZE_TOKEN_SECRET; optional GALYA_VISUALIZE_PAGES_URL for embed_url. Graph fetch uses CONVEX_URL + GALYA_WORKER_AUTH_SECRET.

Authorization

ApiKeyAuth
X-API-Key<token>

In: header

Query Parameters

entity_ids?string

Optional comma-separated catalog entity ids (subset filter).

cluster_ids?string

Optional comma-separated cluster ids to scope the view.

ttl_sec?integer

Token lifetime in seconds (60–3600, default 900).

Range60 <= value <= 3600

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/visualize"
{
  "token": "string",
  "embed_url": "string",
  "expires_at": "2019-08-24T14:15:22Z",
  "ttl_sec": 0,
  "entity_ids": [
    "string"
  ],
  "cluster_ids": [
    "string"
  ]
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}