---
title: "Verify Phone Otp"
method: POST
path: "/api/auth/phone/verify"
tags: ["auth-phone"]
---

# Verify Phone Otp

`POST /api/auth/phone/verify`

## Request

- Base URL: `https://api.pointifytravels.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pointifytravels.com/api/auth/phone/verify`
- Auth: none declared

Verify the Twilio code, then sign the user in / up via Supabase.

## Request body

- PhoneVerifyRequest
  - `phone` string, required
  - `code` string, required
  - `email` string, nullable

## Response `200`

Successful Response

- PhoneVerifyResponse
  - `verified` boolean, required
  - `needs_email` boolean
  - `is_new_user` boolean
  - `token_hash` string, nullable
  - `type` 'magiclink' | 'signup', nullable
  - `email` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pointifytravels/apis/pointify-deal-engine.md) · [All operations](https://skmtc.dev/pointifytravels/apis/pointify-deal-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/pointifytravels/apis/pointify-deal-engine/revisions/4350142a4216?raw)
