Tino Developers
POST/v1/service/@id/waf/zones

Add a website

Adds a website, all or nothing: body apex (main domain), hostnames (subdomains, optional), origins (origin servers). Returns the website, its domain names, the DNS records to set, the origin and warnings.

API v1 · Updated 2026-10-21View .md

Call it through the gateway https://api.tino.vn/v1 with a token that has the waf:write scope; see Calling the Tino API.

Authentication

Send the token in the header Authorization:

Authorization: Bearer <token>

Tokens that can call it: app tokens (tinoat_, Sign in with Tino) or personal API tokens (tinopat_).

Scopes

waf:write

Parameters

Path parameters

NameTypeRequiredDescription
idintRequiredService ID

Body (JSON)

NameTypeRequiredDescription
apexstringRequiredMain domain of the website, e.g. `example.com`.
hostnamesarrayOptionalSubdomains to protect as well, e.g. `["www.example.com"]`.
originsarrayRequiredOrigin servers: `[{address, port, tls_mode}]`, `address` an IP or host name; `tls_mode` is `verify` (HTTPS, certificate checked), `no_verify` (HTTPS, self-signed certificate) or `plain` (HTTP), among `tls_modes` of the origin route.

Response

No live sample: the route changes real data or the test account has no data for it. The answer is a JSON object; errors follow the common shape in Calling the Tino API.

Error codes

Error codeDescription
401 · invalid_tokenThe token is wrong, expired or revoked.
403 · insufficient_scopeThe token lacks the waf:write scope.
403 · ip_not_allowedA personal API token called from an IP outside its allow-list.

Business errors of a route usually come as HTTP 200 with {"error": ["<code>"]}; see common error codes.