Galaxy API
GraphQL API Docs
Setup Guide
const query = `query getProfile() {
profile {
displayName
pfp
}
}`
const { profile } = fetch("https://galaxy.rollup.id/graphql", {
method: "post",
headers: {
"Authorization": `Bearer ${jwt}`,
"X-GALAXY-KEY": "...",
},
body: JSON.stringify({ query }),
})
.then(r => r.json())
.catch(err => {
console.error(err) // something went wrong
return { profile: null }
})Definitions
X-Galaxy-Key Header
Authorization Header
API Playground
Last updated