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 URL | https://api.vizbl.com |
| Format | JSON requests and responses |
| Authentication | Authorization: Bearer <secret key>, see Authentication |
| OpenAPI spec | https://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
Quick start
Create a secret key and make your first call in about two minutes.
Authentication
The Authorization header, what a key may do, and errors.
Node.js SDK
Import 3D models from your Node.js server in one call.
Guides
Async jobs
Start an import or a generation, then poll it until it finishes.
Idempotency
Retry a request without starting the same job twice.
Pagination
Page through lists by page number or by cursor.
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.
Uploads
Upload a 3D file or a photo straight to storage.
Objects
List, read, edit, publish and activate your 3D objects, and get their links.
Object Imports
Turn uploaded 3D files into an object.
Generations
Create 3D models from photos, and rugs from a top-down photo.
Kits
Rugs and flooring with their sizes and colours.
Rooms
The rooms your widgets show a product in.
Account
Plans, token balance, prices, usage, invoices, widget analytics, and billing: payment links, top-ups and subscriptions.
Keys
Publishable keys for widgets and their allowed domains.
Team
Members, roles and invites.
Shopify
The products of your linked store, 3D models on variants, Wall Art and AI Try-On.
Stores
Your connected stores, their catalog and the links that put a 3D model on a product page.
Store Connection
Connect a store and get the key that belongs to it.
Requests
Ask the Vizbl team for a catalog import, a model, help or a quote.
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:
| Field | When | Meaning |
|---|---|---|
retryAfterSeconds | Some 429 errors, such as the upload quota | How many seconds to wait before you retry. |
manage_url | subscription.ERROR_PAYMENTS_THROUGH_SHOPIFY_APP | Your 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.