{"info":{"description":"Trustless escrow and atomic swaps on Kaspa L1. Free API — only the on-chain covenant fee (0.5%) applies.","title":"DagLock API","version":"0.1.0"},"openapi":"3.1.0","paths":{"/apps/register":{"post":{"responses":{"201":{"description":"App registered, API key returned"}},"summary":"Register an app and receive an API key"}},"/compile":{"post":{"responses":{"200":{"description":"Compiled script"}},"summary":"Compile a covenant template"}},"/escrows":{"get":{"parameters":[{"in":"query","name":"address","required":true,"schema":{"type":"string"}},{"in":"query","name":"role","schema":{"enum":["buyer","seller","all"],"type":"string"}},{"in":"query","name":"status","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"default":20,"type":"integer"}},{"in":"query","name":"offset","schema":{"default":0,"type":"integer"}}],"responses":{"200":{"description":"List of escrows"}},"summary":"List escrows by address"},"post":{"responses":{"201":{"description":"Escrow created"}},"summary":"Create escrow record"}},"/escrows/{id}":{"get":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Escrow details"}},"summary":"Get escrow by ID"}},"/escrows/{id}/cancel":{"post":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Cancelled"}},"summary":"Cancel an escrow"}},"/escrows/{id}/dispute":{"post":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Disputed"}},"summary":"Dispute an escrow"}},"/escrows/{id}/refund":{"post":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Refunded"}},"summary":"Refund an escrow (buyer only, requires auth)"}},"/escrows/{id}/settle":{"post":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Settled"}},"summary":"Settle an escrow (requires auth headers)"}},"/escrows/{id}/swap":{"post":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Settled via atomic swap"}},"summary":"Atomic swap — submit preimage"}},"/fees/estimate":{"get":{"parameters":[{"in":"query","name":"amount_kas","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Fee estimate"}},"summary":"Estimate escrow fee"}},"/health":{"get":{"responses":{"200":{"description":"API is healthy"}},"summary":"Health check"}},"/network":{"get":{"responses":{"200":{"description":"Network info"}},"summary":"Network info + template hashes"}},"/offers":{"get":{"responses":{"200":{"description":"List of offers"}},"summary":"List offers"},"post":{"responses":{"201":{"description":"Offer created"}},"summary":"Create an offer"}},"/offers/{id}/accept":{"post":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Offer accepted"}},"summary":"Accept an offer"}},"/receipts/{id}":{"get":{"parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Receipt data"}},"summary":"Get settlement receipt"}},"/reputation/{address}":{"get":{"parameters":[{"in":"path","name":"address","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Reputation data"}},"summary":"Get reputation score for an address"}},"/stats":{"get":{"responses":{"200":{"description":"Stats"}},"summary":"Global aggregate statistics"}},"/status":{"get":{"responses":{"200":{"description":"Status response"}},"summary":"Public status — uptime, volume, settlement count"}},"/swap/generate":{"post":{"responses":{"200":{"description":"Secret + hash"}},"summary":"Generate a swap secret + hash for atomic swaps"}}},"servers":[{"description":"Production","url":"https://api.daglock.io/v1"},{"description":"Development","url":"http://localhost:8543/v1"}]}