- Docs
- Api%2Freference%2Forganizations%2FConfirmInvite
Accept an invitation
Accept an invitation to join an organization. This is the address behind the button in the invitation email; the `member_id` and `token` are already in the link. Accepting signs the person in: the response carries their wallet and a session for the organization they have just joined. If they had no wallet yet, one is created for them here — the invitation itself proves they control the email address. An invitation is good for seven days and can be accepted once. After that, or if it has already been accepted, ask for a new one. No sign-in needed — the person accepting may not have an account yet.
Path Parameters
Identifier of the organization. Each endpoint states whether it must be the caller's active organization or may be used without authentication.
Query Parameters
The one-time token from the invitation email. It appears nowhere else.
The invitation being accepted, also from the email link.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.dual.network/organizations/665f1c2d4b1a2c3d4e5f6aa0/invite?token=string&member_id=665f1c2d4b1a2c3d4e5f6a71"{
"access_token": "<access token>",
"refresh_token": "<refresh token>"
}{
"code": 3,
"message": "invite expired"
}{
"code": 5,
"message": "object not found"
}{
"code": 13,
"message": "internal error"
}