> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/001_user/002_email/003__verify_user_email.md).

# Verify User Email

GraphQL endpoint: `/user`

Verifies a user's email address using the verification code (OTP) that was sent to the email. Once verified, the email address status changes to verified and can be set as primary.

## Query

```graphql
mutation (
  $emailId: ID!
  $code: String!
) {
  verifyUserEmail (
    emailId: $emailId
    code: $code
  ) {
    status
  }
}

```

## Variables

```json
{
  "code": "1",
  "emailId": "00000000-0000-4000-8000-000000000001"
}
```

## Response

```json
{
  "data": {
    "verifyUserEmail": {
      "status": "OK"
    }
  }
}
```
