Forms for Actions HTTP Request in Flows Forces the Body to Be in JSON Format

Overview

When trying to create a Flow for a Form using the HTTP Request action and choosing the application/x-www-form-urlencoded content type, the body of the request seems to require a JSON object instead of the format.  "key1=value1&key2=value2"

If the body is not in JSON format, the following error is received: 

Body is not a valid JSON


Screenshot 2024-05-29 at 2.55.08 PM.png

Applies To

  • Forms for Actions

Cause

The body of the HTTP request when creating this Flow needs to be in JSON format, regardless of the chosen Content-Type. When making the HTTP request, Auth0 will transform the body into the selected format.

Solution

Format the body of the HTTP request in JSON format.

Recommended content

No recommended content found...