I’m trying to set up a simple lookup in Architect using the GetExternalContactAction. The goal is to pull customer details from our internal REST API when a call comes in. I have the Data Action configured to hit https://api.internal/customers?phone={phoneNumber}. The endpoint works fine when I test it in Postman with a standard E.164 number like +14155551234.
In Architect, I’m mapping the incoming From address to the action input. I’ve verified the flow by logging the variable before the action runs. The value looks correct: +14155551234. However, the action always fails with a 404 status code. The error message just says “Resource not found”.
I suspect it’s a formatting issue because the internal API expects the phone number without the + sign, but Architect seems to pass it exactly as it comes in from the telephony provider. I tried adding a simple transformation in the Data Action settings to strip the +, but that didn’t change anything. The request still hits the server with the + prefix.
Here is the JSON payload I’m seeing in the server logs:
{
"requestId": "abc-123",
"queryParams": {
"phone": "+14155551234"
}
}
If I manually change the query param in Postman to 14155551234, I get a 200 OK. How can I force the GetExternalContactAction to send the number without the +? I don’t want to write a custom middleware just to strip a character. Is there a way to format the input within the Architect action configuration itself?