> ## 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 WhatsApp to the provided phone number, logging in an existing user or creating a new one. Calls the `POST /sdk/v1/otps/whatsapp/login_or_create` endpoint.

## Parameters

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

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

<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>
  ```swift theme={null}
  let params = OTPsWhatsAppLoginOrCreateParameters(phoneNumber: "+15005550006")
  let response = try await StytchConsumer.otps.whatsapp.loginOrCreate(params)
  ```
</RequestExample>
