Customer Login via Token
Enable seamless customer login to SenderWiz using a secure admin token—no password required, session valid for 10 minutes. Acts like SSO integration.
🔐 Customer Login via Token (Admin Key)
Allow your own application to securely log in customers to SenderWiz without requiring manual entry of email and password on the SenderWiz login screen. This acts as a single sign-on (SSO)-like experience using admin-level API authentication.
With this endpoint, admins can generate a login token for any of their customers and redirect them directly to SenderWiz, bypassing the login form.
🔹 HTTP Request
POST ADMIN-API-URL/admin-generate-token🔸 Authorization Header
Include your customer API key:
X-ADMIN-API-KEY: your-admin-api-key-here🔸 Query Parameters
email
Yes
Email address of the customer
🔐 Authorization Header
Include your customer API key:
X-ADMIN-API-KEY: your-admin-api-key-here💻 PHP Example
📦 Sample JSON Response
🔁 Redirection
Once the login URL is generated, you can automatically redirect your customer to that URL. The token is valid for 10 minutes. After expiration, the customer will be redirected back to your own login system.
✅ Benefits
Seamless login experience for your customers
Works like Single Sign-On (SSO)
Secure and time-bound access (10-minute token validity)
No password entry required
⚠️ Note
Ensure token-based login URLs are used immediately.
Do not share login URLs externally. Use them only within secure application redirections.
Last updated