---
title: Apps
---

[Skip to content](#_top)

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

[Magic Transit](https://developers.cloudflare.com/api/python/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/python/resources/magic_transit/subresources/apps/methods/list)

magic\_transit.apps.list(AppListParams\*\*kwargs) -> SyncSinglePage\[[AppListResponse](<https://developers.cloudflare.com/api/python/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/python/resources/magic_transit/subresources/apps/methods/create)

magic\_transit.apps.create(AppCreateParams\*\*kwargs) -> [AppCreateResponse](<https://developers.cloudflare.com/api/python/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20app_create_response%20%3E%20(schema)>)

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

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

magic\_transit.apps.update(straccount\_app\_id, AppUpdateParams\*\*kwargs) -> [AppUpdateResponse](<https://developers.cloudflare.com/api/python/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20app_update_response%20%3E%20(schema)>)

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

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

magic\_transit.apps.edit(straccount\_app\_id, AppEditParams\*\*kwargs) -> [AppEditResponse](<https://developers.cloudflare.com/api/python/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20app_edit_response%20%3E%20(schema)>)

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

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

magic\_transit.apps.delete(straccount\_app\_id, AppDeleteParams\*\*kwargs) -> [AppDeleteResponse](<https://developers.cloudflare.com/api/python/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20app_delete_response%20%3E%20(schema)>)

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

##### ModelsExpand Collapse

<details>

<summary>

<a href="https://developers.cloudflare.com/api/python/resources/magic_transit#(resource)%20magic_transit.apps%20%3E%20(model)%20app_list_response%20%3E%20(schema)">AppListResponse</a>

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

</summary>

One of the following:

<details>

<summary>

class MagicAccountApp: …

Custom app defined for an account.

</summary>

account\_app\_id: str

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: Optional\[List\[str]]

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: Optional\[List\[str]]

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: Optional\[str]

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: Optional\[List\[str]]

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: Optional\[str]

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>

class MagicManagedApp: …

Managed app defined by Cloudflare.

</summary>

managed\_app\_id: str

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: Optional\[List\[str]]

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: Optional\[List\[str]]

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: Optional\[str]

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: Optional\[List\[str]]

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: Optional\[str]

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>

class AppCreateResponse: …

Custom app defined for an account.

</summary>

account\_app\_id: str

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: Optional\[List\[str]]

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: Optional\[List\[str]]

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: Optional\[str]

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: Optional\[List\[str]]

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: Optional\[str]

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>

class AppUpdateResponse: …

Custom app defined for an account.

</summary>

account\_app\_id: str

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: Optional\[List\[str]]

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: Optional\[List\[str]]

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: Optional\[str]

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: Optional\[List\[str]]

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: Optional\[str]

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>

class AppEditResponse: …

Custom app defined for an account.

</summary>

account\_app\_id: str

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: Optional\[List\[str]]

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: Optional\[List\[str]]

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: Optional\[str]

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: Optional\[List\[str]]

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: Optional\[str]

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>

class AppDeleteResponse: …

Custom app defined for an account.

</summary>

account\_app\_id: str

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: Optional\[List\[str]]

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: Optional\[List\[str]]

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: Optional\[str]

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: Optional\[List\[str]]

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: Optional\[str]

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)>)