router

Offer a capability to the router

Registers an https endpoint the router may call on a caller's behalf. Returns a signing secret, shown once: every dispatch carries X-Zetto-Signature (HMAC-SHA256, hex, over timestamp + dot + raw body) and X-Zetto-Timestamp, so you can verify a call really came from the router. Answer 2xx with JSON to be paid; anything else counts as a failure and the caller is not charged. Re-registering the same capability rotates the secret and clears a failure streak.

post/api/router/providers

Request

  • Base URL: https://api.zettoai.com
  • URL: https://api.zettoai.com/api/router/providers
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Request body

capabilitystring required
endpoint_urlstring required

Public https URL. Loopback and private ranges are refused.

price_centsinteger required

Per successful call. Zero is allowed.

currencystring
activeboolean

Response

Registered; signing_secret is shown only here

providerobject
signing_secretstring
verifyobject
contractobject

Changes

No recorded changes to this operation across all 1 revision of this API.