Skip to main content

1. Declare the domain in your manifest

Add a [[domains]] block to telnyx.toml:
Ship your function:
The CLI validates the hostname at ship time: lowercase, valid domain format, unique within the manifest.

2. Add the custom domain binding

Replace <function_id> with the ID from telnyx-edge list. The command returns a DNS TXT record:

3. Configure your DNS

In your DNS provider, configure your domain to direct traffic to your deployed Function’s default *.telnyxcompute.com hostname. This applies whether you’re connecting an apex domain such as acme.com or a subdomain such as api.acme.com. The DNS record type and setup depend on your DNS provider. You manage these records outside Telnyx. Keep the TXT verification record from step 2 in place for ownership verification. DNS changes may take time to propagate.

4. Verify ownership

Telnyx looks up the TXT record and compares it against the stored token. On success:
  • HTTP routing is deployed — your domain is reachable over HTTP immediately
  • The domain is marked as verified
If the TXT record isn’t found yet, the domain is marked as verification_failed. Retry after the DNS record propagates.

5. Upload your TLS certificate

The certificate must:
  • Be PEM-encoded
  • Cover the domain (SAN or CN match)
  • Be currently valid (not expired, not yet valid)
On success, HTTPS routing is deployed. Your function is now live at https://api.acme.com.

6. Verify it works

The default *.telnyxcompute.com URL still works:

Manage your domains

List all custom domains:
Delete a domain (tears down routing, removes cert):
Deleting a domain removes the routing resources from all clusters and deletes the stored certificate. The default *.telnyxcompute.com URL is unaffected.