How to get Organization ID?

I’m testing out launching an app through the graphql api and can’t find the organization ID anywhere.

I’ve created one but when I use the slug it says it couldn’t find a node with that ID, so I’m assuming it’s something other than the slug? If so, where can I find it?

You can fetch it via graphql with:

query {
	organizations {
    edges {
      node {
        name
        id
      }
    }
  }
}

You can also run flyctl orgs show personal --json which prints includes it in the output

2 Likes