---
title: "Wait for a Telegram link sign-in"
method: GET
path: "/api/v1/auth/phone/status"
tags: ["Auth"]
---

# Wait for a Telegram link sign-in

`GET /api/v1/auth/phone/status`

## Request

- Base URL: `https://otprun.com`
- URL: `https://otprun.com/api/v1/auth/phone/status`
- Auth: none declared

Returns pending, expired or verified; verified carries the session once, later calls answer 410.

## Query parameters

- `challenge_id` string, uuid, required

## Headers

- `User-Agent` string

## Response `200`

OK

- PhoneStatusBody
  - `access_token` string
  - `expires_at` string, date-time
  - `is_new` boolean
  - `needs_profile` boolean
  - `status` 'pending' | 'verified' | 'expired', required
  - `token_type` 'Bearer'
  - `user` AccountUserBody
    - `created_at` string, date-time, required
    - `email` string, nullable, required: Null for accounts created with a phone number
    - `email_verified` boolean, required: True once the email was confirmed with a code or a sign-in link
    - `has_password` boolean, required
    - `id` integer, required
    - `is_admin` boolean, required
    - `locale` string, required
    - `name` string, required: Empty until the person enters a name
    - `phone` string, nullable, required: E.164 number the account signs in with, null for email accounts
    - `public_id` string, uuid, required
  - `workspace` AccountWorkspaceBody
    - `created_at` string, date-time, required
    - `id` integer, required
    - `name` string, required
    - `plan` 'free' | 'starter' | 'growth' | 'scale', required
    - `role` 'owner' | 'admin' | 'developer' | 'viewer', required
    - `slug` string, required
    - `trial_ends_at` string, date-time, nullable, required

## Other responses

- `403`: Forbidden
- `410`: Gone
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/otprun/apis/otp-run-api.md) · [All operations](https://skmtc.dev/otprun/apis/otp-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/otprun/apis/otp-run-api/revisions/43d40d5f4050?raw)
