connections

POST /v1/connections/{provider}

Validate or store a provider access token.

Të gjitha pikat e skajshme connections

Autentifikimi

Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen connections.manage; një çelës pa të refuzohet me 403, jo 404.

Ku shkon id i organizatës suaj

Ky endpoint pranon org_id si parametër kërkimi. Lëreni bosh dhe thirrja do të mbulojë të gjithë nëndrurin tuaj të qiramarrjes; dërgojeni atë për ta ngushtuar thirrjen në një organizatë të vetme.

ID-ja e organizatës suaj ndodhet në ekranin e çelësave API në panelin tuaj të kontrollit, pranë vetë çelësit. Është i njëjti ID në çdo thirrje që bëni.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

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

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

With `validate_only` the token is checked and nothing is stored, and the result is returned with 200 **even when the token is invalid** — an invalid token is an answer the caller renders, not a request error. Without it the token is re-validated and then stored in Vault, returning 201; a token that fails validation is rejected with `TOKEN_INVALID` and never persisted. The token itself is never logged or echoed. Requires `connections.manage`.

Parametrat

EmriLlojiKërkohetÇfarë është kjo
provider (path)ConnectionProviderPoThe third-party provider whose connections are addressed.
org_id (query)UuidJoWhich organization this connected account belongs to. Required when the caller manages connections for more than one — a reseller or an agency by construction — because a creden…
Idempotency-Key (header)stringJoClient-generated key that makes an unsafe request replay-safe: the server stores the first response and returns it verbatim for repeats.

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
validbooleanPo
account_loginobjectPoThe account the token authenticates as, when valid.
scopesstring[]Po
missing_scopesstring[]PoRequired scopes the token lacks. Empty when the token is valid, and also empty when the provider could not enumerate its permissions — in that case the connection is usable but…
messageobjectPoHuman-readable explanation, or null when valid.
permissionsPermissionReport | nullJoThe per-permission checklist, exercised against the provider. ⛔ `null` means **we cannot test this provider's permissions** — it does not mean "nothing is required". The two rea…

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 422 · 429 · 503