GraphQL API (Enerflo 2.0)

Enerflo v2.0 is powered by a robust GraphQL API. If you're new to GraphQL, we recommend visiting GraphQL.org to familiarize yourself with core concepts like Queries, Mutations, Schemas, and Introspection. This foundation will help you effectively interact with Enerflo's GraphQL API, which adheres to the GraphQL standard.

All GraphQL requests must contain 4 key components:

  1. The correct API endpoint: This is ALWAYS https://api.enerflo.io/graphql
  2. A valid x-org header. This is ALWAYS the value of your enerflo subdomain.
  3. An Authorization header which contains your API key as a Bearer token. (If any of that sounds unfamiliar please consider these two resources):
    1. Generating an API key (sometimes referred to as Bearer token)
    2. Authenticating my GraphQL API Request
  4. A properly formed GraphQL Query or Mutation

The request itself can be issued from any source that can adhere to the formatting requirements of the graphql specification.

While there are dozens GraphQL clients or IDEs that that could do this for you, we'll highlight three that are popular in our community:

Our favorite GraphQL clients include:

  1. GraphQL Playground
  2. Postman
  3. Hasura.io