Skip to content

Authentication

Authentication for the EstatePrime API is handled using a combination of a public key and a secret key. These keys must be included in each API request using Basic Authentication.

Headers

All requests to the EstatePrime API must include the following headers:

  • Authorization: Include your public and secret keys encoded in Base64 as per Basic Authentication standards.
  • Content-Type: Set to application/json.

Example Headers

http
Authorization: Basic <Base64EncodedPublicAndSecretKey>
Content-Type: application/json

Implementation

To authenticate:

  1. Combine your public key and secret key in the format publicKey:secretKey.
  2. Encode this combination using Base64.
  3. Add the resulting string to the Authorization header, prefixed with Basic.

Example in PHP

php
<?php
// Replace with your actual keys
$publicKey = 'yourPublicKey';
$secretKey = 'yourSecretKey';

// Encode the keys
$credentials = base64_encode("$publicKey:$secretKey");

// Set the headers
$headers = [
    'Authorization: Basic ' . $credentials,
    'Content-Type: application/json'
];

// Example API POST request
$url = 'https://<your-subdomain>.estateprime.gr/api/example-endpoint';
$data = json_encode(["key" => "value"]);

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

$response = curl_exec($ch);

// Print the response
echo $response;
?>

Important Notes

  • Always keep your secret key private and do not share it.
  • Use HTTPS for all requests to ensure secure communication.
  • If your keys are compromised, regenerate them immediately from your EstatePrime account.

Last updated on May 9th, 2026.