# Auth0 post registration action with Next.js?

**URL:** <https://community.auth0.com/t/auth0-post-registration-action-with-next-js/113417>\
**Category:** Get Help\
**Tags:** signup-prompt-new-experience, login-experience\
**Created:** [August 10, 2023, 11:04pm UTC](https://community.auth0.com/t/auth0-post-registration-action-with-next-js/113417 "2023-08-10T23:04:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnank9](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@arnank9](https://community.auth0.com/u/arnank9)\
**Post date:** [August 10, 2023, 11:04pm UTC](https://community.auth0.com/t/auth0-post-registration-action-with-next-js/113417/1 "2023-08-10T23:04:28Z")

</div>

So I am new to auth0 and I am trying to create a post-registration action to take the auth0ID and put it into my own database using Prisma. How would I do this as I can’t put it in the .events.

Would I not use actions, but use something else to handle this?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [August 11, 2023, 12:23am UTC](https://community.auth0.com/t/auth0-post-registration-action-with-next-js/113417/3 "2023-08-11T00:23:41Z")

</div>

Hello @arnank9 welcome to the community!

> [@arnank9](#):
>
> I am trying to create a post-registration action to take the auth0ID and put it into my own database using Prisma.

Are you utilizing social connections (Google, Facebook, etc.) at all? As a heads up, Post User Registration Actions only trigger for Database and Passwordless connections.

The following thread may be helpful in understanding how to go about calling your own API:

> [@How do I call my API from an Action?](https://community.auth0.com/t/how-do-i-call-my-api-from-an-action/69041):
>
> Hey, So I’m in the process of trying to add a user to my database using an API call from a “Post User Registration” Action. I have followed this blog post here: and seem to have everything looking good. On top of that when I run the test it says the action was successful. The only problem is that my API is not being called at all even though I have triple checked that the URL is correct. Here is the code I’m working with: import axios from "axios"; exports.onExecutePostUserRegistration = …

[Axios](https://www.npmjs.com/package/axios) is a common library used to achieve this from within Actions.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 25, 2023, 12:24am UTC](https://community.auth0.com/t/auth0-post-registration-action-with-next-js/113417/4 "2023-08-25T00:24:02Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
