---
title: Create Spectrum application using a name for the origin
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api)

[Spectrum](https://developers.cloudflare.com/api/resources/spectrum)

[Apps](https://developers.cloudflare.com/api/resources/spectrum/subresources/apps)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Create Spectrum application using a name for the origin

POST/zones/{zone\_id}/spectrum/apps

Creates a new Spectrum application from a configuration using a name for the origin.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Zone Settings Write`

##### P ath ParametersExpand Collapse

zone\_id: string

Zone identifier.

maxLength32

[Link to this property](<#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20zone_id%20%3E%20(schema)>)

##### Body ParametersJSONExpand Collapse

<details>

<summary>

body: object {id, created\_on, dns, 13 more } or object {id, created\_on, dns, 3 more }

</summary>

One of the following:

<details>

<summary>

SpectrumConfigAppConfig object {id, created\_on, dns, 13 more }

</summary>

id: string

App identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20id">Link to this property</a>

created\_on: string

When the Application was created.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

dns: <a href="https://developers.cloudflare.com/api/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)">DNS</a> { name, type }

The name and type of DNS record for the Spectrum application.

</summary>

name: optional string

The name of the DNS record associated with the application.

formathostname

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

type: optional "CNAME"or "ADDRESS"

The type of DNS record associated with the application.

</summary>

One of the following:

"CNAME"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"ADDRESS"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns">Link to this property</a>

modified\_on: string

When the Application was last modified.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20modified_on">Link to this property</a>

protocol: string

The port configuration at Cloudflare’s edge. May specify a single port, for example <code>"tcp/1000"</code>, or a range of ports, for example <code>"tcp/1000-2000"</code>.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20protocol">Link to this property</a>

<details>

<summary>

traffic\_type: "direct"or "http"or "https"or "worker"

Determines how data travels from the edge to your origin. When set to “direct”, Spectrum will send traffic directly to your origin, and the application’s type is derived from the <code>protocol</code>. When set to “http” or “https”, Spectrum will apply Cloudflare’s HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly. When set to “worker”, traffic is sent to the Worker specified by <code>origin_worker_id</code>.

</summary>

One of the following:

"direct"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%200">Link to this property</a>

"http"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%201">Link to this property</a>

"https"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%202">Link to this property</a>

"worker"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type">Link to this property</a>

argo\_smart\_routing: optional boolean

Enables Argo Smart Routing for this application. Notes: Only available for TCP or UDP applications with traffic\_type set to “direct”.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20argo_smart_routing">Link to this property</a>

<details>

<summary>

edge\_ips: optional <a href="https://developers.cloudflare.com/api/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)">EdgeIPs</a>

The anycast edge IP configuration for the hostname of this application.

</summary>

One of the following:

<details>

<summary>

Dynamic object {connectivity, type }

</summary>

<details>

<summary>

connectivity: optional "all"or "ipv4"or "ipv6"

The IP versions supported for inbound connections on Spectrum anycast IPs.

</summary>

One of the following:

"all"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20connectivity%20%3E%20(member)%200">Link to this property</a>

"ipv4"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20connectivity%20%3E%20(member)%201">Link to this property</a>

"ipv6"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20connectivity%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20connectivity">Link to this property</a>

type: optional "dynamic"

The type of edge IP configuration specified. Dynamically allocated edge IPs use Spectrum anycast IPs in accordance with the connectivity you specify. Only valid with CNAME DNS names.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

Static object {ips, type }

</summary>

ips: optional array of string

The array of customer owned IPs we broadcast via anycast for this hostname and application.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20ips">Link to this property</a>

type: optional "static"

The type of edge IP configuration specified. Statically allocated edge IPs use customer IPs in accordance with the ips array you specify. Only valid with ADDRESS DNS names.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips">Link to this property</a>

ip\_firewall: optional boolean

Enables IP Access Rules for this application. Notes: Only available for TCP applications.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20ip_firewall">Link to this property</a>

origin\_direct: optional array of string

List of origin IP addresses. Array may contain multiple IP addresses for load balancing.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_direct">Link to this property</a>

<details>

<summary>

origin\_dns: optional <a href="https://developers.cloudflare.com/api/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)">OriginDNS</a> { name, ttl, type }

The name and type of DNS record for the Spectrum application.

</summary>

name: optional string

The name of the DNS record associated with the origin.

formathostname

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

ttl: optional number

The TTL of our resolution of your DNS record in seconds.

minimum600

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20ttl">Link to this property</a>

<details>

<summary>

type: optional ""or "A"or "AAAA"or "SRV"

The type of DNS record associated with the origin. "" is used to specify a combination of A/AAAA records.

</summary>

One of the following:

""

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"A"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"AAAA"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

"SRV"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns">Link to this property</a>

<details>

<summary>

origin\_port: optional <a href="https://developers.cloudflare.com/api/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)">OriginPort</a>

The destination port at the origin. Only specified in conjunction with origin\_dns. May use an integer to specify a single origin port, for example <code>1000</code>, or a string to specify a range of origin ports, for example <code>"1000-2000"</code>. Notes: If specifying a port range, the number of ports in the range must match the number of ports specified in the “protocol” field.

maximum65535

minimum1

</summary>

One of the following:

number

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_port%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

string

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_port%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_port">Link to this property</a>

origin\_worker\_id: optional string

Optional Worker script tag (worker ID) to use as the application’s origin. Only supported for TCP applications with traffic\_type “worker”; mutually exclusive with origin\_direct, origin\_dns, origin\_port, proxy\_protocol, and argo\_smart\_routing. tls may only be “off” or “flexible”.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_worker_id">Link to this property</a>

<details>

<summary>

proxy\_protocol: optional "off"or "v1"or "v2"or "simple"

Enables Proxy Protocol to the origin. Refer to <a href="https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/">Enable Proxy protocol</a> for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.

</summary>

One of the following:

"off"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%200">Link to this property</a>

"v1"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%201">Link to this property</a>

"v2"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%202">Link to this property</a>

"simple"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol">Link to this property</a>

<details>

<summary>

tls: optional "off"or "flexible"or "full"or "strict"

The type of TLS termination associated with the application.

</summary>

One of the following:

"off"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%200">Link to this property</a>

"flexible"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%201">Link to this property</a>

"full"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%202">Link to this property</a>

"strict"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls">Link to this property</a>

virtual\_network\_id: optional string

Optional UUID of a virtual network for routing origin traffic through tunnel virtual networks.

formatuuid

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20virtual_network_id">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

SpectrumConfigPaygoAppConfig object {id, created\_on, dns, 3 more }

</summary>

id: string

App identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

created\_on: string

When the Application was created.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

dns: <a href="https://developers.cloudflare.com/api/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)">DNS</a> { name, type }

The name and type of DNS record for the Spectrum application.

</summary>

name: optional string

The name of the DNS record associated with the application.

formathostname

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

type: optional "CNAME"or "ADDRESS"

The type of DNS record associated with the application.

</summary>

One of the following:

"CNAME"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"ADDRESS"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns">Link to this property</a>

modified\_on: string

When the Application was last modified.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20modified_on">Link to this property</a>

protocol: string

The port configuration at Cloudflare’s edge. May specify a single port, for example <code>"tcp/1000"</code>, or a range of ports, for example <code>"tcp/1000-2000"</code>.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20protocol">Link to this property</a>

origin\_direct: optional array of string

List of origin IP addresses. Array may contain multiple IP addresses for load balancing.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20origin_direct">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(params)%200%20%3E%20(param)%20body%20%3E%20(schema)>)

##### ReturnsExpand Collapse

<details>

<summary>

errors: array of object {code, message, documentation\_url, source }

</summary>

code: number

minimum1000

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: string

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: optional string

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: optional object {pointer }

</summary>

pointer: optional string

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20errors%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20errors>)

<details>

<summary>

messages: array of object {code, message, documentation\_url, source }

</summary>

code: number

minimum1000

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

message: string

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20message">Link to this property</a>

documentation\_url: optional string

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20documentation_url">Link to this property</a>

<details>

<summary>

source: optional object {pointer }

</summary>

pointer: optional string

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source%20%3E%20(property)%20pointer">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20messages%20%3E%20(items)%20%3E%20(property)%20source">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20messages>)

success: true

Whether the API call was successful.

[Link to this property](<#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20success>)

<details>

<summary>

result: optional object {id, created\_on, dns, 13 more } or object {id, created\_on, dns, 3 more }

</summary>

One of the following:

<details>

<summary>

SpectrumConfigAppConfig object {id, created\_on, dns, 13 more }

</summary>

id: string

App identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20id">Link to this property</a>

created\_on: string

When the Application was created.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

dns: <a href="https://developers.cloudflare.com/api/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)">DNS</a> { name, type }

The name and type of DNS record for the Spectrum application.

</summary>

name: optional string

The name of the DNS record associated with the application.

formathostname

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

type: optional "CNAME"or "ADDRESS"

The type of DNS record associated with the application.

</summary>

One of the following:

"CNAME"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"ADDRESS"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20dns">Link to this property</a>

modified\_on: string

When the Application was last modified.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20modified_on">Link to this property</a>

protocol: string

The port configuration at Cloudflare’s edge. May specify a single port, for example <code>"tcp/1000"</code>, or a range of ports, for example <code>"tcp/1000-2000"</code>.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20protocol">Link to this property</a>

<details>

<summary>

traffic\_type: "direct"or "http"or "https"or "worker"

Determines how data travels from the edge to your origin. When set to “direct”, Spectrum will send traffic directly to your origin, and the application’s type is derived from the <code>protocol</code>. When set to “http” or “https”, Spectrum will apply Cloudflare’s HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly. When set to “worker”, traffic is sent to the Worker specified by <code>origin_worker_id</code>.

</summary>

One of the following:

"direct"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%200">Link to this property</a>

"http"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%201">Link to this property</a>

"https"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%202">Link to this property</a>

"worker"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20traffic_type">Link to this property</a>

argo\_smart\_routing: optional boolean

Enables Argo Smart Routing for this application. Notes: Only available for TCP or UDP applications with traffic\_type set to “direct”.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20argo_smart_routing">Link to this property</a>

<details>

<summary>

edge\_ips: optional <a href="https://developers.cloudflare.com/api/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)">EdgeIPs</a>

The anycast edge IP configuration for the hostname of this application.

</summary>

One of the following:

<details>

<summary>

Dynamic object {connectivity, type }

</summary>

<details>

<summary>

connectivity: optional "all"or "ipv4"or "ipv6"

The IP versions supported for inbound connections on Spectrum anycast IPs.

</summary>

One of the following:

"all"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20connectivity%20%3E%20(member)%200">Link to this property</a>

"ipv4"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20connectivity%20%3E%20(member)%201">Link to this property</a>

"ipv6"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20connectivity%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20connectivity">Link to this property</a>

type: optional "dynamic"

The type of edge IP configuration specified. Dynamically allocated edge IPs use Spectrum anycast IPs in accordance with the connectivity you specify. Only valid with CNAME DNS names.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

Static object {ips, type }

</summary>

ips: optional array of string

The array of customer owned IPs we broadcast via anycast for this hostname and application.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20ips">Link to this property</a>

type: optional "static"

The type of edge IP configuration specified. Statically allocated edge IPs use customer IPs in accordance with the ips array you specify. Only valid with ADDRESS DNS names.

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips%20%2B%20(resource)%20spectrum%20%3E%20(model)%20edge_ips%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20edge_ips">Link to this property</a>

ip\_firewall: optional boolean

Enables IP Access Rules for this application. Notes: Only available for TCP applications.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20ip_firewall">Link to this property</a>

origin\_direct: optional array of string

List of origin IP addresses. Array may contain multiple IP addresses for load balancing.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_direct">Link to this property</a>

<details>

<summary>

origin\_dns: optional <a href="https://developers.cloudflare.com/api/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)">OriginDNS</a> { name, ttl, type }

The name and type of DNS record for the Spectrum application.

</summary>

name: optional string

The name of the DNS record associated with the origin.

formathostname

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

ttl: optional number

The TTL of our resolution of your DNS record in seconds.

minimum600

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20ttl">Link to this property</a>

<details>

<summary>

type: optional ""or "A"or "AAAA"or "SRV"

The type of DNS record associated with the origin. "" is used to specify a combination of A/AAAA records.

</summary>

One of the following:

""

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"A"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

"AAAA"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

"SRV"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_dns%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_dns">Link to this property</a>

<details>

<summary>

origin\_port: optional <a href="https://developers.cloudflare.com/api/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)">OriginPort</a>

The destination port at the origin. Only specified in conjunction with origin\_dns. May use an integer to specify a single origin port, for example <code>1000</code>, or a string to specify a range of origin ports, for example <code>"1000-2000"</code>. Notes: If specifying a port range, the number of ports in the range must match the number of ports specified in the “protocol” field.

maximum65535

minimum1

</summary>

One of the following:

number

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_port%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

string

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_port%20%2B%20(resource)%20spectrum%20%3E%20(model)%20origin_port%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_port">Link to this property</a>

origin\_worker\_id: optional string

Optional Worker script tag (worker ID) to use as the application’s origin. Only supported for TCP applications with traffic\_type “worker”; mutually exclusive with origin\_direct, origin\_dns, origin\_port, proxy\_protocol, and argo\_smart\_routing. tls may only be “off” or “flexible”.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20origin_worker_id">Link to this property</a>

<details>

<summary>

proxy\_protocol: optional "off"or "v1"or "v2"or "simple"

Enables Proxy Protocol to the origin. Refer to <a href="https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/">Enable Proxy protocol</a> for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.

</summary>

One of the following:

"off"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%200">Link to this property</a>

"v1"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%201">Link to this property</a>

"v2"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%202">Link to this property</a>

"simple"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20proxy_protocol">Link to this property</a>

<details>

<summary>

tls: optional "off"or "flexible"or "full"or "strict"

The type of TLS termination associated with the application.

</summary>

One of the following:

"off"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%200">Link to this property</a>

"flexible"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%201">Link to this property</a>

"full"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%202">Link to this property</a>

"strict"

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20tls">Link to this property</a>

virtual\_network\_id: optional string

Optional UUID of a virtual network for routing origin traffic through tunnel virtual networks.

formatuuid

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20virtual_network_id">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

SpectrumConfigPaygoAppConfig object {id, created\_on, dns, 3 more }

</summary>

id: string

App identifier.

maxLength32

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20id">Link to this property</a>

created\_on: string

When the Application was created.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20created_on">Link to this property</a>

<details>

<summary>

dns: <a href="https://developers.cloudflare.com/api/resources/spectrum#(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)">DNS</a> { name, type }

The name and type of DNS record for the Spectrum application.

</summary>

name: optional string

The name of the DNS record associated with the application.

formathostname

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

<details>

<summary>

type: optional "CNAME"or "ADDRESS"

The type of DNS record associated with the application.

</summary>

One of the following:

"CNAME"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

"ADDRESS"

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns%20%2B%20(resource)%20spectrum%20%3E%20(model)%20dns%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20dns">Link to this property</a>

modified\_on: string

When the Application was last modified.

formatdate-time

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20modified_on">Link to this property</a>

protocol: string

The port configuration at Cloudflare’s edge. May specify a single port, for example <code>"tcp/1000"</code>, or a range of ports, for example <code>"tcp/1000-2000"</code>.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20protocol">Link to this property</a>

origin\_direct: optional array of string

List of origin IP addresses. Array may contain multiple IP addresses for load balancing.

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20origin_direct">Link to this property</a>

</details>

<a href="#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result%20%2B%20(resource)%20spectrum.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20spectrum.apps%20%3E%20(method)%20create%20%3E%20(network%20schema)%20%3E%20(property)%20result>)

### Create Spectrum application using a name for the origin

HTTP

HTTPTypeScriptPythonGoTerraform

```
curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/spectrum/apps \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
    -d '{
          "dns": {},
          "protocol": "tcp/22",
          "traffic_type": "direct",
          "argo_smart_routing": true,
          "origin_port": 22,
          "origin_worker_id": "277b7815c871434b960b60729659000a",
          "proxy_protocol": "off",
          "tls": "off"
        }'
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "id": "023e105f4ecef8ad9ca31a8372d0c353",
    "created_on": "2014-01-01T05:20:00.12345Z",
    "dns": {
      "name": "ssh.example.com",
      "type": "CNAME"
    },
    "modified_on": "2014-01-01T05:20:00.12345Z",
    "protocol": "tcp/22",
    "traffic_type": "direct",
    "argo_smart_routing": true,
    "edge_ips": {
      "connectivity": "all",
      "type": "dynamic"
    },
    "ip_firewall": false,
    "origin_direct": [
      "tcp://127.0.0.1:8080"
    ],
    "origin_dns": {
      "name": "origin.example.com",
      "ttl": 600,
      "type": ""
    },
    "origin_port": 22,
    "origin_worker_id": "277b7815c871434b960b60729659000a",
    "proxy_protocol": "off",
    "tls": "off",
    "virtual_network_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "id": "023e105f4ecef8ad9ca31a8372d0c353",
    "created_on": "2014-01-01T05:20:00.12345Z",
    "dns": {
      "name": "ssh.example.com",
      "type": "CNAME"
    },
    "modified_on": "2014-01-01T05:20:00.12345Z",
    "protocol": "tcp/22",
    "traffic_type": "direct",
    "argo_smart_routing": true,
    "edge_ips": {
      "connectivity": "all",
      "type": "dynamic"
    },
    "ip_firewall": false,
    "origin_direct": [
      "tcp://127.0.0.1:8080"
    ],
    "origin_dns": {
      "name": "origin.example.com",
      "ttl": 600,
      "type": ""
    },
    "origin_port": 22,
    "origin_worker_id": "277b7815c871434b960b60729659000a",
    "proxy_protocol": "off",
    "tls": "off",
    "virtual_network_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
  }
}
```