Auto-fill fields in document from REST API `POST` method?

default discord avatar
6 months ago

I am trying to write a frontend where users can register themselves and take that data(e.g.username, email,password) and create a mew user document for the user amd auto-fill the collection fields with the input. All this coming from Next.js based frontend. Is it possible?

  • discord user avatar
    Payload Team
    6 months ago

    hi @Arskeliss - if I am understanding correctly you want to create a new user using the REST API. You can absolutely do this by sending a POST request to


    along with the required data as the body.
  • default discord avatar
    6 months ago

    @jesschow thank you for your reply, that's right I want to use REST API for that. It looks easy enough, reading the docs, i will try it out. 🙌

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.