Skip to Content

Overview

Work with your Vizbl account from your own server over HTTP.

The Vizbl Developer API is the HTTP API your server calls to work with your Vizbl account. With it you can:

  • upload 3D files and import them as objects, then edit, publish and activate them;
  • turn photos into 3D models with generations, and rug photos into 3D rugs;
  • manage kits of rugs and flooring and the rooms your widgets show;
  • read the account: plans, token balance, prices, usage, invoices and widget analytics, and pay for tokens and plans;
  • create publishable keys for widgets and set the allowed domains they may run on;
  • invite your team, work with the products of your linked Shopify store and of your connected stores, and send requests to the Vizbl team.
Base URLhttps://api.vizbl.com
FormatJSON requests and responses
AuthenticationAuthorization: Bearer <secret key>, see Authentication
OpenAPI spechttps://api.vizbl.com/developer-api/docs-json

Every path starts with /developer-api, for example GET https://api.vizbl.com/developer-api/account.

Start here

Guides

Reference

Every endpoint has its own page with its parameters, its responses and code to call it in cURL, JavaScript and Python. You can also send a request right from the page.

Errors

An error responds with a 4xx or 5xx status and a JSON body:

{
  "status": 401,
  "code": "…",
  "error": ["…"]
}

code is a machine-readable id of the error, and http_error.<status> when there is no specific one. Branch on status and code, not on the text in error.

Some errors carry one more field:

FieldWhenMeaning
retryAfterSecondsSome 429 errors, such as the upload quotaHow many seconds to wait before you retry.
manage_urlsubscription.ERROR_PAYMENTS_THROUGH_SHOPIFY_APPYour account pays through the Vizbl app in Shopify: open this page of the Shopify admin to pay there.

A generation answers 402 in two cases: model-gen.ERROR_INSUFFICIENT_TOKENS when the balance is short, and model-gen.ERROR_STARTER_LIMIT_REACHED when the starter generations are used up and the account has not topped up yet.

On this page