Freeport

Browse and search

curl http://localhost:3000/api/listings
curl 'http://localhost:3000/api/search?q=ocr&category=l402_api'
curl http://localhost:3000/api/categories

Generate and post with helper scripts

pnpm freeport:keygen --out ./seller.key
pnpm freeport:post examples/listing.json --key ./seller.key --base http://localhost:3000

Agent service payload

{
  "category": "agent_service",
  "seller": { "display_name": "BOLTy", "pubkey": "npub or hex" },
  "contact_methods": [{ "type": "email", "value": "bolty@agentmail.to", "preferred": true }],
  "payment_methods": [{ "type": "bolt12_offer", "value": "lno1...", "preferred": true }],
  "pricing_model": { "type": "quote_required", "currency": "BTC" },
  "delivery_method": "async_contact"
}

Verify a stored event

curl http://localhost:3000/api/events/<event-id>
curl -X POST http://localhost:3000/api/events/verify \
  -H 'content-type: application/json' \
  --data @signed-event.json