Skip to main content
Use this endpoint to set forwarding on existing domains or raw domain names on paid, accepted orders in your account. If the domain is still being created, Peeker saves your destination and applies it automatically when setup is ready. You can also set forwarding_url while placing the order. 202 means saved and queued. It does not mean the redirect is working yet. The 72-hour window includes both setup and provider retries. Sandbox requests still require a domain record and never write to live Cloudflare. Forwarding is always an async job (fwj_…). See Async jobs.

Start the job

POST /domains/forwarding accepts up to 25 domains. Each entry can be a dom_... ID or a domain name.
The API returns a job:
Send an optional Idempotency-Key header when retrying the same request. The same key, domain selectors, and destination return the same job. Reusing that key with different settings returns 409. A new key creates a new request; a newer accepted destination supersedes the older one.

Track the result

Poll GET /domains/forwarding/{id} until the status is completed, partial_success, or failed. Already-correct domains are returned in completed. While status is in_progress, check pending: When present, next_attempt_at is the next scheduled check. Setup events can resume the job sooner. A batch may contain completed, failed, and pending domains at the same time; the final webhook waits until all domains have settled.
Public failure reasons include domain_not_found, not_connected_to_cloudflare, forwarding_update_failed, and superseded (a newer forwarding change replaced this one). Requests accepted before domain creation can also end with order_cancelled, order_domain_changed (the original reservation was removed or reassigned), domain_setup_failed, or domain_setup_expired (no domain record within 72 hours). A failed domain that no longer exists is shown as unknown. Correct the issue, then submit a new job for the failed domains.

List forwarding jobs

GET /domains/forwarding lists jobs newest first. Filter with ?status=. It also shows bulk forwarding changes started in the Peeker dashboard, marked origin: "dashboard". Those can clear forwarding: action is then remove and forwarding_url is empty. List counts are final once a job finishes; get a job by ID for live per-domain results.

Place an order

Set forwarding while creating the order.

Webhooks

Verify signatures and handle duplicate delivery.
Last modified on October 28, 2026