Destinations

A destination is the public HTTPS service to which the edge forwards traffic after TLS termination.

List destinations

GET /destinations · response 200

Create a destination

POST /destinations · scope destinations:write · idempotent · response 201

BASH
curl -X POST https://api.subdomain.to/v1/destinations \
  -H "Authorization: Bearer $SUBDOMAIN_TO_API_KEY" \
  -H "Idempotency-Key: main-destination" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://app.example.com"}'

The first destination becomes the account default. Only public HTTPS services on port 443 or 8443 are accepted.