# Verify email address

​

{% hint style="info" %}
**Must have the authorization to use this API**
{% endhint %}

<mark style="color:blue;">`GET`</mark> `https://example.com/wp-json/rimplenet/v1 /verify-email-address`

#### Request Body

| Name                                             | Type   | Description                    |
| ------------------------------------------------ | ------ | ------------------------------ |
| email\_address<mark style="color:red;">\*</mark> | String | Email address to receive mail  |
| fire\_email                                      | Bool   | Should be either True or False |

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

```php
{
    "status_code": 200,
    "status": true,
    "message": "Token Generated",
    "data": {
        "token_to_verify_email": "87feef",
        "mail": false
    }
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
To view request params, click on the arrow (>) at the right-hand side of the endpoint url to expand or collapse
{% endhint %}

**Sample response**

{% tabs %}
{% tab title="200 Ok" %}

```php
{
    "status_code": 200,
    "status": true,
    "message": "Token Generated",
    "data": {
        "token_to_verify_email": "87feef",
        "mail": false
    }
}
```

{% endtab %}
{% endtabs %}

<mark style="color:green;">`POST`</mark> `https://example.com/wp-json/rimplenet/v1 /verify-email-address`

#### Request Body

| Name                                                                  | Type   | Description                                                                      |
| --------------------------------------------------------------------- | ------ | -------------------------------------------------------------------------------- |
| email\_address<mark style="color:red;">\*</mark>                      | String | Email address to receive mail  (Required)                                        |
| token\_to\_validate\_email\_address<mark style="color:red;">\*</mark> | Bool   | Provide token gotten from mail or token contained in the GET response (Required) |

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

{% endtab %}
{% endtabs %}

{% hint style="info" %}
To view request params, click on the arrow (>) at the right-hand side of the endpoint URL to expand or collapse
{% endhint %}

**Sample response**

{% tabs %}
{% tab title="200 Ok" %}

```php
{
    "status_code": 200,
    "status": true,
    "message": "Token Validated",
    "data": true
}
```

{% endtab %}
{% endtabs %}

​
