Confirm active user's email via api

Hi, is there a way to confirm or verify an active user’s email via API?

I have a mobile app that uses Okta for OIDC, and email verification is optional for signup. I want the email verification link to point to a service we host and confirm the email with Okta in our backend.

The “usual” email confirmation link forces users to log in or enter a code on the email to continue, and we would like to avoid that. How do I go about setting this up?

Would using the /Users endpoint work for your use case?