<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cannot do create_invite nor send_invite via API]]></title><description><![CDATA[<p dir="auto">Hello. I've been using the API for some time to manage users in my Cloudron instance through a different application (our association members management app).</p>
<p dir="auto">But now I find that cannot use the "create_invite" and "send_invite" calls, to generate a link for the users to log in after creation (as explained here <a href="https://docs.cloudron.io/api.html#tag/Users/paths/~1users~1%7BuserId%7D~1create_invite/post" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/api.html#tag/Users/paths/~1users~1{userId}~1create_invite/post</a>).</p>
<p dir="auto">The API call, even I use json format, replies with a html text like this:</p>
<pre><code class="language-html">&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;

&lt;head&gt;
	&lt;meta charset="utf-8"&gt;
	&lt;title&gt;Error&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
	&lt;pre&gt;Cannot POST /api/v1/users/uid-13f7fac9-131e-4452-93c3-6d7762615e8c/create_invite&lt;/pre&gt;
&lt;/body&gt;

&lt;/html&gt;
</code></pre>
<p dir="auto">Sorry, no idea of what's happening here. This was working before, although I couldn't say when exactly it broke. I think the call we are making is correct.</p>
<p dir="auto">Any clue? Thanks.</p>
]]></description><link>https://forum.cloudron.io/topic/6049/cannot-do-create_invite-nor-send_invite-via-api</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 12:32:27 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/6049.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 Nov 2021 17:45:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cannot do create_invite nor send_invite via API on Tue, 23 Nov 2021 12:00:08 GMT]]></title><description><![CDATA[<p dir="auto">The API docs are now also updated for the invite routes.</p>
]]></description><link>https://forum.cloudron.io/post/39648</link><guid isPermaLink="true">https://forum.cloudron.io/post/39648</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Tue, 23 Nov 2021 12:00:08 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot do create_invite nor send_invite via API on Tue, 23 Nov 2021 09:28:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> All clear now. Thanks very much.</p>
]]></description><link>https://forum.cloudron.io/post/39640</link><guid isPermaLink="true">https://forum.cloudron.io/post/39640</guid><dc:creator><![CDATA[andres.moya]]></dc:creator><pubDate>Tue, 23 Nov 2021 09:28:31 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot do create_invite nor send_invite via API on Mon, 22 Nov 2021 19:20:46 GMT]]></title><description><![CDATA[<p dir="auto">@andres-moya currently the email is mandatory. I don't quite remember right now if this was on purpose or just because the route was implemented mainly with the dashboard in mind.</p>
<p dir="auto">I think it makes sense to have it optional and falling back to the user's email address then.</p>
<p dir="auto">Also please note, that a user now mostly only has one email and optionally a password reset email address set.</p>
]]></description><link>https://forum.cloudron.io/post/39619</link><guid isPermaLink="true">https://forum.cloudron.io/post/39619</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 22 Nov 2021 19:20:46 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot do create_invite nor send_invite via API on Mon, 22 Nov 2021 18:24:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> thanks! I've been able to do it now, with these routes.</p>
<p dir="auto">One question: I see that the send_invite_email has now a parameter to specify the email address to send the link. Is this mandatory? Or can I omit it, and have cloudron to use the primary email address of the user?</p>
]]></description><link>https://forum.cloudron.io/post/39618</link><guid isPermaLink="true">https://forum.cloudron.io/post/39618</guid><dc:creator><![CDATA[andres.moya]]></dc:creator><pubDate>Mon, 22 Nov 2021 18:24:58 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot do create_invite nor send_invite via API on Mon, 22 Nov 2021 17:57:29 GMT]]></title><description><![CDATA[<p dir="auto">Actually the API has changed with v7, since the whole impersonation/invite/password reset area was reworked. Sorry we haven't updated the docs yet.</p>
<p dir="auto">Will do this in a bit. For the meantime, essentially the routes are now:</p>
<pre><code>GET '/api/v1/users/:userId/invite_link' -&gt; 200 { inviteLink }
POST '/api/v1/users/:userId/send_invite_email' with body { email: 'send@invite.to' } -&gt; 202 {}
</code></pre>
]]></description><link>https://forum.cloudron.io/post/39615</link><guid isPermaLink="true">https://forum.cloudron.io/post/39615</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 22 Nov 2021 17:57:29 GMT</pubDate></item></channel></rss>