Hello everyone,
I'm trying to use callin.io to automate the creation of a text-to-speech (TTS) audio file using Google TTS, and then upload this audio file to Aircall via their API. The audio file is generated in binary format. However, I'm facing challenges in correctly formatting and uploading this binary data as an MP3 file to Aircall, as it consistently returns a 404 error.
Here are some screenshots of the modules I'm using:
Could you please offer some guidance?
Hello!! Welcome to the callin.io community!
404 means the endpoint is not found. From your screenshot, we can see that you have set the full URL ( https://api.aircall.io/v1/files/upload ), but it should be a relative URL. You should write /v1/files/upload instead.
Besides, you don’t need to add the Authorization (item2); you can remove it. The Module will leverage the connection you have already configured.
Benjamin
Hello Benjamin,
I've made the necessary adjustments, but it appears the issue persists. Could you please take another look?
json
[
{
"url": "v1/files/upload",
"body": ""file": {n "value": "IMTBuffer(94848, binary, 71b961a7bb8e876c7e1d41deac5301206827334f): fff344c4001138423c00c246250c9aec46f2101b909a818e9863502818b3801e3fec8fc0000003c3fff33e387878000000001879ffff9878786000000000787bffffffccffffffef80000000230f0f0f1e00307850c1c0831fb7ce6ef1362adcfff344c4",n "filename": "2024-06-21 17:57:20.mp3",n "content_type": "audio/mpeg" n }",
"method": "POST",
"headers": [
{
"key": "Content-Type",
"value": "multipart/form-data"
}
]
}
]
Hi! You didn't quite follow my instructions.
It should be /v1
(including the slash).
Benjamin
I did this because the example indicates it's relative to https://api.aircall.io/ .
Enter a path relative to https://api.aircall.io/
. For instance: v1/users
.
I tried again, but without success. Thanks for your assistance, I really appreciate it!
My apologies, you were correct.
I cannot locate a files/upload endpoint within the Aircall API documentation. Could you direct me to it? Perhaps the URL differs from the one you intend to use.
Ouch, I just discovered this:
Do you have any recommendations on how I can transmit a TTS audio message over the phone?
The goal would be to utilize their API to "deliver message," which I believe is a feature they offer, with the message type being an mp3.
I'm not entirely sure. Based on their API documentation, it doesn't seem possible to initiate a call and attach the resulting MP3. However, there might be an undocumented method I'm unaware of, as I haven't used Aircall previously.