# Phone sign-in: exchange for a device token

Source: https://immiscible.fly.dev/docs/api/post-api-mobile-v1-auth-token

`POST /api/mobile/v1/auth/token`

The phone finishes the browser sign-in it opened and receives its device token.

## Authentication

Public. No credential. Public routes are rate limited per address. Part of a phone signing in; the answer is a device token.

## Request

curl:

```bash
curl -X POST "https://immiscible.fly.dev/api/mobile/v1/auth/token"
```

Node:

```ts
const res = await fetch('https://immiscible.fly.dev/api/mobile/v1/auth/token', {
  method: 'POST',
});
const data = await res.json();
console.log(res.status, data);
```

Python:

```python
import requests

res = requests.post(
    "https://immiscible.fly.dev/api/mobile/v1/auth/token",
)
print(res.status_code, res.json())
```
