Developers
Build on Nostrabeds.
A REST API and signed webhooks for your website and systems. Everything is scoped to your workspace.
Authentication
Create an API key in Settings → Developers and send it as a bearer token. Keys are scoped to your workspace — you only ever see your own data.
curl https://app.nostrabeds.com/api/v1/rooms \ -H "Authorization: Bearer nbk_your_key"
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /v1/me | Your workspace and currency |
| GET | /v1/rooms | List active rooms |
| GET | /v1/availability | Available rooms and a priced quote for dates |
| POST | /v1/bookings | Create a reservation |
| GET | /v1/bookings/{id} | Fetch a booking |
Create a booking
Check availability first, then create the reservation. The response includes the guest’s private stay link.
POST /api/v1/bookings
{
"room_id": 12,
"check_in": "2026-06-12",
"check_out": "2026-06-14",
"full_name": "Lena Fischer",
"email": "lena@example.com"
}
→ 201 Created
{
"data": {
"id": 3012,
"status": "reserved",
"room": "Garden Studio",
"nights": 2,
"room_subtotal": 280,
"pending_bill": 301,
"stay_url": "https://your.nostrabeds.com/stay/…"
}
}Webhooks
Register an endpoint in Settings → Developers and choose events. Each delivery is signed with your endpoint secret so you can verify it. Events: booking.created, payment.confirmed.
// Verify the signature (Node)
import crypto from 'crypto';
const signature = req.headers['x-nostrabeds-signature']; // "sha256=…"
const expected = 'sha256=' + crypto
.createHmac('sha256', WEBHOOK_SECRET)
.update(rawBody)
.digest('hex');
if (signature !== expected) return res.status(400).end();Get your API key in minutes.
Start a free trial, open Settings → Developers and create a key.