Skip to content

Magento2 graphql query with access token

How can we add the header parameters in graphql (altair) with authorisation token like postman.

In magento2 we have an option in admin system->intergration and we can the add new integration it will generate life time access token for accessing the magento2 data.

So,We need to restrict without this integration access token in headers parameter we don’t allow the data by graphql.

How can we do this?