When I call API, error occurs

Thanks for chiming in @balake, and welcome to the community !

@ayethirithan94 In addition to what @balake has said, you shouldn’t be requesting for nor using a Management API Access token on your frontend. The only exception is a minimally scoped token outlined here.

In order to create a user, you will want to look into proxying this request through a backend using a properly scoped Management API access token.

Cheers!