Hi everyone,
I’m trying to set up a Custom Action to connect with the Orange API for an OAuth authentication flow, but I’ve hit a brick wall with Adalo’s body validation.
Here are the API requirements:
-
Method: POST
-
URL:
[https://api.orange.com/oauth/v3/token](https://api.orange.com/oauth/v3/token) -
Headers:
-
Authorization: Basic [My_Base64_Credentials] -
Content-Type: application/x-www-form-urlencoded -
Accept: application/json
-
-
Body:
grant_type=client_credentials
The problem:
-
If I enter
grant_type=client_credentialsdirectly into the Body field, Adalo’s UI blocks me with a “Please enter a valid JSON body” error. -
If I wrap it in a JSON format (
{"grant_type": "client_credentials"}), the Orange API returns a 415 Unsupported Media Type error because Adalo overrides the content type or structures the payload as JSON. -
If I try to pass
grant_typeas a Query Parameter instead, the server rejects it with a 400 Bad Request stating “Missing grant_type in body”.Has anyone found a workaround to native
x-www-form-urlencodedPOST requests within Adalo without having to route everything through an external middleware like Make/Integromat or Xano?Any advice or component suggestions would be greatly appreciated!