Learn how to interact with our RESTful API to create, manage, and retrieve guestbook entries programmatically.
Get StartedTo start using Open Guestbook's API, you need a valid site ID and API key from your dashboard. Once you have these credentials, you can interact with guestbook entries in your own codebase.
// Get guestbook entries
fetch('https://api.openguestbook.tech/v3/entries')
.then(response => response.json())
.then(data => console.log(data))
Add your API key to the Authorization
header before use.
Add your API key to the Authorization header with the Bearer scheme:
Authorization: Bearer YOUR_API_TOKEN
Tokens are long-lived and should be securely stored. Regenerate if compromised.
Access tokens never expire by default. You may revoke them at any time in your dashboard.
Retrieve guestbook entries with optional sorting, filtering, and pagination.
Accept: application/json
Content-Type: application/json
Submit a new entry to the guestbook with name, message, and optional metadata.
Authentication: Required
{ "name": "Jane Doe", "message": "Great site!", "email": "jane@example.com" }
Requires admin authentication and proof of data ownership.
Authorization: Bearer {token}
URL: https://api.openguestbook.tech/api/v3/entries/12345
// Get entries
fetch('https://api.openguestbook.tech/v3/entries', {
headers: {
'Authorization': 'Bearer YOUR_TOKEN'
}
})
.then(res => res.json())
.then(data => console.log(data))
import requests
response = requests.get(
'https://api.openguestbook.tech/v3/entries',
headers={'Authorization': 'Bearer YOUR_TOKEN'}
)
print(response.json())
Add ?page=1&limit=20
to large requests
Never trust raw user data from API responses
Check HTTP status codes in error responses
The Open Guestbook API works with any programming language or framework you choose. Check out our GitHub examples for Node.js, Python, and more.
View API Samples