Skip to content

Testing Access to a Restricted Query

Adding Your Credential Information

After confirming you can access an unrestricted query, test access to a restricted query to ensure authentication is working correctly. First, get your authentication credential using one of the methods described in How to Authenticate. Add your credendial by clicking the Set Headers button in Altair (shown in red below) and entering the header values.

Screenshot: Adding confidential information
Adding Credential Information

Executing the Query

In the query panel, enter

{ secretGreeting { response errors } }

and click the Send Request button. If you entered your credential correctly, the API will greet you by name, as shown below in red.

Screenshot: restricted query
A Restricted Query