Skip to main content
POST
/
v1
/
listings
/
from-service
/
preview
Preview a service contract
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>"
    }
  }
}

Authorizations

x-zam-api-key
string
header
required

ZAM API key. Starts with zam_.

Body

application/json
serviceUrl
string
required

Base URL of the service.

Response

Parsed contract data (not saved)

listing
object