We’re excited to announce an upgrade to our API integration module, now supporting the "x-www-form-urlencoded" content type. This allows for easier integration with APIs that use key-value pairs.
Key Features:
API Request Body Setup:
In the API Editor's Body tab, select "x-www-form-urlencoded" to enter data in a table format with "key" and "value" columns (up to 500 rows).
Easily switch between "x-www-form-urlencoded" and "application/json" without losing your data.
If you add "Content-Type" in Headers, it will sync with the Body tab.
Data Types Supported:
Enter strings, arrays (key[]), and nested objects (key.childKey).
If there are duplicate keys, only the last one will be used.
Test API Requests:
Use test data in place of variables {{ }} to check your request setup before sending.
Send the request with the "x-www-form-urlencoded" header to your endpoint for testing.
Use in Conversations:
Configure and trigger APIs in conversation flows, where variables {{ }} will automatically convert to visitor data.
Compatibility with JSON Requests:
"application/json" requests remain fully supported and unchanged.
This update enhances our API integration by making it easier to work with different content types, ensuring smooth data handling across various integrations.