REST API

Get Prefill

Retrieves code and prefill information in a single request.

Base URL: https://astralis24.com

Endpoint: GET /rest.php/get-prefill

Authentication: All requests must include an API-Key header with a valid API key.

Header Format:

Header
API-Key: your-api-key-here

Query Parameters:

  • lang (optional, default: DE) - Language code: DE, FR, or IT

  • page_id (optional) - Source identifier (e.g., page2, page1)

  • tracking_code (optional) - Tracking code for analytics

Example Request:

cURL
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:

Response (200)
{
  "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_number and sim_no fields.

JavaScript/jQuery Example:

Last updated