# Email Verification API

The Email Verification API allows a user to verify his own email address and get an authentication token to sign in.&#x20;

### Buy Plaque API

<mark style="color:blue;">`GET`</mark> `https://api.stagemeta.dev/auth/evaluate-email-verification-code`

#### Query Parameters

| Name                                    | Type   | Description |
| --------------------------------------- | ------ | ----------- |
| email<mark style="color:red;">\*</mark> | String |             |
| code<mark style="color:red;">\*</mark>  | Number |             |

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

```javascript
{
  "user": {
    "id": 1,
    "createdAt": "2023-04-09T07:32:30.207Z",
    "updatedAt": "2023-04-11T13:54:13.299Z",
    "deletedAt": null,
    "email": "johndoe@example.com",
    "username": "johndoe",
    "image": null,
    "walletAddress": "edj8********************d7",
    "receiveEmail": true,
    "canGetDeltaEnergy": false,
    "emailVerify": true,
    "emailVerificationCodeExpireTime": "2023-04-15T13:47:54.603Z",
    "access": [],
    "stripeCustomerId": null,
    "totalEnergyReceived": 0,
    "totalPings": 0,
    "isStageWallet": true
  },
  "token": "eyJhbGciOi*****************************************NaHZ8DXCIacgA"
}
```

{% endtab %}

{% tab title="500: Internal Server Error There was an error in preparing the plaque. Please contact Stagemeta support." %}

{% endtab %}

{% tab title="401: Unauthorized The access token provided in the Authorization header is invalid." %}

{% endtab %}

{% tab title="404: Not Found The plaque specified in the endpoint does not exist" %}

{% endtab %}
{% endtabs %}

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

```bash
curl -X 'GET' \
  'https://api.stagemeta.dev/auth/evaluate-email-verification-code?email=johndoe@example.com&code=12345' \
  -H 'accept: */*'
```

{% endtab %}

{% tab title="Node" %}
{% code overflow="wrap" %}

```javascript
fetch('https://api.stagemeta.dev/auth/evaluate-email-verification-code?email=johndoe@example.com&code=72732', {
  method: 'GEt',
  headers: {
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  }
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error(error));
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.stagemeta.world/reference/api-reference/email-verification-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
