Retool's user_invites endpoint - JSON attribute is not being parsed in the front end

  1. My goal: Use the user_invites retool endpoint to send an invite that includes an attribute of JSON type
  2. Issue: The endpoint only accepts stringified values for JSON type attributes. When the invite is sent, this is the response I get:

When I look at the user in Retool’s settings, the attribute is properly formatted as JSON:

However, when the user logs in, the metadata comes across as a string:

INterestingly, when I use the user_attributes endpoint to edit the values (which uses the exact same structure, with stringified values), it fixes it, so not sure what is really going on.

For now I have applied a fix to my queries to parse the attribute if it is not an array, but this is not sustainable and I’d appreciate some guidance or confirmation that this is a bug.

Thanks!

Hello @MiguelOrtiz!

This definitely looks like a bug :beetle:

Thank for you the excellent reporting as always. I will create a bug report for the infra team to check out that user_invites endpoint.

1 Like