# Using the API from the phone app

> Sign-in tokens for people, in beta.


> Warning: Sign-in tokens are in beta. They may change before the phone apps ship; changes will be in the [changelog](/developers/changelog).

The phone apps call the same `/api/v1` as everyone else, but as a person rather than as a company key. A person signs in with their email and password:

```bash cURL
curl -X POST "https://dev.siteswap.pro/api/v1/auth/session" -H "Content-Type: application/json" \
  -d '{"email":"you@example.com","password":"your password","device":"iPhone"}'
```
```javascript JavaScript
const res = await fetch("https://dev.siteswap.pro/api/v1/auth/session", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ email, password, device: "iPhone" }),
});
const { data } = await res.json();
await secureStore.set("siteswap_token", data.token);
```
```python Python
import requests
r = requests.post("https://dev.siteswap.pro/api/v1/auth/session", json={"email": "you@example.com", "password": "your password", "device": "test"})
token = r.json()["data"]["token"]
```

- The token (`sst_...`) goes in `Authorization: Bearer`, like a key. It works for 30 days, for that person in their first company, with every scope their role allows.
- `DELETE /auth/session` with the token signs out.
- Sign-in tries are limited to 12 every 15 minutes per address. A wrong email or password answers `401 wrong_password`, the same for both.
- The person must have accepted the current Terms on the site, or signing in answers `403 terms_required`. Signing up and accepting new Terms happen on the site.
- Keep the token in the phone's secure storage, never in plain files.
