Flexible access to your data

Your data is readily accessible through a flexible and extensible GraphQL query interface. Access your resources such as in-app purchases, events, products and more with granular specificity.
GraphQLGraphQL Logo

Why GraphQL?

Because of its flexibility and powerful, extensible query interface, Mbaasy takes full advantage of the GraphQL query language. Our GraphQL API is fully documented and auto discoverable allowing you to perform custom queries against your data stored with Mbaasy.

GraphQL in a Nutshell

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.

GraphQL Query Interface

When signed-in to your account, you can access our GraphQL Query Interface. From within the UI, you can perform any custom query you choose, as well as view the complete documentation.
Access the GraphQL Query Interface
GraphQL Query Interface

Authentication

Authentication to the GraphQL API uses JSON Web Tokens (JWT) for secure, authenticated access. To create an JWT Token, first make a POST request to https://api.mbaasy.com/tokens with your email or username and your password in the post request payload.

A valid response will contain your JWT Token which you can use to perform queries against the Mbaasy GraphQL API.

curl -X POST https://api.mbaasy.com/tokens \  -H 'Accept: application/json' \  -H 'Content-Type: application/json' \  -d '{"username": "YOUR USER NAME OR EMAIL", "password": "YOUR PASSWORD"}'

Performing Queries and Mutations

To execute a query or mutation, perform a POST request to https://api.mbaasy.com/graphql with a valid JWT Token in the Authorization header.

A valid response will contain your JWT Token which you can use to perform queries against the Mbaasy GraphQL API.

curl -X POST https://api.mbaasy.com/graphql \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR JWT TOKEN' \ -d '{"query": "query { viewer { appFamilies(first: 10) { edges { node { uuid } } } } }"}'

Further Reading

Getting started with GraphQL is easy and there are a ton of great tutorials and resources to choose from:

We hope you have fun learning and playing with GraphQL as much as we did. You can always reach out to us if you need any further help.

Register for early access

  • Yes Unlimited 30 day free trial
  • Yes 2,500 free events / month

Frequently Asked Questions