# Auth0 using api

**URL:** <https://community.auth0.com/t/auth0-using-api/19896>\
**Category:** Get Help\
**Created:** [January 11, 2019, 3:47pm UTC](https://community.auth0.com/t/auth0-using-api/19896 "2019-01-11T15:47:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamshimil](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/iamshimil/32/10399_2.png) [@iamshimil](https://community.auth0.com/u/iamshimil)\
**Post date:** [January 11, 2019, 3:47pm UTC](https://community.auth0.com/t/auth0-using-api/19896/1 "2019-01-11T15:47:44Z")

</div>

I have some concern on this

1 ) I don’t want to use Lock implementation  
2)My app is not in js. it is in react native  
3)We need to make a native application on ReactNative. Authorization should not take place in the browser, but inside the mobile application, there should also be authorization by phone(Twilio)  
4)I don’t want to use a browser

I don’t want to use universal login or auth0 Lock. I am able to trigger OTP using the API  
like this

```
 fetch(`https://shimil.auth0.com/passwordless/start`, {
    method: "POST",
    headers: {
      "content-type": "application/json"
        },
    body: JSON.stringify({
      client_id: "XXXXXXXXXXXXXXXXXXXXXXXX",
      connection: "sms",
      phone_number: "+919633898851",
      send: "code"
})

```

})

but after getting OTP I tried to verify the OTP using

```
fetch(`https://shimil.auth0.com/auth0/ro`, {
      method: "POST",
      headers: {
        Accept: "application/json",
        "content-type": "application/json"
            },
      body: JSON.stringify({
        client_id: "XXXXXXXXXX",
        connection: "Username-Password-Authentication",
        phone_number: to,
        code: this.state.otpcode
      })
})

```

this Api getting response Not found. I need to verify the user using API

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 14, 2019, 4:52pm UTC](https://community.auth0.com/t/auth0-using-api/19896/2 "2019-01-14T16:52:52Z")

</div>

Hey there @iamshimil

So there are actually a few ways to achieve user verification. Here they are:

**1) You can either use one of our SDKs to make it happen (relatively the easier way):**

> **[Auth0.js v9 Reference](https://auth0.com/docs/libraries/auth0js)**
>
> How to install, initialize and use auth0.js v9

> **[Auth0.swift](https://auth0.com/docs/libraries/auth0-swift)**
>
> How to install and get started with Auth0.swift

> **[Auth0.Android](https://auth0.com/docs/libraries/auth0-android)**
>
> Learn how to install, initialize, and use Auth0.Android

**2) Create the UI yourself and tie it with our Authentication API hitting the right endpoints:**

[https://auth0.com/docs/api/authentication](https://auth0.com/docs/api/authentication)

Depends on what are your development capabilities and time resources. Here you can read more about Lock vs custom UI:

> **[Centralized Universal Login vs. Embedded Login](https://auth0.com/docs/authenticate/login/universal-vs-embedded-login)**
>
> Describes the differences between centralized Universal Login and Embedded login.

Hope it 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 29, 2019, 9:17am UTC](https://community.auth0.com/t/auth0-using-api/19896/3 "2019-08-29T09:17:56Z")

</div>

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