---
title: "Sms Available"
method: GET
path: "/api/auth/sms/available"
---

# Sms Available

`GET /api/auth/sms/available`

Runtime feature-flag for the phone-OTP login surface.

The SPA queries this once at login-page mount; when it returns
`{available: false}` the LoginForm hides the Email/Phone tab
toggle (and the entire phone path) even if its consumer passed
`enable-phone-login`. This lets us ship the binary with the
code in place before Aliyun's carrier 报备 (5-7 working days)
completes — the feature flips on when `OMICOS_ALIYUN_SMS_*`
env vars get set on the box, with no redeploy.

Also useful for staging / dev where SMS isn't wired up but the
rest of the app still needs to render.

No auth required — this endpoint reveals zero PII, just the
server-side configuration state.

## Response `200`

Successful Response

- object

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omicos/omicos-server/revisions/a00b94573ffe/schema)
