acceptInvitation

abstract suspend fun acceptInvitation(invitationId: String): RainbowResult<Unit>

Accepts an invitation to join the user's network.

This API allows a user to accept an invitation received from another Rainbow user. The invitationId parameter specifies the unique identifier of the invitation to accept. Once accepted, both users will be added to each other's network and become mutually visible in various APIs, such as search contacts. If the invitation is already accepted, the result will contain the Failure.INVITATION_ALREADY_ACCEPTED error code.

Return

A RainbowResult indicating success or failure. In case of failure, it will contain error details.

Parameters

invitationId

The unique identifier of the invitation to accept.