Quick start
Create a secret key and make your first Developer API call.
You need a Vizbl account and a terminal. The examples come in cURL, Node.js 18 or later (built-in fetch) and Python 3 with requests. Pick a language once: these guides remember it.
Create a secret key
Sign in at core-ar.vizbl.com, open Settings → API Keys and choose Create secret key. Under Access, a new key gets the Models group: it is enough for the first call of this guide.
The key starts with sk_live_ and is shown in full only once, when you create it. Copy it now. If you lose it, create a new one. API keys covers access, storage and rotation.
Put the key in an environment variable
export VIZBL_API_KEY="sk_live_…"The examples read the key from VIZBL_API_KEY. Keep it out of your source code and out of anything a browser loads.
List your 3D objects
GET /developer-api/objects returns the objects of your account, a page at a time. It only reads, and costs nothing.
curl https://api.vizbl.com/developer-api/objects \
-H "Authorization: Bearer $VIZBL_API_KEY"Each object has a tinuuid, the id you pass to the other object endpoints, and a url, its public showcase page. To get the next page, see Pagination.
A 401 means the key is missing or wrong. See Authentication.
Read your account
GET /developer-api/account returns your company, the key you called with, your token balance and your subscriptions. It needs the Account and analytics group under Access, which a new key doesn't get unless you choose it. Without it, the call returns 403.
curl https://api.vizbl.com/developer-api/account \
-H "Authorization: Bearer $VIZBL_API_KEY"The response has this shape, shortened here:
{
"company": { "company_id": "…", "name": "…" /* … */ },
"key": {
"product_type": "core-ar", // the product the key was created in
"scopes": [/* … */], // what the key may do
"all_products": true, // works with every product of the account
"products": []
},
"balance": { "remaining": 1200, "reserved": 0 }, // tokens
"subscriptions": [/* plans with their limits */]
}What a key may do lists every group and the endpoints it opens.