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

# Legacy API (sms-activate)

> Drop-in replacement for DaisySMS and sms-activate.

The legacy API is fully compatible with [sms-activate](https://virtualsms.io/sms-activate-alternative) and [DaisySMS](https://virtualsms.io/daisysms-alternative) scripts.

## Base URL

```
https://virtualsms.io/stubs/handler_api.php
```

## Endpoints

<CardGroup cols={2}>
  <Card title="getBalance" href="/docs/docs/api-reference/legacy-balance">
    Check account balance
  </Card>

  <Card title="getNumber" href="/docs/docs/api-reference/legacy-get-number">
    Rent a phone number
  </Card>

  <Card title="getStatus" href="/docs/docs/api-reference/legacy-get-status">
    Poll for SMS code
  </Card>

  <Card title="getPrices" href="/docs/docs/api-reference/legacy-get-prices">
    Get pricing
  </Card>
</CardGroup>

## Migration from DaisySMS

```diff theme={null}
- BASE_URL = "https://daisysms.com/stubs/handler_api.php"
+ BASE_URL = "https://virtualsms.io/stubs/handler_api.php"
```

All action names, response formats, and error codes are identical.
