Authentication
Programmatic Zvid API access uses API keys. Include your key in the x-api-key header on API-key compatible endpoints such as render submission, job lookup, profile lookup, credits, and API-key management.
Creating an API Key
Create API keys in the Zvid Dashboard:
- Log in to your Zvid account.
- Open API Access.
- Click Create API Key.
- Enter a descriptive name, such as
Production Server. - Copy the generated key immediately.
Important
The full API key is shown only once. If you lose it, revoke the old key and create a new one.
Using API Keys
Send the API key in the x-api-key header:
curl -X GET https://api.zvid.io/api/user/profile \
-H "x-api-key: zvid_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
const response = await fetch("https://api.zvid.io/api/user/profile", {
headers: {
"x-api-key":
"zvid_1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
},
});
const data = await response.json();
console.log(data);
API Key Format
Zvid API keys use this format:
zvid_<64-character-hexadecimal-string>
zvid_: Zvid production key prefix.64-character-hexadecimal-string: Secret key material usinga-fand0-9.
Security Recommendations
- Store API keys in server-side environment variables or a secrets manager.
- Do not expose API keys in browser code, mobile apps, public repos, logs, or support screenshots.
- Use separate keys for production and development.
- Revoke keys that are unused or suspected to be exposed.
Need Help?
If authentication fails:
- Verify the key value is correct.
- Confirm the header name is exactly
x-api-key. - Check that the key has not been revoked.
- Contact help@zvid.io.