# 구글 OTP URI 조회

<mark style="color:blue;">`GET`</mark> `https://{dashboard-domain}/v1.0/db/me/otp/uri`

#### Headers

| Name                                            | Type   | Description                 |
| ----------------------------------------------- | ------ | --------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Bearer {{web-access-token}} |

{% tabs %}
{% tab title="200: OK 성공" %}

```javascript
{
    "return": 0,
    "message": "success",
    "value": {
        "otp_uri": "otpauth://totp/INNO:JkoYuFvEhHHzuTapl4yo7s5HLwCO%252F9eNI%252B8sobpblFMdu%252F%252B5oTNsbJou0riGTgEC?issuer=INNO&secret=JJVW6WLVIZ3EK2CIJB5HKVDBOBWDI6LPG5ZTKSCMO5BU6LZZMVHESKZYONXWE4DCNRDE2ZDVF4VTK32UJZZWESTPOUYHE2KHKRTUKQY%3D"
    }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Example Curl" %}

```
curl --location --request GET 'https://{dashboard-domain}/v1.0/db/me/otp/uri' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NfdXVpZCI6ImQ0ZGFkYWY5LWMzNjktNDZhNi1iNTgyLWZhY2M4MWY5NDJlNSIsImF1X2lkIjoyNSwiZXhwIjoxNjQ1NzEyNDc3Mjk0LCJpbm5vX3VpZCI6Ikprb1l1RnZFaEhIenVUYXBsNHlvN3M1SEx3Q08vOWVOSSs4c29icGJsRk1kdS8rNW9UTnNiSm91MHJpR1RnRUMiLCJsb2dpbl90eXBlIjo0fQ.B37itcMBxpqEpXll8uchZxFGHBEz_UZ5yo0oBQEtGds'
```

{% endtab %}

{% tab title="Response Value" %}

<table><thead><tr><th width="173.33333333333331">key</th><th>data type</th><th>desc.</th></tr></thead><tbody><tr><td>otp_uri</td><td>string</td><td>Google OTP URI</td></tr></tbody></table>

{% endtab %}

{% tab title="Result Code" %}

| return        | message           | desc.         |
| ------------- | ----------------- | ------------- |
| 0             | success           | 성공            |
| 20004         | Invalid jwt token | 유효하지 않은 토큰 에러 |
| {% endtab %}  |                   |               |
| {% endtabs %} |                   |               |
