Please check the API scope: it should be read_customers and write_customers scopes if any doubt then reinstall the app. Also, check the API version in your requests (2023-01 for REST and 2024-10 for GraphQL)