# Email verification by token

`POST /api/auth/email/verify`

Authentication: no security requirement declared for this operation.

Request body: application/json (required)

Type: object

Schema: [ConfirmEmailByTokenDTO](https://sourcey-gauzy.pages.dev/api-reference/models/confirmemailbytokendto/index.md)

- `email` (required)
  Type: string

- `token` (required)
  Type: string

Responses:

- 200: 

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/auth/email/verify' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "email": "string",
  "token": "string"
}'
```

### JavaScript

```javascript
const body = `{
  "email": "string",
  "token": "string"
}`;

const response = await fetch('http://localhost:3000/api/auth/email/verify', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body,
});

const data = await response.text();
```

### Python

```python
import requests

body = '''{
  "email": "string",
  "token": "string"
}'''

response = requests.post(
    'http://localhost:3000/api/auth/email/verify',
    data=body.encode('utf-8'),
    headers={
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
