{
"errorCode": 404,
"message": "Contact not found"
}
I’m trying to use the GetExternalContactAction in Architect to pull customer details based on the caller’s phone number. We have a simple REST endpoint set up that should return JSON with name and email fields. The endpoint works fine when I hit it from Postman with the same phone number.
Here is the Data Action JSON I’m using in the flow:
{
"type": "GetExternalContactAction",
"settings": {
"endpointUrl": "https://api.internal-wfm-service.com/v1/customers?phone={{contact.phone}}",
"method": "GET",
"headers": {
"Authorization": "Bearer {{system.token}}"
}
},
"mappings": {
"contact.name": "$.name",
"contact.email": "$.email"
}
}
The issue is that Architect keeps returning the 404 error even though the phone number is definitely in our system. I’ve checked the logs and the request seems to go out, but it fails. I’m running Genesys Cloud version 23.10. Is there something wrong with how I’m passing the {{contact.phone}} variable? I thought maybe the format matters, but I’ve tried E.164 and standard formats. Nothing works. The endpoint definitely accepts the phone query param.