---
title: "POST /delivery-profiles"
method: POST
path: "/delivery-profiles"
tags: ["Traffic Delivery"]
---

# POST /delivery-profiles

`POST /delivery-profiles`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/delivery-profiles`
- Auth: HTTP bearer

## Request body

- CreateDeliveryProfileRequest
  - `bunny_api_key` string, password, nullable: A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.
  - `bunny_pull_zone_id` integer, nullable
  - `name` string, required
  - `provider_kind` 'direct' | 'cloudflare' | 'bunny', required

## Response `201`

Delivery profile created

- DeliveryProfileResponse
  - `bunny_hostname` string, nullable: Bunny system CDN hostname. Omitted (`null`) for callers without DNS provider read access.
  - `bunny_pull_zone_id` integer, nullable: Bunny Pull Zone ID. Omitted (`null`) for callers without DNS provider read access, who only see the profile's name and kind.
  - `created_at` string, date-time, required
  - `id` integer, required
  - `name` string, required
  - `provider_kind` 'direct' | 'cloudflare' | 'bunny', required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Invalid profile or Bunny Pull Zone configuration
- `401`: Unauthorized
- `403`: Insufficient permissions
- `409`: A profile with this name already exists
- `429`: Bunny API rate limited the request
- `500`: Internal server error
- `502`: Bunny API unreachable or returned an error

## Changes

- **2026-11-18** `4638641fb9a2`: 2 breaking, 1 info
  - the request property `bunny_api_key` became not nullable
  - the `bunny_api_key` request property type changed from `string, null` to no type
  - added `#/components/schemas/SecretString, subschema #2` to the `bunny_api_key` request property `oneOf` list
- **2026-11-09** `12896146b193`: 7 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 `409` status
  - …3 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/delivery-profiles/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)
