Send URL-encoded form data with Perform an API call
To send URL-encoded form data with a standard Perform an API call Wrk Action, set Content-Type in Request headers to application/x-www-form-urlencoded. Enter the form fields as a JSON object in Request body; Wrk encodes the values before sending the request.
Request headers:
{"Content-Type": "application/x-www-form-urlencoded"}
Request body:
{
"To": "+15555550100",
"MessagingServiceSid": "MG00000000000000000000000000000000",
"Body": "Wrk Test message"
}
The phone number and Messaging Service SID above are example placeholders. Wrk encodes special characters for the request: for example, + becomes %2B. Spaces may appear as + or %20, both valid in URL-encoded form data. Enter the body as JSON; do not paste an already encoded string such as To=%2B1555...&Body=....
This example is for requests without a file attached. File uploads use a different request format.