Programmatically create and manage apps

Hello there, I’m building a platform where users can deploy a websocket server along with a redis instance by simply clicking a button, ideally I’d like to build my platform with fly but I don’t see an API I can use to create apps, manage their environment variables, etc. Is this currently possible?

It is. In fact, everything the flyctl command (which is open source) does, it does through our GraphQL API. You can find our GQL schema here:

And, if you’re interested in seeing what flyctl is actually doing with the API for any given command, you can find its source here:

Let us know if you have questions! If you search the forum for “GraphQL” or “API”, you’ll find other people using it as well.

Oh wow, that’s AWESOME to hear! Thank you so much.

1 Like