> For the complete documentation index, see [llms.txt](https://docs.serverlessapigateway.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.serverlessapigateway.com/glossary/d/domain.md).

# Domain

A domain (or domain name) is a human-readable address that identifies a resource on the internet, such as example.com. Domains are organized hierarchically: top-level domains (TLDs) like .com, .org, and .io sit at the top, followed by second-level domains and optional subdomains (e.g., api.example.com).

Domain names are registered through domain registrars and mapped to IP addresses using the Domain Name System (DNS). Organizations typically configure DNS records to point their domains to web servers, CDN endpoints, or API gateways. Subdomains are commonly used to separate concerns, such as using api.example.com for API traffic and app.example.com for the web application.

In API management, custom domains are important for branding and developer experience. An API gateway can serve multiple APIs under a single domain using path-based routing (e.g., example.com/v1/users) or serve different APIs on different subdomains. SSL/TLS certificates must be configured for each domain to ensure secure HTTPS communication.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.serverlessapigateway.com/glossary/d/domain.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
