Skip to main content

Tenbyte API Overview

The Tenbyte API provides a single, developer-friendly interface to manage Cloud, CDN, Vidinfra, and Image Optimization services. You can use it to automate infrastructure, media pipelines, and delivery with predictable, REST-based endpoints.

🌍 Base URL

All API requests use the same base URL:
https://api.tenbyte.io/v1/
Each service has its own subpath:
ServiceBase PathExample
CDN/cdnhttps://api.tenbyte.io/v1/cdn/distributions
Vidinfra/vidinfrahttps://api.tenbyte.io/v1/vidinfra/videos
Cloud/cloudhttps://api.tenbyte.io/v1/cloud/instances

πŸ” Authentication

Tenbyte APIs use Bearer Token Authentication to authorize requests. Every API call must include an Authorization header containing your API key. You can generate and manage API keys in your Tenbyte Console β†’ Organization β†’ API Keys.

πŸͺͺ Example Authorization Header

-H "Authorization: Bearer YOUR_API_KEY"
curl -X GET https://api.tenbyte.io/v1/cdn/distributions \
  -H "Authorization: Bearer sk_live_1234567890abcdef"

🧱 Authentication Errors

HTTP CodeErrorDescription
401unauthorizedAPI key is missing, expired, or invalid.
403forbiddenThe provided API key does not have access to the requested resource.
429rate_limitedToo many requests have been sent with this key. Wait before retrying.

⚠️ Important

  • Never expose your API keys in public repositories, client-side code, or browser environments.
  • Always store API keys securely using environment variables or your platform’s secret manager.
  • Rotate keys periodically and immediately revoke compromised keys.
  • If you need multiple environments (e.g., staging, production), create separate API keys for each.
  • Monitor key activity in the Tenbyte Console β†’ API Logs to detect unauthorized usage.

🧩 Pagination

Tenbyte API responses for list endpoints are paginated to help manage large data sets efficiently. Use query parameters to control the number of items per page and navigate between pages.
ParameterDescriptionExample
limitNumber of results per page?limit=20
pagePage number to retrieve?page=2

🧠 Example Request

GET https://api.tenbyte.io/v1/libraries?limit=20&page=1 \
  -H "Authorization: Bearer $TENBYTE_API_KEY"