Overview
KayakNet exposes a REST API on port 8080 for programmatic access to all features.
Base URL
http://127.0.0.1:8080For remote access (if --public-api enabled):
http://<node-ip>:8080Authentication
Most endpoints don't require authentication - they operate on behalf of the local node.
For multi-user setups, API keys can be configured (see Configuration).
Response Format
All responses are JSON:
{
"success": true,
"data": { ... }
}Error responses:
Endpoints Overview
Network
/api/network/
Node and peer info
Chat
/api/chat/
Messaging
Marketplace
/api/market/
Listings and orders
Escrow
/api/escrow/
Payment management
Domains
/api/domains/
.kyk registration
Network API
Get Node Info
Response:
List Peers
Response:
Get Statistics
Response:
Chat API
List Rooms
Join Room
Send Message (Room)
Send Direct Message
Get History
Marketplace API
List Listings
Get Listing
Create Listing
Update Listing
Delete Listing
Search
Escrow API
Create Escrow
Response:
Get Status
Mark Shipped
Confirm Receipt
Open Dispute
My Orders
Domain API
Register
Lookup
Update
My Domains
Error Codes
200
Success
400
Bad Request (invalid parameters)
401
Unauthorized
403
Forbidden
404
Not Found
429
Rate Limited
500
Internal Server Error
503
Service Unavailable
Rate Limits
General
100 req/min
Chat Send
30 req/min
Escrow Create
10 req/min
Domain Register
5 req/min
WebSocket API
Real-time updates via WebSocket:
Event Types
chat.message
New chat message
chat.dm
New direct message
market.listing
New/updated listing
escrow.update
Escrow state change
peer.connected
New peer connected
peer.disconnected
Peer disconnected
SDK Examples
Python
JavaScript
Last updated

