syndication

POST /v1/syndication/connections/{connectionId}/verify

Check a connection against the live channel.

Minden syndication végpont

Hitelesítés

Küldjön egy API-kulcsot bearer tokenként. Ez a végpont nem határoz meg konkrét jogosultságot a specifikációban, ezért adja meg a kulcsnak a legkevesebbet, amire szüksége van, és a feltételezés helyett ellenőrizze a választ.

Ez a végpont nem fogad el szervezeti azonosítót. Az Ön kulcsa már azonosítja azt a szervezetet, amelyhez tartozik, és a válasz is erre vonatkozik.

Próbálja ki

Cserélje ki a hegyes zárójelek közötti részt a saját értékeivel, a kulcshelyőrzőt pedig a vezérlőpultján található kulccsal.

curl -X POST https://api.zinndigital.com/v1/syndication/connections/{connectionId}/verify \
  -H "Authorization: Bearer zdk_live_…"

Be van jelentkezve? A vezérlőpultban lévő API-konzol kitölti a valós szervezetazonosítóját és a saját kulcsát, és a kérést az éles API-n futtatja, hogy láthassa a tényleges választ. Nyissa meg ezt a végpontot az API konzolban

Részletek

⛔ A failure is a **200 carrying a non-ready `status`**, not an error response — "we could not reach it" is the answer to the question that was asked. Three outcomes: `ready`, `needs_reconnect` (the customer must act) and `error` (we reached the vendor and it said no for another reason). Gated on `syndication.manage`.

Paraméterek

NévTípusKötelezőMi ez
connectionId (path)stringIgen

Válasz

NévTípusKötelezőMi ez
idstringIgen
channelstringIgen
namestringIgenThe customer's own name for it. ⛔ `name` on the wire, `label` on the model: `Field.label` is DRF's own attribute and shadowing it is silent at runtime.
targetstringIgenThe non-secret half — a handle, an instance, a board id.
statusstring<unverified, ready, needs_reconnect, error>Igen⛔⛔ `needs_reconnect` is NOT a failure — the credential lapsed and only the customer can fix it. `unverified` means we have not looked, which is a third fact and not a quiet green.
account_refstringIgenThe account the VENDOR said this credential belongs to — discovered.
verify_errorstringIgenA machine code the dashboard turns into copy. Never a sentence.
verified_atstringIgen
expires_atstringIgen⛔ `null` means **no stated expiry**, which is a different fact from "never expires" and must not render as an unqualified green.
byobooleanIgenWhether the customer supplied their own developer app.
created_atstringIgen

Hibák, amelyeket ez a végpont visszaadhattatlan

401 · 403 · 404