> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Magic link & OTP

Send and verify passwordless login codes
<div class="sdk-client-page">

Use `scalekit_client.passwordless` to send and verify email magic links or one-time codes for sign-in.

Call send, then verify with the code or link token from the user's email to complete login.

### send_passwordless_email
<div class="sdk-method-section">

      Runs `send_passwordless_email` and returns the result.

        Email address.

        Template.

        Magiclink auth uri.

        Opaque state string.

        Expires in.

        Template variables.

        Send passwordless.

```python
response = scalekit_client.passwordless.send_passwordless_email(
    'user@example.com',
    template='SIGNIN',
    state='random-state',
    expires_in=3600
)

print(f'Auth Request ID: {response[0].auth_request_id}')
```

</div>

### verify_passwordless_email
<div class="sdk-method-section">

      Method to verify passwordless authentication

        Optional. The OTP code received via email

        Optional. The token from the magic link URL

        Optional. The authentication request ID from send request

        Verify Passwordless Response

```python
response = scalekit_client.passwordless.verify_passwordless_email(
    code='123456',
    auth_request_id='auth_request_id'
)

print(f'Email: {response[0].email}')
```

</div>

### resend_passwordless_email
<div class="sdk-method-section">

      Method to resend passwordless authentication email

        The authentication request ID from original send request

        Send Passwordless Response

```python
response = scalekit_client.passwordless.resend_passwordless_email('auth_request_id')
```

</div>

</div>


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
