---
title: "Secure Mini with a TLS certificate on this domain"
method: POST
path: "/domain-name"
tags: ["configuration"]
---

# Secure Mini with a TLS certificate on this domain

`POST /domain-name`

Adds domain name for your Snowplow Mini.  After adding the domain name, your http listener will be secured with TLS.  Make sure that the given domain name is resolving to the Snowplow Mini instance IP address. This feature only works if Mini is running on a AWS EC2 instance with a public IP address.

## Response `default`

You will always get empty reply from the server because Caddy server will be restarted after the domain name is submitted, and the connection will be lost until Caddy server is back up and running.

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/snowplow/apis/snowplow-mini.md) · [All operations](https://skmtc.net/snowplow/apis/snowplow-mini/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/snowplow/snowplow-mini/revisions/a18ed17799ee/schema)
