Connecting to the storefront API


I’m trying to simply get the list of categories with the following JS script but all I get is a 404 error.

The docs also say that "The Storefront API does only require the client_id, which you can find in the Administration -> Sales Channel. "

But I can’t find a client_id in the Administration.

fetch('', {
  headers: new Headers({
    'x-sw-access-key': 'SWSCY2NIOUYWUEVHEES4BTVFQQ'
}).then(result => result.json().then(result => {