Apiway

App Factory

Put your app or site on your own domain

How to open an App Factory app or site on your own domain or subdomain: two DNS records (a TXT that proves the domain is yours and a CNAME), a free certificate issued by Apiway, and the whole setup done in a chat with your agent — ChatGPT, Claude, Codex or Cursor. Includes the official instructions of each DNS provider and the rules an agent follows.

Last updated

A published App Factory app or site can open on your own address, for example app.yoursite.com or yoursite.com. It takes two DNS records. The security certificate (https) is issued by Apiway by itself: there is nothing to buy and nothing to set up. You can do all of it in a chat with your agent, without opening Apiway.

In short

  • Two records. A TXT record proves the domain is yours (its name is _apiway.your-address, its value starts with apiway-verify=). A CNAME record on your address points it to Apiway. Your agent gives you the exact names and values. Until the TXT record is seen, nothing is connected.
  • A subdomain (app.yoursite.com) keeps the site you already have on yoursite.com as it is.
  • yoursite.com without www: the records go on www.yoursite.com (the TXT on _apiway.www.yoursite.com), and you turn on forwarding from yoursite.com to www.yoursite.com at your DNS provider.
  • New records show up in minutes, sometimes in a couple of hours. That is normal.
  • Once the address opens, the Apiway address of the app forwards to it.
  • The address opens the published version of the app. Publish it first, or ask your agent to.

In a chat with your agent

  1. Write: «Put my app on app.yoursite.com» (or yoursite.com).
  2. The agent connects the address and answers with the two records. Where your DNS provider supports it, the agent gives a one-click link: you sign in at the provider and confirm, and the CNAME record is added for you. The one-click link does not write the TXT record — you add it by hand.
  3. Otherwise, add the record at your DNS provider. Not sure what to do there? Send the agent a screenshot of your DNS page or paste your records: it says exactly what to add, change or delete.
  4. The agent checks the record and the certificate and gives you the link when the address opens.

Never give anyone the password of your domain account. The record is the only step that is yours.

Rules for the agent

  1. Call the address «Domain URL». Say it can be a domain or a subdomain, with the example app.yoursite.com or yoursite.com. Write in the person’s language, one question per message.
  2. Open the address before you connect it. If a site already works there, say that connecting replaces it and offer a subdomain. Go on only after a clear yes.
  3. Call set_code_app_domain with confirm: true. Use the record from its answer exactly. Give the one-click link first when the answer has one; otherwise walk the person through their provider’s own help page from the answer, or from the list below.
  4. If the person sends a screenshot or a list of DNS records, read it and name exactly which record to add, change or delete. Never ask for the provider’s password.
  5. Call get_code_app_domain with check: true. pending_dns: the record is not seen yet, check again a little later. pending_cert: the certificate is being issued by itself. active: give the link. failed: say the reason in plain words and what to fix.
  6. Not published yet: say that the Domain URL opens the published app, and publish only on the person’s clear yes.
  7. The person does not need to open the Domain panel in Apiway. Everything is done in the chat.remove_code_app_domain disconnects the address.

By DNS provider

Cloudflare

GoDaddy

Namecheap

Squarespace

Wix

Hostinger

Reg.ru

Beget

  • Where: Control panel → DNS → Edit zone → Add record
  • Name field: Name
  • Official instructions for a CNAME record (the TXT record is added the same way): https://beget.com/en/kb/manual/dns

IONOS

Amazon Route 53

Porkbun

Vercel

Related docs