> ## Documentation Index
> Fetch the complete documentation index at: https://velt-codex-ui-customization-guide-refresh.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Login Link

Use this API to send a login link to a workspace owner's email address.

<Info>
  This is a **public endpoint** — no authentication headers are required.
</Info>

# Endpoint

`POST https://api.velt.dev/v2/workspace/email/send-login-link`

# Body

#### Params

<ParamField body="data" type="object" required>
  <Expandable title="properties">
    <ParamField body="email" type="string" required>
      Email address to send the login link to.
    </ParamField>

    <ParamField body="continueUrl" type="string" required>
      Valid URL to redirect the user to after login. The URL's domain must be an allowed Velt domain (`console.velt.dev` or `localhost`); other domains are rejected.
    </ParamField>
  </Expandable>
</ParamField>

# Example Request

```JSON theme={null}
{
  "data": {
    "email": "owner@example.com",
    "continueUrl": "https://console.velt.dev/"
  }
}
```

# Example Response

#### Success Response

```JSON theme={null}
{
  "result": {
    "status": "success",
    "message": "Login link sent successfully",
    "data": null
  }
}
```

#### Failure Response

##### If continueUrl is not a valid URL

```JSON theme={null}
{
  "error": {
    "status": "INVALID_ARGUMENT",
    "message": "Invalid url for continueUrl"
  }
}
```

##### If the continueUrl domain is not allowed

```JSON theme={null}
{
  "error": {
    "status": "INVALID_ARGUMENT",
    "message": "The continueUrl domain is not allowed."
  }
}
```

##### If email domain is disposable

```JSON theme={null}
{
  "error": {
    "status": "INVALID_ARGUMENT",
    "message": "This email domain is not supported."
  }
}
```

##### If rate limit exceeded

```JSON theme={null}
{
  "error": {
    "status": "RESOURCE_EXHAUSTED",
    "message": "Rate limit exceeded for this endpoint. Try again later."
  }
}
```

<ResponseExample>
  ```js theme={null}
  {
    "result": {
      "status": "success",
      "message": "Login link sent successfully",
      "data": null
    }
  }
  ```
</ResponseExample>
