Interactive API Demos

See how Open Guestbook APIs work with live demos. No setup, no login, just interactive code examples.

API Feature Demos

Basic Request

Simple GET request to see how our API responds with basic authentication.

Signed Entry

Example POST request to add a signed guestbook entry using HMAC authentication.

Custom Fields

Demonstrates adding custom metadata to entries with rich content types.

Basic API Demonstration

This demonstration requires an API key. It illustrates how to retrieve a simple response from the hello endpoint using JavaScript.


// JavaScript Example
fetch('https://api.openguestbook.tech/v1/hello', {
    headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
        'Content-Type': 'application/json'
    }
})
.then(response => response.json())
.then(data => {
    console.log(data);
});
                    
                    

// cURL Example
curl -X GET \\
  -H "Authorization: Bearer YOUR_API_KEY" \\
  https://api.openguestbook.tech/v1/hello
                    
                    

API Response


{
  "status": "success",
  "message": "Hello from Open Guestbook API v1",
  "timestamp": "2025-08-16T10:00:00Z"
}

                

Guestbook Entry Signing

This demo shows how to sign a new guestbook entry with HMAC authentication. Requires an API secret key for signing.


// JavaScript Example
const secret = "YOUR_SECRET_KEY";
const message = {
    name: "Jane Doe",
    message: "Great service experience!"
};

const hmac = crypto.createHmac('sha256', secret);
hmac.update(JSON.stringify(message));

const signature = hmac.digest('hex');

fetch('https://api.openguestbook.tech/entries', {
    method: 'POST',
    headers: {
        'Authorization': 'Bearer YOUR_API_KEY',
        'Content-Type': 'application/json',
        'X-API-Signature': signature
    },
    body: JSON.stringify(message)
});
                    
                    

// cURL Example
curl -X POST \\
  -H "Authorization: Bearer YOUR_API_KEY" \\
  -H "Content-Type: application/json" \\
  -H "X-API-Signature: 3a7d4f3e8b2c7a15c6a2f6a9458b5a3c" \\
  -d '{
    "name": "John Doe",
    "message": "This is a signed guestbook entry"
 }' \\
  https://api.openguestbook.tech/entries
                    
                    

API Response


{
  "status": "success",
  "entry_id": "654321",
  "timestamp": "2025-08-16T10:00:00Z"
}

                

Custom Metadata Fields

Add rich metadata to guestbook entries with custom content types and metadata fields.

  • • Text, numbers, dates, and JSON
  • • Custom tags and categories
  • • Multi-language content
  • • File references with thumbnails

{
    "name": "Jane Smith",
    "message": "Visited with family",
    "metadata": {
        "group": "family",
        "rating": 5,
        "tags": ["travel", "feedback"]
    }
}

                    

Ready to Build?

Our API handles the complexity while you focus on adding value to guestbook features.