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

# Login Or Create

> Sends a one-time passcode via email to the provided address, logging in an existing user or creating a new one. Calls the `POST /sdk/v1/otps/email/login_or_create` endpoint.

## Parameters

<ParamField body="email" type="String" required />

<ParamField body="expirationMinutes" type="Int?" />

<ParamField body="signupTemplateId" type="String?" />

<ParamField body="loginTemplateId" type="String?" />

<ParamField body="locale" type="String?" />

## Returns

<ResponseField name="requestId" type="String" required />

<ResponseField name="methodId" type="String" required />

<ResponseField name="statusCode" type="Int" required />

<RequestExample>
  ```js theme={null}
  StytchConsumer.otps.email.loginOrCreate({ email: "user@example.com" })
  ```
</RequestExample>
