members

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

Accept an invitation addressed to your email.

Alle members-eindpunten

Authenticatie

Stuur een API-sleutel mee als bearer token. Dit eindpunt vermeldt geen specifieke toestemming in de specificatie, dus geef uw sleutel de minimale rechten die nodig zijn en controleer het antwoord in plaats van zomaar wat aan te nemen.

Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.

Probeer het

Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.

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

Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console

Details

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.

Parameters

NaamTypeVerplichtWat dit is
invitationId (path)stringJaThe invitation's id.

Reactie

NaamTypeVerplichtWat dit is
idstringJa
org_idstringJa
org_namestringJaThe inviting organisation's display name, so an invitee can answer "accept?".
emailstringJa
rolestringJa
site_grantsobject[]JaThe 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>Ja
expires_atstringJa
accepted_atstringNee
created_atstringJa

Fouten die dit eindpunt kan retourneren

401 · 403 · 404 · 422