---
title: "POST /projects/{project_id}/domain-delivery-bindings/apply"
method: POST
path: "/projects/{project_id}/domain-delivery-bindings/apply"
tags: ["Traffic Delivery"]
---

# POST /projects/{project_id}/domain-delivery-bindings/apply

`POST /projects/{project_id}/domain-delivery-bindings/apply`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/domain-delivery-bindings/apply`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required

## Request body

- ApplyDomainDeliveryBindingRequest
  - `adopt_records` AdoptDeliveryRecord[]
    - `name` string, required
    - `record_type` 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'MX' | 'NS' | 'SRV' | 'CAA' | 'PTR', required: DNS record types
  - `preview_id` string, required

## Response `200`

Delivery binding applied

- DomainDeliveryBindingResponse
  - `applied_at` string, date-time, required
  - `bunny_hostname_owned` boolean, required: Whether Temps added this hostname to the Bunny Pull Zone. Only then does removing the binding also detach the hostname, and its edge certificate, from the Pull Zone. `false` when the hostname was already on the Pull Zone before Temps set up delivery: removal leaves it attached. Always `false` for Cloudflare and direct bindings.
  - `created_at` string, date-time, required
  - `custom_domain_id` integer, required
  - `delivery_profile_id` integer, required
  - `delivery_profile_name` string, required
  - `dns_provider_id` integer, required
  - `environment_id` integer, required
  - `hostname` string, required
  - `id` integer, required
  - `last_error` string, nullable
  - `origin_target` string, required
  - `profile_source` string, required
  - `project_id` integer, required
  - `provider_kind` 'direct' | 'cloudflare' | 'bunny', required
  - `proxied` boolean, required
  - `record_type` 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'MX' | 'NS' | 'SRV' | 'CAA' | 'PTR', required: DNS record types
  - `status` string, required
  - `updated_at` string, date-time, required
  - `zone` string, required

## Other responses

- `400`: Preview expired, stale, or adoption request invalid
- `401`: Unauthorized
- `403`: Insufficient permissions or preview created by another user
- `404`: Preview, project, environment, profile, DNS provider, or managed zone not found
- `409`: Routing, DNS records, or the DNS provider or managed zone changed since preview, the project or environment is being deleted, or another operation holds the hostname
- `429`: Upstream provider rate limited the request
- `500`: Internal server error
- `502`: DNS or CDN provider unreachable or returned an error

## Changes

- **2026-11-09** `12896146b193`: 8 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - …4 more
- **2026-10-05** `4b228ebed583`: 1 info
  - endpoint added
- **2026-10-05** `63a80791dc58`: 1 breaking
  - api path removed without deprecation
- **2026-10-03** `de8387218c0b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/domain-delivery-bindings/apply/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
