Graphql schema documentation

link GraphQL Schema definition

Authenticating with GraphQL

To communicate with the GraphQL server, you'll need an Authentication token with the right scopes.

Use the user "email" and "password" to get a token from REACH Server. The scopes you require depends on the type of data you're trying to request.


For example, select the User scopes to request user data. If you need access to event information, select the appropriate Event scopes.


Sample CURL Request

            curl 'http://stage.reach24.net/graphql' \
              -H 'Content-Type: application/json' \
              -d '{ 
              "query": "mutation SigninPayload($load: AuthProviderInput!){signinUser (load: $load) {token user {id name } } }", 
              "variables": {
                  "load":{
                    "email": "john.doe@example.com",
                    "password": "123123123"
                  }
                }
            }'
        

Server returns an authentication token which has to be sent along the headers of subsequent requests.