GraphQL query for information about list of product IDs not working

I have a list of product IDs, and I’m trying to obtain certain information about each of them. From what I could find, I thought this command should do the trick:

#!/bin/bash

curl -X POST https://{our-shop}.myshopify.com/admin/api/2024-07/graphql.json \
  -H 'Content-Type: application/json' \
  -H 'X-Shopify-Access-Token: {our-token}' \
  -i \
  -d '{
    "query": "query {
      nodes(ids: [\"gid://shopify/Product/{some-product-id}\")]) {
        ... on Product {
          id
          title
        }
      }"
    }'

But the only thing I receive is a 400 Bad Request. Anyone any idea what I’m doing wrong? Something wrong with the quotes perhaps?