RKH

Your domain#

Rokh can show the customer steps on a hostname of your own domain, for example https://kyc.example.com. The address bar of the customer then shows your hostname, not rokh.id.

Rokh gets a certificate for your hostname from Let's Encrypt and renews it. You do not send a certificate to Rokh.

What changes#

Each account can have one hostname.

Add your hostname#

  1. Sign in to the vendor panel.
  2. Open Developers.
  3. In Your own domain, type the hostname, for example kyc.example.com.
  4. Click Add the domain. The panel shows two DNS records.
  5. Add the two records to the DNS of your domain.
  6. Click Check.

Rules for the hostname:

DNS records#

Type Name Value
CNAME Your hostname, for example kyc.example.com rokh.id
TXT _rokh. and your hostname, for example _rokh.kyc.example.com rokh-verify= and your token. The panel shows the full value.

The CNAME record sends the browsers of your customers to Rokh. The TXT record shows that the hostname is yours. Each account has a different token.

Rules for the records:

A change in DNS can take a few hours.

Status#

Status Meaning What you do
pending_dns Rokh waits for the two DNS records. Add the records. Then click Check.
issuing The records are correct. Rokh gets the certificate. This takes one or two minutes. Wait.
active Your hostname shows the customer steps. Nothing.
failed Rokh did not get a certificate. Examine the records. Then click Check again.
removing Rokh removes the hostname and its certificate. This takes about one minute. Wait.

Rokh also examines the DNS records automatically every 5 minutes during the first 14 days. After 14 days, click Check after you change a record.

Problems#

When a check finds a problem, the domain record shows it in problems. Each problem has a code and a text.

Code Meaning
txt_record_missing Rokh does not find the TXT record.
txt_record_wrong The TXT record has a different value. Copy the value again.
hostname_does_not_resolve The hostname does not have an address. Add the CNAME record.
hostname_points_elsewhere The hostname has an address of a different server.
dns_tools_unavailable Rokh cannot read DNS records now. Try again later.
activation_failed Rokh did not get a certificate. Examine the records and the CAA record. Then click Check again.

use_for_links controls the address of new customer links.

The customer_url of a request always shows the current setting. When you read a request again, customer_url can change. The token in the link does not change.

Use the API#

The domain endpoints accept your API key or the panel session.

Add the hostname:

PUT /api/vendor/panel/domain
Authorization: Bearer rk_live_…
Content-Type: application/json

{"hostname": "kyc.example.com", "use_for_links": true}

The response:

{
  "domain": {
    "hostname": "kyc.example.com",
    "status": "pending_dns",
    "use_for_links": true,
    "url": "https://kyc.example.com",
    "created_at": "2026-10-12T09:00:00+00:00",
    "updated_at": "2026-10-12T09:00:00+00:00",
    "last_check_at": null,
    "active_since": null,
    "cert_expires_at": null,
    "problems": [],
    "dns_records": [
      {"type": "CNAME", "name": "kyc.example.com", "value": "rokh.id", "a_values": ["116.203.19.92"], "note": "Or an A record to 116.203.19.92"},
      {"type": "TXT", "name": "_rokh.kyc.example.com", "value": "rokh-verify=3f0c…", "a_values": [], "note": ""}
    ]
  },
  "server_host": "rokh.id"
}
Method Endpoint Effect
GET /api/vendor/panel/domain Your hostname, its status and the DNS records. domain is null when you have no hostname.
PUT /api/vendor/panel/domain Add the hostname, or change use_for_links.
POST /api/vendor/panel/domain/check Examine the DNS records now.
DELETE /api/vendor/panel/domain Remove the hostname.

Rules:

Your hostname and your own site#

You can also show the steps inside a page of your site. Read Your own site. Then load the SDK from your hostname:

<script src="https://kyc.example.com/static/sdk/rokh-kyc.js"></script>

The SDK accepts only customer links on the hostname that it comes from. If you use use_for_links: false, load the SDK from https://rokh.id.

Your allowed origins also apply on your hostname.

Remove your hostname#

  1. In Your own domain, click Remove.
  2. Click Remove again to confirm.

As an alternative, send DELETE /api/vendor/panel/domain.

After the removal, customer links on your hostname stop. The same link on https://rokh.id stays valid. The API then gives customer_url on https://rokh.id again. You can then remove the two DNS records.

Rokh vendor API. The text follows ASD-STE100 Simplified Technical English.