---
title: Apps
---

[Skip to content](#_top)

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

[Magic Transit](https://developers.cloudflare.com/api/typescript/resources/magic_transit)

Copy Markdown

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

---

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

# Apps

##### [List Apps](https://developers.cloudflare.com/api/typescript/resources/magic_transit/subresources/apps/methods/list)

client.magicTransit.apps.list(AppListParams {account\_id } params, RequestOptionsoptions?): SinglePage< [AppListResponse](<https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)>)>

GET/accounts/{account\_id}/magic/apps

##### [Create a new App](https://developers.cloudflare.com/api/typescript/resources/magic_transit/subresources/apps/methods/create)

client.magicTransit.apps.create(AppCreateParams {account\_id, name, type, 3 more } params, RequestOptionsoptions?): [AppCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)>) {account\_app\_id, hostnames, ip\_subnets, 3 more } | null

POST/accounts/{account\_id}/magic/apps

##### [Update an App](https://developers.cloudflare.com/api/typescript/resources/magic_transit/subresources/apps/methods/update)

client.magicTransit.apps.update(stringaccountAppID, AppUpdateParams {account\_id, hostnames, ip\_subnets, 3 more } params, RequestOptionsoptions?): [AppUpdateResponse](<https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)>) {account\_app\_id, hostnames, ip\_subnets, 3 more } | null

PUT/accounts/{account\_id}/magic/apps/{account\_app\_id}

##### [Update an App](https://developers.cloudflare.com/api/typescript/resources/magic_transit/subresources/apps/methods/edit)

client.magicTransit.apps.edit(stringaccountAppID, AppEditParams {account\_id, hostnames, ip\_subnets, 3 more } params, RequestOptionsoptions?): [AppEditResponse](<https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20app_edit_response%20%3E%20(schema)>) {account\_app\_id, hostnames, ip\_subnets, 3 more } | null

PATCH/accounts/{account\_id}/magic/apps/{account\_app\_id}

##### [Delete Account App](https://developers.cloudflare.com/api/typescript/resources/magic_transit/subresources/apps/methods/delete)

client.magicTransit.apps.delete(stringaccountAppID, AppDeleteParams {account\_id } params, RequestOptionsoptions?): [AppDeleteResponse](<https://developers.cloudflare.com/api/typescript/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20app_delete_response%20%3E%20(schema)>) {account\_app\_id, hostnames, ip\_subnets, 3 more } | null

DELETE/accounts/{account\_id}/magic/apps/{account\_app\_id}

##### ModelsExpand Collapse

<details>

<summary>

AppListResponse = MagicAccountApp {account\_app\_id, hostnames, ip\_subnets, 3 more } | MagicManagedApp {managed\_app\_id, hostnames, ip\_subnets, 3 more }

Collection of Hostnames and/or IP Subnets to associate with traffic decisions.

</summary>

One of the following:

<details>

<summary>

MagicAccountApp {account\_app\_id, hostnames, ip\_subnets, 3 more }

Custom app defined for an account.

</summary>

account\_app\_id: string

Magic account app ID.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20account_app_id">Link to this property</a>

hostnames?: Array&lt;string&gt;

FQDNs to associate with traffic decisions.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20hostnames">Link to this property</a>

ip\_subnets?: Array&lt;string&gt;

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20ip_subnets">Link to this property</a>

name?: string

Display name for the app.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20name">Link to this property</a>

source\_subnets?: Array&lt;string&gt;

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20source_subnets">Link to this property</a>

type?: string

Category of the app.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%200">Link to this property</a>

<details>

<summary>

MagicManagedApp {managed\_app\_id, hostnames, ip\_subnets, 3 more }

Managed app defined by Cloudflare.

</summary>

managed\_app\_id: string

Managed app ID.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20managed_app_id">Link to this property</a>

hostnames?: Array&lt;string&gt;

FQDNs to associate with traffic decisions.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20hostnames">Link to this property</a>

ip\_subnets?: Array&lt;string&gt;

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20ip_subnets">Link to this property</a>

name?: string

Display name for the app.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20name">Link to this property</a>

source\_subnets?: Array&lt;string&gt;

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20source_subnets">Link to this property</a>

type?: string

Category of the app.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)%20%3E%20(variant)%201">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)>)

<details>

<summary>

AppCreateResponse {account\_app\_id, hostnames, ip\_subnets, 3 more }

Custom app defined for an account.

</summary>

account\_app\_id: string

Magic account app ID.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(property)%20account_app_id">Link to this property</a>

hostnames?: Array&lt;string&gt;

FQDNs to associate with traffic decisions.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(property)%20hostnames">Link to this property</a>

ip\_subnets?: Array&lt;string&gt;

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(property)%20ip_subnets">Link to this property</a>

name?: string

Display name for the app.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

source\_subnets?: Array&lt;string&gt;

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(property)%20source_subnets">Link to this property</a>

type?: string

Category of the app.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)>)

<details>

<summary>

AppUpdateResponse {account\_app\_id, hostnames, ip\_subnets, 3 more }

Custom app defined for an account.

</summary>

account\_app\_id: string

Magic account app ID.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(property)%20account_app_id">Link to this property</a>

hostnames?: Array&lt;string&gt;

FQDNs to associate with traffic decisions.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(property)%20hostnames">Link to this property</a>

ip\_subnets?: Array&lt;string&gt;

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(property)%20ip_subnets">Link to this property</a>

name?: string

Display name for the app.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

source\_subnets?: Array&lt;string&gt;

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(property)%20source_subnets">Link to this property</a>

type?: string

Category of the app.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)>)

<details>

<summary>

AppEditResponse {account\_app\_id, hostnames, ip\_subnets, 3 more }

Custom app defined for an account.

</summary>

account\_app\_id: string

Magic account app ID.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_edit_response%20%3E%20(schema)%20%3E%20(property)%20account_app_id">Link to this property</a>

hostnames?: Array&lt;string&gt;

FQDNs to associate with traffic decisions.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_edit_response%20%3E%20(schema)%20%3E%20(property)%20hostnames">Link to this property</a>

ip\_subnets?: Array&lt;string&gt;

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_edit_response%20%3E%20(schema)%20%3E%20(property)%20ip_subnets">Link to this property</a>

name?: string

Display name for the app.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_edit_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

source\_subnets?: Array&lt;string&gt;

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_edit_response%20%3E%20(schema)%20%3E%20(property)%20source_subnets">Link to this property</a>

type?: string

Category of the app.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_edit_response%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.apps%20%3E%20(model)%20app_edit_response%20%3E%20(schema)>)

<details>

<summary>

AppDeleteResponse {account\_app\_id, hostnames, ip\_subnets, 3 more }

Custom app defined for an account.

</summary>

account\_app\_id: string

Magic account app ID.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_delete_response%20%3E%20(schema)%20%3E%20(property)%20account_app_id">Link to this property</a>

hostnames?: Array&lt;string&gt;

FQDNs to associate with traffic decisions.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_delete_response%20%3E%20(schema)%20%3E%20(property)%20hostnames">Link to this property</a>

ip\_subnets?: Array&lt;string&gt;

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_delete_response%20%3E%20(schema)%20%3E%20(property)%20ip_subnets">Link to this property</a>

name?: string

Display name for the app.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_delete_response%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

source\_subnets?: Array&lt;string&gt;

IPv4 CIDRs to associate with traffic decisions. (IPv6 CIDRs are currently unsupported)

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_delete_response%20%3E%20(schema)%20%3E%20(property)%20source_subnets">Link to this property</a>

type?: string

Category of the app.

<a href="#(resource)%20magic_transit.apps%20%3E%20(model)%20app_delete_response%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20magic_transit.apps%20%3E%20(model)%20app_delete_response%20%3E%20(schema)>)