Can't DELETE Customer: "Customers are not allowed to access product and organization endpoints"

I’m trying to Delete a customer:
https://docs.particle.io/reference/device-cloud/api/#delete-a-customer

But the requests fails with a 400 response:

{
“error”: “invalid_scope”,
“error_description”: “Customers are not allowed to access product and organization endpoints”
}

The access token I was using was my Particle Account’s access token I generated using the Particle CLI:
https://docs.particle.io/reference/developer-tools/cli/#particle-token-create

I suspected I needed to use a Customer Scoped Access Token, and generated one:
https://docs.particle.io/reference/device-cloud/api/#generate-a-customer-scoped-access-token

But when I used the resulting access_token as the Bearer token for my Delete Customer request, I hit the same 400 error “Customers are not allowed to access product and organization endpoints”

What’s this error response telling me to change about my request?

Customers can’t delete themselves. You need to use a product-level token, as described here.

Did you create one of those (using the product ID and product secret) or one based on username and password, before you tried using a customer token?

Thank you Rickkas. I was using the wrong token as the access token for the call. The documentation you linked to in github is very clear and much easier to understand than what’s currently in The Cloud API Reference Documentation for Authentication. Is there any chance the documentation you linked to could replace what’s currently here? Cloud API | Reference Documentation | Particle