description: "Traefik Proxy exposes information through API handlers and showcase them on the Dashboard. Learn about the security, configuration, and endpoints of the APIs and Dashboard. Read the technical documentation."
| <aid="opt-api"href="#opt-api"title="#opt-api">`api`</a> | Enable api/dashboard. When set to `true`, its sub option `api.dashboard` is also set to true.| false | No |
| <aid="opt-api-basepath"href="#opt-api-basepath"title="#opt-api-basepath">api.basepath</a> | Defines the base path where the API and Dashboard will be exposed. | / | No |
| <aid="opt-api-dashboard"href="#opt-api-dashboard"title="#opt-api-dashboard">`api.dashboard`</a> | Enable dashboard. | false | No |
| <aid="opt-api-debug"href="#opt-api-debug"title="#opt-api-debug">`api.debug`</a> | Enable additional endpoints for debugging and profiling. | false | No |
| <aid="opt-api-disabledashboardad"href="#opt-api-disabledashboardad"title="#opt-api-disabledashboardad">`api.disabledashboardad`</a> | Disable the advertisement from the dashboard. | false | No |
| <aid="opt-api-insecure"href="#opt-api-insecure"title="#opt-api-insecure">`api.insecure`</a> | Enable the API and the dashboard on the entryPoint named traefik.| false | No |
| <aid="opt-apihttprouters"href="#opt-apihttprouters"title="#opt-apihttprouters">`/api/http/routers`</a> | Lists all the HTTP routers information. |
| <aid="opt-apihttproutersname"href="#opt-apihttproutersname"title="#opt-apihttproutersname">`/api/http/routers/{name}`</a> | Returns the information of the HTTP router specified by `name`. |
| <aid="opt-apihttpservices"href="#opt-apihttpservices"title="#opt-apihttpservices">`/api/http/services`</a> | Lists all the HTTP services information. |
| <aid="opt-apihttpservicesname"href="#opt-apihttpservicesname"title="#opt-apihttpservicesname">`/api/http/services/{name}`</a> | Returns the information of the HTTP service specified by `name`. |
| <aid="opt-apihttpmiddlewares"href="#opt-apihttpmiddlewares"title="#opt-apihttpmiddlewares">`/api/http/middlewares`</a> | Lists all the HTTP middlewares information. |
| <aid="opt-apihttpmiddlewaresname"href="#opt-apihttpmiddlewaresname"title="#opt-apihttpmiddlewaresname">`/api/http/middlewares/{name}`</a> | Returns the information of the HTTP middleware specified by `name`. |
| <aid="opt-apitcprouters"href="#opt-apitcprouters"title="#opt-apitcprouters">`/api/tcp/routers`</a> | Lists all the TCP routers information. |
| <aid="opt-apitcproutersname"href="#opt-apitcproutersname"title="#opt-apitcproutersname">`/api/tcp/routers/{name}`</a> | Returns the information of the TCP router specified by `name`. |
| <aid="opt-apitcpservices"href="#opt-apitcpservices"title="#opt-apitcpservices">`/api/tcp/services`</a> | Lists all the TCP services information. |
| <aid="opt-apitcpservicesname"href="#opt-apitcpservicesname"title="#opt-apitcpservicesname">`/api/tcp/services/{name}`</a> | Returns the information of the TCP service specified by `name`. |
| <aid="opt-apitcpmiddlewares"href="#opt-apitcpmiddlewares"title="#opt-apitcpmiddlewares">`/api/tcp/middlewares`</a> | Lists all the TCP middlewares information. |
| <aid="opt-apitcpmiddlewaresname"href="#opt-apitcpmiddlewaresname"title="#opt-apitcpmiddlewaresname">`/api/tcp/middlewares/{name}`</a> | Returns the information of the TCP middleware specified by `name`. |
| <aid="opt-apiudprouters"href="#opt-apiudprouters"title="#opt-apiudprouters">`/api/udp/routers`</a> | Lists all the UDP routers information. |
| <aid="opt-apiudproutersname"href="#opt-apiudproutersname"title="#opt-apiudproutersname">`/api/udp/routers/{name}`</a> | Returns the information of the UDP router specified by `name`. |
| <aid="opt-apiudpservices"href="#opt-apiudpservices"title="#opt-apiudpservices">`/api/udp/services`</a> | Lists all the UDP services information. |
| <aid="opt-apiudpservicesname"href="#opt-apiudpservicesname"title="#opt-apiudpservicesname">`/api/udp/services/{name}`</a> | Returns the information of the UDP service specified by `name`. |
| <aid="opt-apientrypoints"href="#opt-apientrypoints"title="#opt-apientrypoints">`/api/entrypoints`</a> | Lists all the entry points information. |
| <aid="opt-apientrypointsname"href="#opt-apientrypointsname"title="#opt-apientrypointsname">`/api/entrypoints/{name}`</a> | Returns the information of the entry point specified by `name`. |
| <aid="opt-apioverview"href="#opt-apioverview"title="#opt-apioverview">`/api/overview`</a> | Returns statistic information about HTTP, TCP and about enabled features and providers. |
| <aid="opt-apisupport-dump"href="#opt-apisupport-dump"title="#opt-apisupport-dump">`/api/support-dump`</a> | Returns an archive that contains the anonymized static configuration and the runtime configuration. |
| <aid="opt-apirawdata"href="#opt-apirawdata"title="#opt-apirawdata">`/api/rawdata`</a> | Returns information about dynamic configurations, errors, status and dependency relations. |
| <aid="opt-apiversion"href="#opt-apiversion"title="#opt-apiversion">`/api/version`</a> | Returns information about Traefik version. |
| <aid="opt-debugvars"href="#opt-debugvars"title="#opt-debugvars">`/debug/vars`</a> | See the [expvar](https://golang.org/pkg/expvar/) Go documentation. |
| <aid="opt-debugpprof"href="#opt-debugpprof"title="#opt-debugpprof">`/debug/pprof/`</a> | See the [pprof Index](https://golang.org/pkg/net/http/pprof/#Index) Go documentation. |
| <aid="opt-debugpprofcmdline"href="#opt-debugpprofcmdline"title="#opt-debugpprofcmdline">`/debug/pprof/cmdline`</a> | See the [pprof Cmdline](https://golang.org/pkg/net/http/pprof/#Cmdline) Go documentation. |
| <aid="opt-debugpprofprofile"href="#opt-debugpprofprofile"title="#opt-debugpprofprofile">`/debug/pprof/profile`</a> | See the [pprof Profile](https://golang.org/pkg/net/http/pprof/#Profile) Go documentation. |
| <aid="opt-debugpprofsymbol"href="#opt-debugpprofsymbol"title="#opt-debugpprofsymbol">`/debug/pprof/symbol`</a> | See the [pprof Symbol](https://golang.org/pkg/net/http/pprof/#Symbol) Go documentation. |
| <aid="opt-debugpproftrace"href="#opt-debugpproftrace"title="#opt-debugpproftrace">`/debug/pprof/trace`</a> | See the [pprof Trace](https://golang.org/pkg/net/http/pprof/#Trace) Go documentation. |
By default, Traefik exposes its API and Dashboard under the `/` base path. It's possible to configure it with `api.basepath`. When configured, all endpoints (api, dashboard, debug) are using it.
- The trailing slash `/` in `/dashboard/` is mandatory. This limitation can be mitigated using the the [RedirectRegex Middleware](../../middlewares/http/redirectregex.md).
- Implement security features using [middlewares](../../middlewares/overview.md), such as authentication ([basicAuth](../../middlewares/http/basicauth.md), [digestAuth](../../middlewares/http/digestauth.md),
[forwardAuth](../../middlewares/http/forwardauth.md)) or [allowlisting](../../middlewares/http/ipallowlist.md).
- Define a [router rule](#dashboard-router-rule) for accessing the dashboard through Traefik.
### Dashboard Router Rule
To ensure proper access to the dashboard, the [router rule](../../routing/routers/index.md#rule) you define must match requests intended for the `/api` and `/dashboard` paths.
We recommend using either a *Host-based rule* to match all requests on the desired domain or explicitly defining a rule that includes both path prefixes.
Here are some examples:
```bash tab="Host Rule"
# The dashboard can be accessed on http://traefik.example.com/dashboard/
rule = "Host(`traefik.example.com`)"
```
```bash tab="Path Prefix Rule"
# The dashboard can be accessed on http://example.com/dashboard/ or http://traefik.example.com/dashboard/