def METHOD_NAME(
    invitation_data: InvitationInputs, secret_key: bytes, base_url: HttpUrl
) -> HttpUrl:
    invitation_code = _create_invitation_code(
        invitation_data=invitation_data, secret_key=secret_key
    )
    # Adds message as the invitation in query
    url = _build_link(
        base_url=base_url,
        code_url_safe=invitation_code.decode(),
    )
    return url