Domains

Update domain redirect URLs

Updates redirect URLs for one or more domains. This endpoint allows you to efficiently update redirect URLs for multiple domains in a single request.

Redirect URL Validation

  • Redirect URLs are validated according to RFC standards (same validation as domain names)
  • Protocol (http://, https://) and trailing slashes are automatically removed
  • Redirect URLs are normalized to lowercase
  • Each redirect URL must be a valid domain format (e.g., mysite.com, example.co.in)

Behavior

  • You can update redirect URLs for one or multiple domains in a single request
  • All domain IDs must exist and belong to the authenticated client
  • Duplicate domain IDs in the request are rejected
  • All redirect URLs are validated before any updates are performed (atomic operation)

Use Cases

  • Single domain: Update redirect URL for one domain
  • Multiple domains: Efficiently update redirect URLs for multiple domains at once
  • Bulk operations: Update redirect URLs for up to 100 domains per request
put/api/v1/domains/redirect-urls

Request

  • Base URL: https://api.aerosend.io
  • URL: https://api.aerosend.io/api/v1/domains/redirect-urls
  • Auth: API key in header X-API-Key

Request body

Example request

{
  "domains": [
    {
      "domain_id": 123,
      "redirect_url": "mysite.com"
    },
    {
      "domain_id": 124,
      "redirect_url": "anothersite.com"
    }
  ]
}

Response

Redirect URLs updated successfully

Changes

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