post https://{domain}/api/session
Log in to see full request history
How It Works
- Tenant calls Mondia’s API from the backend, sending the user’s mobile number in the request body.
- Mondia creates a session and returns a session ID/token.
- Tenant loads an iframe using the session token.
- Mondia retrieves user details and proceeds with the subscription using OTP.
API Request Details
- Set the correct Request Header details
Header | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer {Your API Key} |
- Provide at least one of the relevant user details in the Request Body
Request Body | Description | Required |
---|---|---|
msisdn | Customer’s mobile number | Yes |
email | Customer’s email id | Yes |
Response Details
Response | Description | Required |
---|---|---|
session_id | Unique session token | Yes |
expires_in | Expiry Duration in Seconds | Yes |
Loading the Session in an Iframe
Once the session is created, Tenant loads the iframe using the "session_id" value:
html
<iframe src="https://mondia-portal.com?session_id=XYZ123" />
Subscription via OTP
- Mondia retrieves the user details using the session token.
- The user proceeds with the subscription flow using OTP authentication.
Responses