Buying a domain
Not generally available. Domain sales are being built and are not
switched on at api.tori.host: every endpoint on this page answers
503 domain_sales_unavailable there, before any rate limit, so a client can
take it as final; and no domain can be bought yet. This
page describes the parts that exist — the availability check, registrant
contacts, a purchase and the registration that follows it, and the list of the
names an account has bought — as they work on a control plane with domain
sales enabled, and the subscription that renews a registered name.
In the console
Section titled “In the console”Where domain sales are enabled, the console has Domains in its main
navigation, beside Apps; on api.tori.host the entry is not shown.
- Search answers the name you typed and the same label under other TLDs, each with its yearly price, without VAT, or the reason it cannot be bought. Checkout adds the VAT of your country and shows the total before you pay.
- Buy opens a short form: the registrant contact
(choose one, or add one — the
.czidentifiers are offered only for a.czname), the app to connect the name to, with or withoutwww, and, on a plan without custom domains, the plans that include them with their prices, bought in the same checkout. Continue to payment goes to the checkout. - After paying, the checkout returns to the name’s page, which follows the purchase — paid, registered, connected — without a reload, and then shows the expiry date, whether the name renews, its nameservers and the app it connects to with its hostnames. It names any of the name’s hostnames that are not on the app: the plan had no custom domain left for it when the registration completed, or it was removed since. A purchase that fails shows its refund. A purchase whose hold has ended is read as How a purchase ended describes: a checkout that ended unpaid says Tori has no payment recorded for it — a payment taken after the checkout ended is refunded — and a purchase that was paid for but not bought says the payment is refunded, how much, and whether the credit note is out yet. Right after a payment it waits a little for Tori to hear of it before saying anything about a charge, and does not offer the checkout again meanwhile. A purchase this account cannot find is either another account’s — sign in to that one — or one that ended before Tori kept a record of how purchases end; any payment for it is on the invoice in the billing portal. A failed registration shows its refund, how much, and whether the credit note is out yet.
- While a name is held for its checkout, its page offers Continue to
payment, back to the same checkout, until that checkout’s hour runs out
(the page reads it again each time it opens, saying so until that read
succeeds, and checks again while it is open), whenever Tori has the
checkout’s link recorded; while a bank payment settles it says there is
nothing more to pay. A checkout opened before Tori recorded checkout links
has no button even while it can still be paid: asking for the same name
again with
tori domains buy <name>orPOST /api/domains, with the same inputs as the original purchase, returns that same checkout rather than a new one, also when the account already has three purchases open (too_many_pendingcounts the others, not the one asked for again). The same inputs means the same registrant contact (--contact <id>when the account has several,contactIdin the API — it is checked before the open checkout is looked up), the same app andwwwchoice (--app <slug>and--no-www,appandwwwin the API — the request replaces them on the held purchase, so leaving them out drops the connection to the app) and, on a plan without custom domains, the same--planand--interval. A payment for an earlier checkout that was replaced and then paid anyway is refunded, and the name’s page shows that refund, before and after the replacement is paid. - Your names lists every name on the account, open purchases and history included.
- Invoices lists the invoices issued for your names — first years, renewal charges and renewals by hand, open ones still to pay as well as paid ones — with the name each is for, its status and the links to the hosted invoice and its PDF; see Domain invoices.
- An app’s Domains tab links to buying a name for that app.
- A registered name with no app — bought without one, or its app deleted
since — that uses Tori’s nameservers is connected on its page: choose the
app, keep or untick
www, and Connect adds the name, andwwwwhen it is ticked, to that app, as Connecting the name to an app describes. The page then shows the app and each hostname’s progress. When the plan has no custom domain left, the page says which hostname was not added, with the server’s reason, and links to changing the plan in Settings; a plan without custom domains, or an account with no apps yet, is told so instead of offered Connect; a name on other nameservers is added on the app’s Domains tab, with the DNS record it shows. A name already added on an app’s Domains tab shows that app; with onlywwwthere, the page offers to connect the name itself to it too. - The name’s page has a Renew automatically switch, for a registered
name: it turns the renewal off or on as
Stopping a renewal describes, and says what it did —
including when a renewal already paid for is still attempted, or when no
subscription can charge the name before it expires any more
(
paymentRequired). The page shows the next charge date, or a renewal charge that failed. A name that stopped being registered while its page was open — it expired, say — refuses the switch; the page then reads the name again and shows its status, without the switch. - Renew now on the name’s page renews a registered name by hand, as Renewing by hand describes: it is offered when no renewal subscription will charge the name this year — renewal is off, or it is in its last 30 days with no charge in time — and opens a checkout for one year at today’s renewal price; in the last 31 minutes before the expiry date begins (UTC) no new one can be opened. A renewal checkout already open is offered as Continue renewal payment instead, and one paid by a delayed method is shown as settling; a payment that reaches Tori on the expiry date or later is refunded instead of renewing the name, with a credit note on its invoice in the billing portal. Back from paying, the page waits a little for the payment to reach Tori, then shows the renewal being made and, once it is done, the new expiry date. A refusal shows the reason the API gives.
With the CLI
Section titled “With the CLI”The CLI covers the same steps, from version 0.18.0. On api.tori.host each
of these commands answers that the control plane sells no domains.
npx tori.host domains search example.cz --suggestnpx tori.host domains buy example.cz --app my-sitenpx tori.host domains owned-
searchprints whether the name can be bought and its yearly price, without VAT, or why not, in the words of When a name is not available.--suggestadds the same label under other TLDs, as Suggestions describes. -
buychecks the account’s registrant contact first. With none, it says how to add one and buys nothing; with several, it lists them and--contact <id>chooses. It then prints the checkout’s URL and opens it in the browser — not with--no-browser, over SSH or with no display — and waits until the name is registered, printing each step: waiting for the payment, paid and registering, registered with its expiry date. A name Tori confirms as registered before its list of names shows it is reported as registered, with the expiry date the purchase answered, if it gave one; with--appthe command still waits for the connection. A checkout that ended names the purchase id to read it by and the billing portal, where a late payment would show. A purchase that ends without registering is reported as How a purchase ended records it, with a non-zero exit: a checkout that ended (Tori has no payment recorded, after waiting a little for a late one; a payment taken after it is to be refunded), a payment to be refunded, or a failed registration, each with what its refund records say — how much, and whether the credit note is out yet. A purchase state this CLI does not know stops the wait without claiming an outcome. A moment without an answer from the API — a dropped connection, a server error — is asked again; any other failure to read stops the wait.Ctrl+Cstops waiting; the purchase goes on.TORI_DOMAIN_WAIT_MSsets how long it waits (90 minutes by default). -
--app <slug>connects the name andwwwto an app, as Connecting the name to an app describes; add--no-wwwto connect the name itself only. A connection that does not fit the plan is refused before the checkout opens, with what it needs and what is left. With--app,buyalso waits until the hostnames are added and names any that is not on the app — it did not fit the plan by then, or it was removed since — with thetori domains addcommand to add it once a custom domain is free. -
On a plan without custom domains,
buylists the plans that include them and their prices, as the billing settings show them, and--plan <plan> --interval month|yearbuys the plan in the same checkout. -
buy --jsonprints the purchase, with its checkout URL, and neither opens a browser nor waits — for a script that hands the URL to a person. -
ownedlists your names one per line: status, expiry date, whether it renews, and the app it connects to. A hostname of the name that is not on that app — it did not fit the plan when the name was registered, or it was removed since — is named, with the command to add it.--jsonprints the API’s answer. -
tori domains renew <name> --auto offstops renewing a name, and--auto onturns it back on, as Stopping a renewal describes; the command says what the choice does, including when a renewal already paid for is still attempted, or when no subscription can charge the name before it expires any more (paymentRequired).ownedshows the next charge date, a renewal charge that failed, or that only a renewal by hand could still renew the name. -
tori domains renew <name> --nowrenews a name by hand for one year, as Renewing by hand describes: it prints the URL of a checkout at today’s renewal price and opens it in the browser (not with--no-browser), then waits until the name’s expiry date moves on — paid, renewing, renewed — and exits non-zero if the checkout ended with no payment recorded, after waiting a little for a late one: check the invoice in the billing portal for a charge before paying again. If the name’s expiry date comes meanwhile, it says so: a payment that reaches Tori then is refunded, as is one for a renewal the registry did not make by that date, and the invoice shows the charge and its credit note. It follows the checkout it opened: one opened elsewhere for the name is not this renewal. A refusal says the API’s reason; with renewal on and a charge to come (renewal_scheduled), turn renewal off first to pay by hand.--jsonprints the API’s answer and opens and waits for nothing.
Checking a name
Section titled “Checking a name”GET /api/domains/availability?name=<name> answers whether a name can be
bought and its yearly price. Use a session or an account API token:
curl -H "Authorization: Bearer $TORI_TOKEN" \ "https://api.tori.host/api/domains/availability?name=example.cz"{ "name": "example.cz", "available": true, "price": { "amount": 1000, "currency": "eur", "interval": "year" }}The name is normalised the way a custom domain is — lower case, punycode, no
trailing dot — and must sit directly under a TLD Tori sells: example.cz or
example.com.co, not www.example.cz. A domain is sold one year at a time.
price is the yearly price in minor units (cents), without VAT, read from
the price list checkout charges from. Checkout adds the VAT of the buyer’s
country, and none for a business in another EU member state with a valid VAT
ID. Buying a name and renewing it cost the same.
When a name is not available
Section titled “When a name is not available”available is false with one of these reason values:
| Reason | Meaning |
|---|---|
invalid |
Not a domain name. |
idn |
An internationalised name. Only ASCII names are sold for now. |
reserved |
Under a domain the platform itself uses. |
not-registrable |
A name below a domain, such as www.example.cz. Check example.cz. |
tld-not-sold |
Tori does not sell this TLD, for example because its registry requires a local contact, documents or a membership. |
taken |
Registered by someone, or being bought right now. |
held |
A name Tori registered whose previous owner may still renew it. |
premium |
The registry sells it at a premium price, which Tori does not offer. |
claimed |
A trademark claim exists for it. |
price-changed |
The registry’s price for it is above what the TLD is sold for, or the registry did not state a price Tori can check. |
no-price |
The TLD has no price in the price list yet. |
unavailable-now |
Only with suggest=1: it could not be checked just now, because its registry or the price list did not answer. Ask again. |
Suggestions
Section titled “Suggestions”Add suggest=1 to also check the same label under a short list of popular
TLDs. The answer gains a suggestions array with one entry per TLD, in the
same shape. A name that could not be checked just now — its registry or the
price list did not answer — is listed with reason: unavailable-now and is
checked again on your next request. With suggest=1 this also applies to the
name you asked about: it comes back with reason: unavailable-now and status
200, so the suggestions that did answer are not lost.
curl -H "Authorization: Bearer $TORI_TOKEN" \ "https://api.tori.host/api/domains/availability?name=example.cz&suggest=1"Limits
Section titled “Limits”A check without suggest=1 asks the registry every time, so the check has
its own rate limit per account and per address, tighter than other reads.
With suggest=1, answers that came back from the registry are kept for five
minutes and reused, the name you asked included when it is one of the
suggestions, so an answer can be up to five minutes old. An answer is not a
reservation: a name that was free can be registered by someone else
meanwhile. A refused request answers
429 with Retry-After. Without suggest=1, when the registry or the price
list does not answer for the name you asked about, the answer is
503 unavailable_now; ask again shortly.
The registrant contact
Section titled “The registrant contact”The person or organisation buying a name is its registrant: the name is registered to them, never to Tori. A purchase names one of the account’s contacts. In the console, the buy form adds one; over the API:
curl -X POST -H "Authorization: Bearer $TORI_TOKEN" -H "Content-Type: application/json" \ https://api.tori.host/api/domains/contacts \ -d '{"kind":"person","name":"Jana","surname":"Novak","street":"1 Main Square", "city":"Pilsen","postalCode":"30100","countryCode":"CZ", "phone":"+420.123456789","email":"jana@example.cz"}'The answer carries the contact’s id. kind is person or organisation;
an organisation also needs organization, and its name is published in the
registry’s records. phone is written +<country code>.<number>. For .cz,
identType and identNumber (the CZ.NIC identifier, such as a company
number with ico) may be added, together. A contact is not edited: a
changed address is a new contact, used by the next purchase.
GET /api/domains/contacts lists them.
The registrar receives a contact with the first order that names it and sends the registrant an e-mail asking them to confirm it within 15 days. A name whose registrant has not confirmed can be put on hold, which switches it off; see When the registry puts a name on hold.
Starting a purchase
Section titled “Starting a purchase”POST /api/domains starts buying a name and answers a hosted checkout URL
for its first year:
curl -X POST -H "Authorization: Bearer $TORI_TOKEN" -H "Content-Type: application/json" \ https://api.tori.host/api/domains -d '{"name":"example.cz","contactId":"rgc_1f9a3c2b5d"}'{ "registeredDomainId": "rgd_7a1c9e03bd", "name": "example.cz", "state": "checkout", "url": "https://checkout.stripe.com/c/pay/…", "upgrade": null, "price": { "amount": 1000, "currency": "eur", "interval": "year" }}app is optional: the slug of one of your apps to connect the name to, as
described in Connecting the name to an app.
With app, www: false connects the name itself without www.
The name is checked again first, and the purchase is refused with the same
reason values as above. Nothing is registered until the checkout is paid.
After payment the name is registered, as described in
After you pay.
A payment that cannot buy the name — a checkout paid after it was replaced or had expired, or one paid for a name another of your checkouts already bought — is refunded: a credit note for the name’s first year appears on that invoice in the billing portal, and the amount goes back to the card it was paid with. A plan bought in the same checkout stays.
On a plan without custom domains, a bought name could not be connected
to anything, so the purchase also buys a plan: send plan (songbird or
flock) and interval (month or year), and the one checkout charges the
plan and the name’s first year together. Without them the answer is
409 plan_required. While the account has a plan subscription that is
paused or unpaid, the answer is 409 already_subscribed: resume or pay it in
the billing portal first. If the chosen plan cannot be bought at the moment
(Upgrading), the answer is 503 plan_unavailable:
nothing is charged, a checkout you already had open for the name is left as it
was, and the same name can be bought with the other interval or the other plan.
An account has one checkout open at a time that also
buys a plan: opening another — for another name, or a plan checkout in the
billing settings — ends the earlier one, and the name it held is released.
Asking again for the same name returns the checkout that is still open
rather than a second one. A new checkout is opened only when the previous one
expired or a different plan was chosen; the old one stops being payable. Two
requests for the same name with different plans at once leave one checkout;
the other request answers 409 purchase_replaced, and asking again returns
the checkout that remained. Once
a checkout for the name has been paid, the answer is state: paid while the
name is being registered. A checkout stays payable for an hour.
A purchase holds the name against other accounts while its checkout is
open. To keep names from being held away from others, an account has at most
three purchases open at once (429 too_many_pending); a purchase open for two
hours gets no new checkout (409 hold_expired); and a name whose checkout was
left to expire unpaid twice in a day cannot be bought again by that account
until the next day (429 reopen_banned).
Other refusals: 422 contact_not_eligible when the contact cannot register
the TLD — .eu, .fr and the French overseas TLDs need an address in the EU
or the EEA; 409 payment_in_progress while a bank payment for the purchase is
still settling; 503 unavailable_now when the registry, the price list or the
payment provider did not answer, or sales are paused for a moment. Starting a
purchase has its own rate limit per account and per address.
After you pay
Section titled “After you pay”Once the checkout is paid, asking POST /api/domains again for the name
answers state: paid while the registration is under way. It usually takes
a few minutes. Tori first sets up the name’s DNS on its nameservers,
ns1.tori.zone and ns2.tori.host, and checks that both answer for it; only
then does it order the name from the registry, delegated to them, so the name
never points at nameservers that do not know it. The registrant is the
contact the purchase was started with; editing the contact after paying does
not change who the name is registered to.
When the registry confirms the order, the name is registered until the expiry
date the registry states, a year after registration, and asking again answers
state: registered with that date:
{ "registeredDomainId": "rgd_7a1c9e03bd", "name": "example.cz", "state": "registered", "expiresAt": "2027-11-16" }The name is set not to renew by itself at the registrar: Tori runs its renewals, as described in Renewal.
If the registry is briefly unreachable, the order is tried again, so a registration can take longer than a few minutes. It fails, and the name’s first year is refunded with a credit note on the invoice, when:
- the name was registered by someone else between the check and the order;
- the registry kept refusing the order for a day.
A plan bought in the same checkout stays. The DNS set up for the name is
removed, together with the records described below. A failed purchase is over: asking POST /api/domains again for the
name, if it is still free, starts a new purchase with a new checkout.
Tori e-mails the account’s address about each of these outcomes, once each:
- the name is registered, with its expiry date and a reminder to confirm the registrar’s contact e-mail within 15 days;
- the registration failed, saying why;
- money is refunded, one message for each credit note: the amount, and what it refunds.
The messages usually arrive within a minute or two. A registration that failed sends two of them: one when it fails, and one when its refund is issued.
How a purchase ended
Section titled “How a purchase ended”GET /api/domains/purchases/<registeredDomainId> reads one purchase by the
registeredDomainId that POST /api/domains answered. Unlike
Your names, it also reads a purchase whose hold ended, so it
answers whether money that was paid is on its way back:
curl -H "Authorization: Bearer $TORI_TOKEN" https://api.tori.host/api/domains/purchases/rgd_7a1c9e03bd{ "id": "rgd_7a1c9e03bd", "name": "example.cz", "state": "refunded", "checkout": null, "refunds": [ { "amount": 1210, "issued": 1210, "currency": "eur", "state": "issued", "kind": "payment-unused", "issuedAt": "2026-11-16T10:31:02.000Z" } ]}A refund’s amount is what was paid, VAT included, and so is more than the
price that was quoted: here a name quoted at 1000 was paid by a consumer in
the Czech Republic, with 21 % VAT, as 1210. Do not compare the two for
equality. They are equal only for a buyer charged no VAT.
state |
Meaning |
|---|---|
checkout |
The name is held for its checkout. Whether that checkout can still be paid is checkout, below. |
awaiting-payment |
A bank payment for it is still settling. |
paid |
Paid; the name is being registered. |
registered |
The name was registered. GET /api/domains shows it from here. |
failed |
The name could not be registered, and the payment is to be refunded. |
released |
The hold ended, and Tori has no payment recorded for it — not that none was taken: a payment whose notice has not reached Tori yet reads so too, and one taken after the hold ended is to be refunded. |
refunded |
The hold ended, and a payment that did not buy the name is being refunded. |
While the name is held, checkout is the checkout to go back to: url is
the same checkout the purchase opened, not a new one, and expiresAt is when
it stops taking payment. While a bank payment settles there is nothing to
pay, and both are null. checkout is null once the name is no longer
held, and also while it still is but its checkout’s hour has run out: the
hold is released shortly after. Asking POST /api/domains again then starts
the purchase over with a new checkout, unless one of its refusals in
Starting a purchase applies, such as
429 reopen_banned after two checkouts of the name left unpaid in a day. A checkout opened before this endpoint existed has no link
recorded and reads as null too; asking POST /api/domains again returns
it. So read checkout, not state, to know whether there is
something to pay. checkout is what Tori last recorded, not a live check
with the payment provider: a checkout paid or expired a moment ago can still
read as open until Tori hears of it, usually within seconds and at most
about 15 minutes, and its page then says it can no longer be paid.
state says why money is due back, not that it is back. refunds lists
every refund of a payment made for the purchase, oldest first: amount as
decided, issued as credit notes have refunded it so far, and kind what
it is for. A refund is pending until its credit note is issued, usually
within minutes, and issued after; only then is it on its invoice in the
billing portal, and on its way back to the card.
Only the account that started the purchase can read it. Any other account
gets 404, the same answer as for an id that was never a purchase. A hold
that ended before this endpoint existed is not found either; a refund of a
payment for it is still a credit note in the billing portal. The console
reads it on the page a checkout returns to, as
In the console describes, and tori domains buy reads it
when a purchase it waits for ends without registering.
Your names
Section titled “Your names”GET /api/domains lists every name the account has bought or is buying,
newest first:
curl -H "Authorization: Bearer $TORI_TOKEN" https://api.tori.host/api/domains[ { "id": "rgd_7a1c9e03bd", "name": "example.cz", "status": "active", "registeredAt": "2026-11-16", "expiresAt": "2027-11-16", "renewal": { "autoRenew": true, "appliesFrom": "this-renewal", "paymentRequired": false, "paymentStatus": "active", "nextChargeOn": "2027-10-17", "manualPayment": null }, "registryHolds": [], "nameservers": "tori", "connection": { "app": "my-site", "www": true, "settled": true, "hostnames": [ { "id": "dom_3b8e21c4f0", "hostname": "example.cz", "status": "active" }, { "id": "dom_9d02a7e5c1", "hostname": "www.example.cz", "status": "active" } ] }, "createdAt": "2026-11-16T09:12:44.000Z" }]status is where the name stands:
| Status | Meaning |
|---|---|
pending-payment |
A checkout for it is open. The row disappears if the checkout expires unpaid. |
registering |
Paid; the registration is under way. |
active |
Registered until expiresAt. |
renewing |
A paid renewal is being made at the registry. |
renewal-failed |
The registry refused a paid renewal; the name keeps its old expiry date. |
failed |
The registration failed and the first year was refunded. |
expired |
The name was not renewed. |
transferred-out |
The name was moved to another registrar. |
More statuses may be added. A script that reads the list should treat a status it does not know as one it cannot act on, not as an error.
registeredAt and expiresAt are the registry’s dates, null until the name
is registered. renewal describes the next renewal:
autoRenewsays whether the name will be renewed. It is set withPUT /api/domains/{name}/renewal, and a cancellation in the billing portal shows here within about 15 minutes (see Stopping a renewal).appliesFromisnext-renewalwhen renewal is off but this year’s renewal is already paid for and goes ahead.paymentRequiredis true when renewal is on but nothing can charge it before the expiry date, in the last 30 days.paymentStatusis the renewal subscription’s status as Tori last read it:active,past_duewhile a failed charge is being retried,unpaid,canceled, or another of the payment provider’s;nullwith no subscription.nextChargeOnis the date of the next renewal charge — normally 30 days beforeexpiresAt, and the subscription’s own date while it is being moved there — ornullwhen none is scheduled. It is alsonullwhile a charge is outstanding (paymentStatusispast_dueorunpaid): this year’s renewal charge is then being retried, or has failed, and the name lapses atexpiresAtunless it is paid.manualPaymentis a renewal by hand still being paid (see Renewing by hand):state: openwith the checkout’surland itsexpiresAt, orstate: awaiting_paymentwith bothnullwhile a delayed payment settles. It isnullwhen there is none, and once an open checkout’s hour has run out or the expiry date has begun. A purchase’scheckouthas the same shape.
More renewal details may be added to renewal. registryHolds lists the
holds that switch the name off, as Tori last read them from the registry
(see When the registry puts a name on hold);
it is empty when there are none, and also before Tori has read them for the
first time, usually within 15 minutes of registration. connection is null when the purchase named no app, or when
the app it named has been deleted; otherwise it names that app, whether www
was chosen,
whether the hostnames have been added to the app yet (settled), and your
custom domains for the name and www on it, with the same status as
GET /api/apps/<slug>/domains.
The list is read from what Tori has recorded: it does not ask the registry or the payment provider, and it shows only this account’s names. A deploy token cannot read it.
When the registry puts a name on hold
Section titled “When the registry puts a name on hold”Preview. Built on a control plane with domain sales enabled; the console does not show holds yet.
A registry can put a name on hold, which switches it off: while it is on
hold the name does not resolve, so websites and e-mail at it stop working.
Tori reads each name’s holds from the registry every day in its first 30
days and every week after that, and shows them in registryHolds:
clientHoldis the registrar’s. Regtons can put it on a name whose registrant has not confirmed their contact details within 15 days. Regtons sends that request to the registrant contact’s e-mail address, which may not be your account’s: confirm it there (look in the spam folder too), and Regtons lifts the hold.serverHoldis the registry’s own, which only it can lift.outzoneandserverOutzoneManualare how the.czregistry says it has taken the name out of its zone. A name is out of the zone until the registry’s next zone update after its registration, sooutzoneis not reported on the day a name is registered or the day after.
When Tori finds a new hold, it e-mails the account’s address with what to do, and Tori’s operators are told as well.
The name’s DNS
Section titled “The name’s DNS”A name bought through Tori uses Tori’s nameservers, and Tori writes every record in its zone; there is no record editor. The records are derived from your account and kept up to date by Tori, and they are in the zone before the name is delegated to it:
- Hostnames you already have at or under the name, on any of your apps —
for example
shop.example.cz, added as a custom domain before you boughtexample.cz. A hostname below the name gets aCNAMEto its app’s own name (<slug>.tori.cloud); the name itself, if you added it, gets anArecord to its app’s addresses and its_tori-verifyownership record. Such a hostname keeps resolving when the registry starts pointing the name at Tori’s nameservers. - The app chosen with
app: the name itself gets anArecord to that app’s addresses andwwwaCNAMEto its own name, unless you already have a custom domain for that hostname, whose record follows the app it is on.
Hostnames another account has added under the name stop resolving once the name is delegated to Tori’s nameservers. Within a few minutes of the registration completing, those custom domains are removed from that account, and the account is e-mailed which hostname went from which app, and why.
After registration, the zone is updated as soon as one of these changes: a custom domain added or removed under the name, the addresses its app is served from, or an app being deleted. Then the change usually reaches Tori’s nameservers within seconds, and at most within a few minutes. A resolver that cached the old answer keeps it for up to five minutes. If it looked up a new hostname before you added it, it may keep the “no such name” answer for up to an hour.
Renewal
Section titled “Renewal”Preview. What follows is built on a control plane with domain sales
enabled. Renewing a name by hand is in the console (Renew now), the CLI
(tori domains renew <name> --now) and the API below, and so is turning
renewal on or off.
Within about 15 minutes of registration, Tori sets up the name’s renewal: a yearly subscription at the name’s renewal price, the same price as its first year. It charges the card the first year was paid with — when the purchase also bought a plan, the card of that checkout — not your account’s default card. Nothing is charged when it is set up. The first charge is made 30 days before the expiry date, and every later one a year after the previous, so each renewal is paid a month before the name would expire.
A subscription can be set up at most a year before its first charge. A name whose expiry is further away than that gets its subscription later, on its own, once the first charge is less than a year ahead.
The renewal subscription is listed in the billing portal beside your plan,
but it is not your plan: it does not change the plan or its limits, and
GET /api/billing never returns it as the account’s subscription.
When a renewal is charged
Section titled “When a renewal is charged”Once the renewal charge is paid, Tori renews the name at the registry for one
year, usually within a few minutes. The registry’s new expiry date then
becomes the name’s expiry date, and asking POST /api/domains for the name
answers state: registered with it; until then it answers the old one. The
next charge falls 30 days before the new expiry date. If the registry’s new
date is not exactly a year on, the subscription is moved to the new date as
described below, once that date is less than a year away.
A renewal is ordered once per paid charge: a payment notification that arrives twice, or late, does not renew the name twice.
If the registry refuses the renewal, Tori’s operators are alerted and the renewal is tried again: every hour on the first day, then every six hours, until the expiry date. Before each attempt Tori checks with the registry whether an earlier attempt renewed the name after all, so a name is never renewed twice for one charge.
If the name still is not renewed by its expiry date, the charge is refunded in full with a credit note on that invoice, usually on the expiry date or the day after. Where it is not certain whether the last attempt reached the registry, Tori’s operators check with the registrar and settle the renewal by hand first, so this can take longer. Once refunded, the renewal subscription is cancelled so that nothing is charged for the name again, and the name expires. You never pay for a year the registry did not grant. When the failure was on Tori’s side, the operators can still renew the name at Tori’s cost while the registry allows it.
When a name is not renewed
Section titled “When a name is not renewed”A name whose renewal you stopped, or whose renewal charge was never paid,
expires on its expiry date. On that day an unpaid renewal charge is voided,
so it can no longer be paid, and the name’s renewal subscriptions end. The
name’s DNS keeps answering through its grace period at the registry, while
the name may still come back. Tori removes it from its nameservers once that
period is over and the registry no longer holds the name for Tori. A renewal
charge paid on the expiry date itself, before it is voided, comes too late
to renew the name: it is refunded in full, as a renewal that cannot be made
is. For a generic TLD such as .com, whose registry may renew a name by
itself at expiry, Tori’s operators first check with the registrar that no
renewal ran, so that refund can take a few days.
If a renewal of the name was charged on a subscription that was ending anyway — one left over beside the subscription that renews the name — and no renewal used that payment, it is refunded in full with a credit note.
What Tori e-mails about a renewal
Section titled “What Tori e-mails about a renewal”Tori e-mails the account’s address, once each:
- when a renewal charge needs you — the card was declined, or your bank asks you to confirm the payment. The message links to the invoice’s payment page and comes within about an hour of the charge failing; while the charge is still open, a reminder follows 14, 7 and 1 days before the expiry date. Pay before the expiry date: on that day the charge is voided and the name expires. Nothing is sent on the expiry date itself.
- when the registry has not made a paid renewal, while it is being tried again as described above. Nothing is needed from you; if the renewal is refunded in the end, the refund has its own message.
- when a name expires, within about an hour of its expiry.
Stopping a renewal
Section titled “Stopping a renewal”To stop renewing a name, turn its renewal off: with the Renew
automatically switch on the name’s page in the console, with
tori domains renew <name> --auto off, or through the API, with the name or
its registeredDomainId:
curl -X PUT -H "Authorization: Bearer $TORI_TOKEN" -H "Content-Type: application/json" \ https://api.tori.host/api/domains/example.cz/renewal -d '{"autoRenew":false}'{ "registeredDomainId": "rgd_7a1c9e03bd", "name": "example.cz", "autoRenew": false, "appliesFrom": "this-renewal", "paymentRequired": false }{"autoRenew":true} turns it back on. Cancelling the renewal subscription in
the billing portal does the same as turning it off; Tori reads that change
within about 15 minutes. If the renewal has not been charged yet, the subscription runs
until its period ends, 30 days before the expiry date, and ends without
charging you; resuming it in the portal before then turns renewal back on.
If this year’s renewal charge is open because a payment failed, it is voided,
so it can no longer be collected, and the subscription ends at once. A charge
that has already been paid stays: that year’s renewal goes ahead, and the
choice applies from the next one (appliesFrom: next-renewal).
Turned back on while the charge date is still ahead, the name gets a new
renewal subscription at once. When no subscription can charge the name
before its expiry date any more, paymentRequired is true, and the name has
to be renewed by hand. Only the last 30 days can
bring that about, and not every time: a subscription kept from before that
still has a charge scheduled renews the name as usual, with
paymentRequired false. A name that
is not registered — still being bought, failed or expired — answers
409 not_renewable.
Changing the card of the renewal subscription in the portal changes the card renewals of the name are charged to.
If the subscription’s charge date no longer falls 30 days before the expiry date, Tori sets up a new subscription on the right date and then cancels the old one, so a renewal is never left without a subscription and nothing is charged twice. A subscription Tori cancels this way is not your choice, and does not turn renewal off.
Renewing by hand
Section titled “Renewing by hand”A name that no renewal subscription will charge this year can be renewed by
paying for one year at a checkout: its renewal is off, or it is in its last
30 days with no subscription that charges in time (paymentRequired). With
renewal on and the charge date still ahead, a subscription that has ended is
replaced at once instead, and the request answers renewal_scheduled. Ask
for the checkout with the name or its registeredDomainId:
curl -X POST -H "Authorization: Bearer $TORI_TOKEN" \ https://api.tori.host/api/domains/example.cz/renewal/checkout{ "registeredDomainId": "rgd_7a1c9e03bd", "name": "example.cz", "manualPayment": { "state": "open", "url": "https://checkout.stripe.com/c/pay/cs_live_a1b2c3", "expiresAt": "2027-11-02T11:00:00.000Z" }, "price": { "amount": 1300, "currency": "eur", "interval": "year" }, "renewsExpiry": "2027-11-16"}renewsExpiry is the expiry date the checkout renews from: once it is paid
and the renewal made, the name’s expiresAt moves a year past it.
Open url and pay; the checkout takes payment until expiresAt: for an
hour, or until the expiry date begins (midnight UTC) if that comes first.
None is opened in the last half hour before that. What counts is when the
payment reaches Tori, not when you pay: a card payment arrives within
seconds, but a delayed method such as a bank debit can take days. A payment
that reaches Tori on the expiry date or later is refunded, so pay well
before it. The price is the name’s renewal price now, without VAT, which a
renewal subscription set up today would charge; a subscription set up before
a price change may have charged its older price. The checkout adds the VAT of
your country to it and shows the total: 1300 above is charged as 1573 to a
consumer in the Czech Republic.
Asking again while it is open answers the same checkout (200 instead of
201), and renewal.manualPayment of GET /api/domains shows it too.
This is a one-off payment for one year. It does not turn renewal on or off: with renewal off, the name is renewed this once and not again. A renewal subscription that would have ended at its period end without charging is ended when the checkout is opened, and nothing is charged twice.
Once paid, Tori renews the name for one year from its current expiresAt,
as for a charged renewal: tried again if the registry refuses, and refunded
in full if the name still is not renewed by its expiry date (see
When a renewal is charged). A payment that can
no longer renew the name is refunded in full with a credit note: one that
reaches Tori on the expiry date or later, or one for a year that was
renewed meanwhile. The
card you paid with becomes the card later renewals of the name are charged
to, once the renewal is made. With renewal on, the name then gets a renewal
subscription for the following year, later on its own if that charge is
more than a year ahead.
The request is refused with 409 and a code:
renewal_scheduled— renewal is on, and a renewal subscription charges this renewal, or will once its charge is less than a year ahead, so it is not paid here. If its charge failed, pay its invoice from the e-mail (see What Tori e-mails about a renewal); to pay by hand instead, turn renewal off first.renewal_in_progress— this year’s renewal is paid and being made.payment_in_progress— a delayed payment for the renewal is settling.not_renewable— the name is not registered, or its expiry date has come.
503 unavailable_now means one of two steps of a new checkout failed: the
renewal price could not be read, or there is none for the name yet; or the
payment provider did not create the checkout. Try again shortly; a checkout
already open is answered either way. Any other failure of the payment
provider answers 500, as it does for a purchase.
Domain invoices
Section titled “Domain invoices”Preview. Built on a control plane with domain sales enabled.
The invoices that paid for your domain names are listed on their own, newest
first: under Invoices on the console’s Domains page, with the name
each paid for, and by the API below. GET /api/billing and Settings →
Billing keep to your plan’s invoices, so a year of renewals does not push
them out of the 24 newest listed there. As everywhere on this page, use the address of a
control plane with domain sales enabled in place of api.tori.host, which
answers 503 domain_sales_unavailable:
curl -H "Authorization: Bearer $TORI_TOKEN" https://api.tori.host/api/domains/invoices[ { "id": "inv_4c1e8a72d0", "number": "TORI-0042", "status": "paid", "currency": "eur", "total": 1573, "amountDue": 1573, "amountPaid": 1573, "tax": 273, "hostedInvoiceUrl": "https://invoice.stripe.com/i/acct_1/test_a1b2c3", "pdfUrl": "https://pay.stripe.com/invoice/acct_1/test_a1b2c3/pdf", "periodStart": "2027-10-17T00:00:00.000Z", "periodEnd": "2027-10-17T00:00:00.000Z", "issuedAt": "2027-10-17T00:00:04.000Z", "kind": "renewal", "name": "example.cz", "registeredDomainId": "rgd_7a1c9e03bd" }]An invoice’s total is the yearly price with the buyer’s VAT on top, and
tax is that VAT: above, a renewal at 1300 charged to a consumer in the Czech
Republic.
Every such invoice is listed whatever its status: an open renewal charge
you still have to pay is here as well as the paid ones, and a void one
stays listed. Each invoice has the fields of an invoice in
GET /api/billing, and:
kind:registrationfor a purchase’s first year,renewalfor a renewal charge: what the invoice was issued for, not whether it was paid or the name registered;name: the name it paid for, ornullwhere Tori cannot tell;registeredDomainId: that name’s id while it is on your account, ornull, for example for a purchase whose checkout was paid after it had lapsed and was refunded.
A purchase that also bought a plan was paid with one invoice for both. It is
listed here as the name’s registration, and stays among the plan’s invoices
too. At most the 100 newest are listed. The list is read from Tori’s copy
of your invoices. A payment refreshes your 100 newest from the payment
provider; POST /api/billing/sync, and Tori’s own periodic refresh, read
your 500 newest. Older ones stay as they were last read.
Connecting the name to an app
Section titled “Connecting the name to an app”When a purchase named an app, the name itself and www become custom
domains of that app within a few minutes of the registration completing. They
need no ownership record — the registration is the proof — and go through the
same DNS check and certificate as any custom domain: they serve the app once
the certificate is issued, and GET /api/apps/<slug>/domains shows their
progress.
- A custom domain you already have for either hostname is reused rather than added twice, and checked again at once; one that had failed waits out the hour before its next check, as any failed custom domain does. If it is on another of your apps, it moves to the chosen app; when it was that other app’s primary hostname, the other app’s primary and its redirect are switched off. When the chosen app runs in another region, the moved hostname goes through the DNS check and gets a new certificate there, as a new one does, and serves the chosen app once that is done.
- Each new hostname counts against your plan’s custom domains — the plan
bought in the same checkout, on a plan without custom domains. A hostname
you already have on an app uses no new one; one still held by an app you
have deleted counts as new. This is checked before the checkout opens,
counting the hostnames your other connected purchases still to complete
will add: a connection that does not fit is refused with
409 connection_does_not_fit, withneeded(the hostnames it would add) andfree(the custom domains left for them). Buy withwww: falseto connect the name itself only, or withoutapp. It is counted again when the registration completes. If the plan has less room by then, the name itself is connected andwwwis not, or neither when there is none, and you are e-mailed which hostnames were not connected. Their DNS is already set up, so once the plan has room, adding them as custom domains of the app is enough. - This happens once. A hostname you remove from the app afterwards is not added back.
Connecting later. A name bought without an app is connected afterwards
by adding the name, and www if you want it, as custom domains of the app:
Connect on the name’s page in the console does that, or the app’s
Domains tab, tori domains add, or POST /api/apps/<slug>/domains.
Each counts against the plan’s custom domains like any other. You create no
DNS record: while the name uses Tori’s nameservers, Tori writes the records
each hostname needs into the name’s zone — the address and the ownership
record for the name itself, a CNAME for www — and the hostnames serve
the app once the DNS check passes and the certificate is issued.