Crawl a service’s /contract endpoint and return the parsed contract without saving. Requires listing:create scope.
/contract
listing:create
cURL
curl --request POST \ --url https://api.zeroclick.quest/v1/listings/from-service/preview \ --header 'Content-Type: application/json' \ --header 'x-zam-api-key: <api-key>' \ --data ' { "serviceUrl": "<string>" } '
{ "listing": { "title": "<string>", "description": "<string>", "category": "<string>", "tags": [ "<string>" ], "listingState": "draft", "price": { "amount": 123, "unit": "<string>" }, "runContract": { "method": "GET", "endpointPath": "<string>", "inputSchema": {}, "outputSchema": {}, "requestExampleJson": "<string>", "responseExampleJson": "<string>" } } }
ZAM API key. Starts with zam_.
zam_
Base URL of the service.
Parsed contract data (not saved)
Show child attributes