Use delegate tokens

Delegate access tokens are an artifact for making requests from private or authenticated contexts, like a server.

If you create a custom storefront with the Headless channel, then Shopify creates public and private access tokens for you.

This guide familiarizes you with delegate access tokens and describes how to create a delegate access token using either the GraphQL or REST Admin APIs.