Can I run command "obd.send" via API?

Hello,
I’m trying to integrate AutoPi and Amazon Alexa. My first goal is to unlock door via Amazon Alexa.
There are 2 scenarios. The first one is to use mqtt between AutoPi and Alexa, In the case, I think I can run obd.send command on the device after checking mqtt.
The other option is to use AutoPi API.
Here is my question, Is there specific API that is like obd.send command?

Hi @PLATO,

Absolutely, you can do that using this API:
https://api.autopi.io/#/dongle/dongle_obd_query_create

best
Peter

Hello Peter,
Hope everything is going well with and your team.

My colleague made a custom library called “Front_Driver_Door_Unlock” via Library in the Car Explorer menu in order to send a command to autopi through Amazon Alexa.

In a terminal, the command below is working with obd.query command
obd.query Front_Driver_Door_Unlock mode=01 pid=33 header=7DF baudrate=500000 protocol=6 verify=false force=true

But the command is not working when I execute the command via API like below,

curl -X POST “https://api.autopi.io/dongle/****************/obd/query/Front_Driver_Door_Unlock%2F%3Fmode%3D01%26pid%3D33%26header%3D7DF%26baudrate%3D500000%26protocol%3D6%26verify%3Dfalse%26force%3DTrue/” -H “accept: application/json” -H “Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Im5laWwubGVlIiwidXNlcl9pZCI6MTM2MCwiZW1haWwiOiJuZWlsLmxlZUBidGlzb2x1dGlvbnMuY29tIiwiZXhwIjoxNTk3OTA1MjIxfQ.Wrj4KKBFUsjSgLAa69y6fH_iZzZElGmry7_X96Xah_M”

It’s response is like below,
{
“return”: [
{
“66af3a966f46f8f95e8ca41682966d6c”: “ERROR: Command may not be supported - add ‘force=True’ to run it anyway”
}
]

In this case, can you let me know how to solve the issue?

Thank you in advance!

}