Create a sign-in link
Send a customer straight into their server without a password.
POST/api/application/servers/{externalId}/login
Creates a one-time link that signs the server's owner in and opens the server. Use it behind a "Control panel" button in your billing system.
curl -X POST https://panel.example.com/api/application/servers/whmcs-1042/login \
-H "Authorization: Bearer bpnl_..."{
"url": "https://panel.example.com/api/auth/login-link?token=...",
"expiresIn": 60
}| Field | Type | Description |
|---|---|---|
url | string | Redirect the customer here. |
expiresIn | number | Seconds until the link expires. |
Each link works once and expires after 60 seconds, so create it when the customer clicks, not when the page loads.
Errors
| Status | When |
|---|---|
403 | The owner is staff (an admin or super admin), or banned. Staff must sign in with their password. |
404 | No server has that external ID. |