members

POST /v1/members/invitations/{invitationId}/accept

Accept an invitation addressed to your email.

Tous les points de terminaison members

Authentification

Envoyez une clé d'API en tant que jeton du porteur (bearer token). Cet endpoint n'indique pas de permission spécifique dans la spécification, attribuez donc à votre clé le minimum requis et vérifiez la réponse plutôt que de faire des suppositions.

Cet endpoint ne prend aucun identifiant d'organisation. Votre clé identifie déjà l'organisation à laquelle elle appartient, et la réponse y est limitée.

Essayer

Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.

curl -X POST https://api.zinndigital.com/v1/members/invitations/{invitationId}/accept \
  -H "Authorization: Bearer zdk_live_…"

Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API

Détails

Accepts an invitation whose email matches the **caller's verified email**, joining the organization with the invited role. The email match is the authorization — there is no secret token. Refuses an expired, revoked, already-accepted, or wrong-email invitation (422). Idempotent on the resulting membership.

Paramètres

NomTypeObligatoireQu'est-ce que c'est
invitationId (path)stringOuiThe invitation's id.

Réponse

NomTypeObligatoireQu'est-ce que c'est
idstringOui
org_idstringOui
org_namestringOuiThe inviting organisation's display name, so an invitee can answer "accept?".
emailstringOui
rolestringOui
site_grantsobject[]OuiThe individual sites this invitation lends, when it was created by sharing a site with an address that had no account (`POST /v1/sites/{siteId}/collaborators`). Empty for an ord…
statusstring<pending, accepted, revoked>Oui
expires_atstringOui
accepted_atstringNon
created_atstringOui

Erreurs que cet point de terminaison peut renvoyer

401 · 403 · 404 · 422