Hi Forum
I have a question about integrating the Messagebird MMS intergration. I want to send a video trough the sms. But I keep getting errors.
This is my current setup:
This is the documentation of Messagebird:
This is the error I get;
Hi Forum
I have a question about integrating the Messagebird MMS intergration. I want to send a video trough the sms. But I keep getting errors.
This is my current setup:
This is the documentation of Messagebird:
This is the error I get;
First, try to add header for content-type with value application/json
I have a shared header inlcluding that & the acces api key.
Any other idea for this? Thanks!
Can you prepare a test page please? Otherwise we should read the documentation, understand how it works and then try to help you. A test page can make everything easier for the people want to help you.
Thanks! What do you exactly mean with a test page?
Feel free to take a look in the edtitor!
Thanks.
Can you try this in the json body please?
{
"recipients": ["RECIPIENT_PHONE_NUMBER"],
"type": "video",
"mediaUrls": ["URL_TO_YOUR_VIDEO"]}'
Didn’t work, got the same answer friom chat gpt
The UrL you provided on first message doesn’t seem to point to the correct documentation or the correct base on the last screenshot or firstscreenshot… I’m lost.
This one seem to point to the correct doc
https://docs.messagebird.com/api/channels-api/api-reference/messaging#workspaces-workspaceid-channels-channelid-messages
And actually, what you get on both paylod are very different!
Can you confirm which doc to use?
This is important because one use JSON while the other use url encoded. Also, the base url is not the same. And body are very different
I dont understand what you are trying to say Jici,
Can you please explain?
Thanks a lot for your time!
There’s two different documentation.
On your first post, you say: MessageBird | API MMS Messaging
But the screenshot above the link show a totally different payload that is more related to this:
Messaging - MessageBird API Docs
While the payload related to the post you sent 22min ago is more related to your original link (but this payload is JSON, while the original use url encoded content type… but in this one, you have recipients, and this is what the first url use while the second talk about receiver…)
I understand that actually you use ChatGPT and ChatGPT may not help you to choose the correct endpoint and payload…
And I agree this is not easy when you land on the dev page: Docs | MessageBird
And you need to choose API Docs or Nocode Docs… but if you follow both case will lead you to this: Welcome to the MessageBird Engagement Platform API Docs - MessageBird API Docs to get API Reference…
Ah like that, excuse me.
This is the API I want to integrate:
Do you know have a better idea?
Thanks a lot @Jici!
But, I already integrated just the text one. This was easy, because I can just copy and paste almost. But how doas the api in the screenshot above know to wich number it needs to be send?
Thanks!
{
"receiver": {
"contacts": [
{
"identifierValue": "+31612345678"
}
]
},
"type": "file",
"file": {
"files": [
{
"mediaUrl": "https://file-examples.com/storage/fee472ce6e64b122ba0c8b3/2017/04/file_example_MP4_480_1_5MG.mp4",
"contentType": "video/mp4"
}
],
"text": "Single file message"
}
}
This is what I use now to send it. But I get this error from Bubble:
Status code 422
{"code":"InvalidPayload","message":"One or more fields provided in the request body are malformed","details":{".":["property \"type\" is unsupported","property \"file\" is unsupported"]}}
This is what the docs are saying about this error: