# Call Inline Hook via API Registration

**URL:** <https://devforum.okta.com/t/call-inline-hook-via-api-registration/7663>\
**Category:** API\
**Tags:** api\
**Created:** [January 15, 2020, 7:14pm UTC](https://devforum.okta.com/t/call-inline-hook-via-api-registration/7663 "2020-01-15T19:14:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerard](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/gerard/32/1483_2.png) [@gerard](https://devforum.okta.com/u/gerard)\
**Post date:** [January 15, 2020, 7:14pm UTC](https://devforum.okta.com/t/call-inline-hook-via-api-registration/7663/1 "2020-01-15T19:14:57Z")

</div>

👋Hello,

We are currently using the Sign-In Widget with Self-Service Registration enabled to sign up new users. We are using a Registration Inline Hook to take the new user and process them in other systems. This is all working great.

I’d now like to create new users via API, and trigger the same Registration Hook, but I don’t see a way. I can create new users via the `/api/v1/users` API, but it doesn’t say anything about hooks. If I look at the widget requests, it is calling something like `/api/v1/registration`, but I can’t find any documentation for this endpoint and I don’t want to assume I can use an undocumented API.

Why is the registration hook for the self-service registration only? Is there a way to call a hook from the Users API? Would the `/registration` API be safe to use?

Thanks!  
G

---

<div class="post-metadata">

**Author:** ![warren](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@warren](https://devforum.okta.com/u/warren)\
**Post date:** [January 16, 2020, 9:56pm UTC](https://devforum.okta.com/t/call-inline-hook-via-api-registration/7663/2 "2020-01-16T21:56:24Z")

</div>

Hi Gerard,

You’re correct. The Okta Registration Inline Hook is specific for Okta’s Self-Service Registration flow.

If you want a hook for the user creation flow via the API, you can use the Event Hook for the user.lifecycle.create event.

[https://developer.okta.com/docs/concepts/event-hooks/#what-are-okta-event-hooks](https://developer.okta.com/docs/concepts/event-hooks/#what-are-okta-event-hooks)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 24, 2024, 6:39pm UTC](https://devforum.okta.com/t/call-inline-hook-via-api-registration/7663/3 "2024-01-24T18:39:33Z")

</div>

Closed on January 24, 2024, 6:39pm UTC

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