working api invite users