> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# vastai tfa send-email

Request a 2FA verification code via email. Returns a secret token needed for the next step (`vastai tfa login`).

## Usage

```bash theme={null}
vastai tfa send-email
```

## Examples

```bash theme={null}
vastai tfa send-email
```

The command sends a code to your registered email address and prints a secret token. Use both to complete your 2FA login:

```bash theme={null}
vastai tfa login --method-type email --secret <SECRET> --code <CODE>
```

## Global Options

The following options are available for all commands:

| Option | Description |
| - | - |
| `--url URL` | Server REST API URL |
| `--retry N` | Retry limit |
| `--raw` | Output machine-readable JSON |
| `--explain` | Verbose explanation of API calls |
| `--api-key KEY` | API key (defaults to `~/.config/vastai/vast_api_key`) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.