Using GraphQL API in Dynamic Routes

Has anyone used any FreePBX GraphQL APIs in the Dynamic Routes module? I am interested in collecting a DTMF string from the caller, then using it with an API call to make a change in the FreePBX system.

Thanks!