HostnamesAdd hostname
Hostnames

Add hostname

Add a custom hostname to a client tenant. The hostname is verified asynchronously via DNS lookup. Returns 409 Conflict if the hostname is already associated with another client.

curl -X POST "https://api.mythic-analytics.com/api/v1/clients/example_string/hostnames" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "hostname": "analytics.acme-retail.com"
}'
{
  "success": true,
  "data": {
    "hostname": "analytics.acme-retail.com",
    "verified": true,
    "created_at": "2024-06-15T10:30:00.000Z"
  }
}
POST
/clients/{id}/hostnames
POST
Security Scheme
Bearer Tokenstring
Required

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY
path
idstring
Required

Client identifier.

Pattern: ^[a-zA-Z0-9_-]{1,255}$
Content-Typestring
Required

The media type of the request body

Options: application/json
hostnamestring
Required

Fully-qualified domain name to associate with the client.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Path Parameters

idstring
Required

Client identifier.

Body

application/json
hostnamestring
Required

Fully-qualified domain name to associate with the client.

Responses