# Custom private networks: How to find out the name of the network an application belongs to?

**URL:** <https://community.fly.io/t/custom-private-networks-how-to-find-out-the-name-of-the-network-an-application-belongs-to/21702>\
**Category:** General\
**Tags:** login-only\
**Created:** [September 6, 2024, 3:57pm UTC](https://community.fly.io/t/custom-private-networks-how-to-find-out-the-name-of-the-network-an-application-belongs-to/21702 "2024-09-06T15:57:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mayailurus](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/mayailurus/32/17593_2.png) [@mayailurus](https://community.fly.io/u/mayailurus)\
**Post date:** [September 6, 2024, 4:27pm UTC](https://community.fly.io/t/custom-private-networks-how-to-find-out-the-name-of-the-network-an-application-belongs-to/21702/2 "2024-09-06T16:27:13Z")

</div>

Hi… It looks like a fellow user found a way for the first part recently, although it’s not very pretty:

> [@custom network visibility](https://community.fly.io/t/custom-network-visibility/21120/3):
>
> The [List Apps API](https://fly.io/docs/machines/api/apps-resource/#list-apps-in-an-organization) gets the right info though, there seems to be some discrepancy between flyctl and the Machines API
> 
> ```plaintext
> $ curl -i -X GET -H "Authorization: Bearer ${FLY_API_TOKEN}" \
> -H "Content-Type: application/json" \
> "${FLY_API_HOSTNAME}/v1/apps?org_slug=personal"
> 
> ```
> 
> ```json
> {"total_apps":1,"apps":[
> {"id":"p7vx1j0008wqk3z5",
> "name":"app-foo",
> "machine_count":1,
> "network":"app-foo-nw"}
> ]}
> 
> ```

[Formatting tweaked.]

(This was for something originally created via `fly apps create app-foo --network app-foo-nw`.)

Hope this helps a little!

---

_[View the full topic](https://community.fly.io/t/custom-private-networks-how-to-find-out-the-name-of-the-network-an-application-belongs-to/21702)._
