API Workflow Invalid Data

I’ve been trying for days to collect data from a webhook that returns me in json, but every time it returns me that it’s an object and it can’t insert the information…

Postman send: POST>body>raw>JSON

{
  "type": "message",
  "body": {
"key": "myname"
}
  }

Return:

{
    "statusCode": 400,
    "body": {
        "status": "INVALID_DATA",
        "message": "Invalid data for key body: Expected a string, but got a object (original data: {\"key\":\"myname\"})"
    }
}

Backend API Workflow configuration:

Where it says Parameter definition on the API Workflow click Detect Request Data. Then copy and paste that url to postmen and send your data. Then bubble will auto map the field types like in the API Connector.

This topic was automatically closed after 70 days. New replies are no longer allowed.