# POST /api/v1/email/account/actions/webmail-sso

> Get the webmail login page for a mailbox

- Group: email
- Tier: W
- Required scope: write:email
- Docs: https://api.inleed.com/reference/email/webmail-sso

## Description

Returns the mailbox's Roundcube `webmailUrl` on its own node. There is no one-click token — DirectAdmin's webmail tokens are IP-locked and expire in ten seconds, so the user logs in with the full email address and the mailbox password (reset it with `set_mailbox_password` if lost).

## Body

- `address` — string (required)

## Request

```bash
curl -X POST "https://mcp.inleed.com/api/v1/email/account/actions/webmail-sso" \
  -H "Authorization: Bearer inl_live_…" \
  -H "Content-Type: application/json" \
  -d '{"address":"info@example.se"}'
```

## Response · 200

```json
{
  "target": {
    "input": "example.se",
    "kind": "domain",
    "domain": null,
    "mailbox": null,
    "serviceId": 90714,
    "domainServiceId": null,
    "daUsername": "inleed42",
    "node": "web12",
    "userId": 4821,
    "note": null
  },
  "address": "info@example.se",
  "ssoAvailable": true,
  "webmailUrl": "https://mcp.inleed.com/…",
  "note": "Resolved via the owning account."
}
```

## Errors

- **401** No token was presented, or the token is revoked, expired or unknown. — codes: unauthorized, token_expired, token_revoked
- **403** The token lacks a required scope, or this account does not own the resource. — codes: insufficient_scope
- **422** Validation error — codes: validation_failed
- **429** The rate limit for this token is exhausted. See `Retry-After`. — codes: rate_limited
- **500** Something went wrong on our side. The failure is logged against `requestId`. — codes: internal_error

## Related

- GET /api/v1/email/account — https://api.inleed.com/reference/email/get-mailbox
- PATCH /api/v1/email/account — https://api.inleed.com/reference/email/update-mailbox
- DELETE /api/v1/email/account — https://api.inleed.com/reference/email/delete-mailbox
- POST /api/v1/email/account/actions/suspend — https://api.inleed.com/reference/email/suspend-mailbox

