Yeah, I can see why that is not working. Maybe try this Get a Contact by ID | SendGrid Docs | Twilio
Hope that helps.