0

I am using bearer token for rest API authentication in Magento2.3.2 but I am facing one issue, while registering the new user, admin authentication token is required while registering New user by API. So my question is how I can register new user with authentication?

2
  • Hi @VishalBansal can you please add your code. Commented Jan 31, 2020 at 6:13
  • With or without admin token? Commented Jan 31, 2020 at 8:47

1 Answer 1

1

Take a look at vendor/magento/module-customer/etc/webapi.xml

<route url="/V1/customers" method="POST">
    <service class="Magento\Customer\Api\AccountManagementInterface" method="createAccount"/>
    <resources>
        <resource ref="anonymous"/>
    </resources>
</route>

As we can see, we can create a new customer account without token.

2
  • I want to reg. with token but don't go with admin token , is this possible by customer token? Commented Jan 31, 2020 at 9:19
  • Why do we need token? Commented Jan 31, 2020 at 9:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.