Galaxy API
GraphQL API Docs
Last updated
Was this helpful?
GraphQL API Docs
Last updated
Was this helpful?
Access to Galaxy is served up by a GraphQL (GQL) API at
There are several ways you can consume GQL APIs and we've documented how below. If you are interested in a deeper understanding of GraphQL you can visit the
Option 1: Simple Fetch Client
A simple fetch client is the fastest way to consume a GQL API if you are not using GQL anywhere else in your application since this method requires no new dependencies.
Here is a simple example of using fetch with Galaxy.
In this example we are calling the Galaxy "profile" resolver and asking it to return two fields.
Here is the same operation but with two resolvers this time:
In this example get two responses. One from "profile" and one from "gallery. Then we merge the response into one profile object. And here is one more example operation with variables:
Our recommended approach is to use a general purpose GQL Client. One such client we recommend for Javascript is
A popular tool for generating client is the With the generator you can reference the Galaxy API schema at http://galaxy.rollup.id in your and ahead of time too.
This is the API Key that can be found in the dashboard of your App and is required to authenticate into the Galaxy API.
This is where you provide the JWT received from your user sessions after the .
To see the entire API definition you can explore the entire Galaxy API at the .