API reference

Every Jetweb product exposes a versioned REST API with bearer-token authentication. Base URLs and endpoint lists below.

Authentication

Every API endpoint requires a Bearer token. Generate one in the dashboard under "API Keys" for the relevant product. Keep tokens server-side — never commit them to public repositories or ship them in frontend bundles.

http
Authorization: Bearer YOUR_API_KEY

Image Optimizer

Base URL: https://image-optimizer.api.jetweb.app

POST
/api/optimize
Optimize a single image. Accepts url, format (webp/avif), quality (1–100), and optional width/height.
GET
/api/history
List recently optimized images for the authenticated account.
GET
/api/usage
Returns the current usage quota and remaining allowance for the authenticated account.
GET
/api/cdn/:domain/:path
Fetch an optimized asset directly from the CDN. Useful for testing; production clients should embed the returned CDN URL.

Translate

Base URL: https://translate.api.jetweb.app

POST
/api/translate
Translate a single string. Accepts text, target_lang, and optional source_lang + glossary_id.
POST
/api/translate/batch
Translate up to 500 strings in a single request. Recommended for page-scale sync jobs.
GET
/api/languages
List all supported languages with their ISO codes and display names.
GET
/api/usage
Returns the current usage quota and remaining allowance for the authenticated account.

Backup Vault

Base URL: https://backup.api.jetweb.app

POST
/api/backups
Start a new backup job. Accepts site_url, include_db, include_files.
GET
/api/backups
List existing backups for the account.
POST
/api/backups/:id/restore
Restore a backup by its id to the original site or a new destination.
DELETE
/api/backups/:id
Delete a backup permanently from cold storage.
GET
/api/usage
Returns the current usage quota and remaining allowance for the authenticated account.

Live Chat Widget

Base URL: https://livechat.api.jetweb.app

GET
/api/conversations
List open and recent conversations for the authenticated agent account.
POST
/api/conversations/:id/messages
Send an agent message into an active conversation. Messages are translated to the visitor locale.
GET
/api/agents
List agents on the team with their online status.
POST
/api/tickets
Create a ticket from an offline chat or an external channel (email, WhatsApp).

Ad Radar

Base URL: https://adradar.api.jetweb.app

POST
/api/projects
Create a new tracking project.
GET
/api/projects/:id/ads
List the active ads currently running for a project, across all supported platforms.
POST
/api/scans
Trigger an on-demand scan for a project.
GET
/api/insights
Return AI-generated insights about spend efficiency, creative fatigue, and competitive gaps.