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

# Registro y verificación

> Crea cuenta, confirma teléfono por OTP y obtén API key sin abrir el panel.

<Tip>
  Registro + OTP es la **puerta de entrada**: sin verificar el teléfono no recibes la `apiKey`.
</Tip>

## ¿Qué es `verificationToken`?

JWT temporal (\~15 min) cuando falta un segundo paso. **No** es la API key.

| Origen           | Cuándo                                           | Siguiente paso                         |
| ---------------- | ------------------------------------------------ | -------------------------------------- |
| `POST /register` | Tras cadastro; OTP al teléfono                   | `POST /verify` + `code` (WhatsApp/SMS) |
| `POST /login`    | Cuenta con **2FA**; `requiresSecondFactor: true` | **Otro** `POST /login` + `totpCode`    |

<Warning>
  `POST /verify` es solo OTP de **teléfono** tras register. TOTP del autenticador va en **`POST /login`**, no en `verify`.
</Warning>

## Flujo para agentes

1. **Primer workspace** — `register` → `verify` con OTP → `apiKey` + `workspaceId` (creado en verify).
2. **Segundo workspace** — `POST /v1/workspaces` con API key (`workspace:create`).
3. **Login en workspace** — `POST /login` con `createApiKey: true` y `workspaceId` opcional.
4. **2FA** — login con email/senha → `verificationToken` → login otra vez con `totpCode`.

```bash theme={null}
curl -X POST https://api.notifique.dev/v1/platform/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "dev@empresa.com",
    "password": "SenhaSegura123!",
    "createApiKey": true,
    "workspaceId": "clws_02H..."
  }'
```

Guía: [Quick start](/es/platform-api/como-funciona/quick-start) · [Workspaces](/es/platform-api/como-funciona/workspaces)
