Domains

Add allowed hostname

Adds a hostname to the domain's allowed-hostnames list.

post/domains/allowedHostnames/{domainId}

Request

  • Base URL: https://api.short.io
  • URL: https://api.short.io/domains/allowedHostnames/{domainId}
  • Auth: API key in header Authorization

Path parameters

domainIdinteger required

Domain ID

Request body

hostnamestring required

Referrer hostname allowed to use this domain's links

Example request

{
  "hostname": "app.example.com"
}

Response

Default Response

Changes

No recorded changes to this operation across all 1 revision of this API.