Authentication
Call the Developer API with a secret key.
Every request carries a secret key in the Authorization header:
curl https://api.vizbl.com/developer-api/objects \
-H "Authorization: Bearer $VIZBL_API_KEY"Secret keys start with sk_live_. Keep yours on your server: API keys shows how to create, store and rotate one.
What a key may do
A key works with every product of your account, or only with the products set for it in Settings → API Keys. Each endpoint also needs a scope on the key. When you create a key, the dashboard offers scopes in groups under Access. A new key gets only the Models group unless you choose more.
| Group under Access | Scope | Endpoints |
|---|---|---|
| Models, given by default | developer:uploads | Uploads |
developer:objects:import | Start an import; edit, publish, unpublish and activate objects; create rugs; edit kits; create and edit rooms | |
developer:objects:read | List and read objects and their links, import jobs, generations and their estimates, kits and their items, rooms | |
developer:objects:delete | Delete objects and rooms | |
| Account and analytics | developer:account:read | Read the account, your publishable keys and allowed domains |
developer:analytics:read | Widget analytics | |
developer:billing:read | Prices, usage, invoices and their PDFs, the billing offer and payment status | |
| Payments and access | developer:billing:checkout | Payment links, top-ups and subscriptions |
developer:keys:write | Create and revoke publishable keys | |
developer:domains:write | Change allowed domains | |
developer:team:read | List members and roles | |
developer:team:write | Send and revoke invites | |
| Shopify | developer:shopify:read | Read your linked Shopify store, its products, Wall Art products and AI Try-On settings |
developer:shopify:write | Put 3D models on variants, turn Wall Art products on and off, change AI Try-On settings | |
| Store products | developer:stores:read | Read your stores, their products and product links |
developer:stores:write | Change store catalogs and product links | |
| Requests | developer:requests:create | Send requests to the Vizbl team |
| Paid generations | developer:generations:create | Start and cancel generations. They spend tokens. |
Store Connection and the /store-connection endpoints of Stores serve connected stores and don't take a key you create in the dashboard.
GET /developer-api/account shows the products and scopes of the key you call it with, in its key field. It needs developer:account:read itself.
Errors
| Status | Meaning |
|---|---|
401 | The key is missing, mistyped or revoked. |
403 | The key is valid but may not do this: a product or scope it lacks, or a publishable key instead of a secret key. |