REST API
Get Prefill
Retrieves code and prefill information in a single request.
Base URL: https://astralis24.com
Endpoint: GET /rest.php/get-prefill
Header Format:
API-Key: your-api-key-hereQuery Parameters:
lang(optional, default:DE) - Language code:DE,FR, orITpage_id(optional) - Source identifier (e.g.,page2,page1)tracking_code(optional) - Tracking code for analytics
Example Request:
curl -X GET "https://astralis24.com/rest.php/get-prefill?lang=DE&page_id=lp3&tracking_code=abc123" \
-H "API-Key: your-api-key-here"Example Response:
{
"status": true,
"message": "Success",
"data": {
"prefill": "...",
"wa_number": "...",
"sim_no": "...",
"code_data": {
"KW_ABO": "...",
"short_code": "...",
"generated_code": "..."
}
}
}Error Response (401 Unauthorized):
Notes:
Facebook cookies (
_fbc,_fbp) are automatically used if available.Client IP address and user agent are automatically captured from the request.
The response includes both
wa_numberandsim_nofields.
If your client needs cookies sent with the request (for example to include Facebook cookies), ensure cross-origin requests are configured to allow credentials.
JavaScript/jQuery Example:
Last updated