Twillo TO particle, not from. Send SMS to a particle end point

I am trying to find a way to send a text message to a particle end point. I have a twillo number, but now with access tokens being deprecated, it seems oauth is about the only option. I want a text with x,y,z as parameters but it seems that Particle will not even pass those to a handler unless I have permission.

I get the idea that tokens were being buried in code and open on particles site but putting in a node that logs in, creates an outh, passes that to particle cloud is just as bad; now my username and pw are there.

Since this is a one off, I can put validation either in Particle or at the end device. If text message is “open 1234” and 1234 is a valid code and open happens….

Thoughts or ideas are appreciated.

Which access tokens are deprecated?

You can still use access tokens to access the Particle API. You can still create a non-expiring Particle access token and embed it in an external service.

Read that oauth is now preferred. You can no longer list tokens, you cannot see them In setting. The led example says “do not do it this way” ie use access_token

Either way, I have tried access_token in twillo and get an instant invalid token as my returned error

You cannot list user access tokens, but you can create one using particle token create.

A better way to embed a static access token is to use a product and an API user token that only has permissions to call a function, but both ways still work.