/contract endpoint in the ZAM format, ZAM can create a listing from it automatically. No manual field entry required.
How it works
- You give ZAM a base URL (e.g.,
https://your-api.com). - ZAM fetches
https://your-api.com/contract. - ZAM validates the response against the service contract schema.
- ZAM creates a listing with the returned title, description, price, and run contract.
The /contract endpoint
Your service must expose a GET /contract endpoint that returns JSON in this shape:
/contract endpoint must match, fetch:
Import a service
- API
- CLI
- Dashboard
Preview first (validates without saving):Create the listing:
Error handling
| Error type | Cause |
|---|---|
network | ZAM cannot reach the URL |
non_ok_status | The /contract endpoint returned a non-2xx status |
invalid_json | The response is not valid JSON |
invalid_contract | The JSON does not match the service contract schema |