Business Chat: 400 Bad request error trying to download attachment

Hi All,

I am trying to prototype ABC integration with my company's CSP and running in to step 2 following this developer link.

https://developer.apple.com/documentation/businesschat/receiving_messages/receiving_a_text_message_with_attachments


I was able to obtain file url but if I try a plain GET on it, gives me 400 bad request error.


Any other Business Chat developers who can help me out here ? or guide me though the development process.

Replies

Hi, we're experiencing the same issue, did you have any luck resolving this?


We've found it works for InteractiveData responses, but gives 400 for attachments


Thanks

It turns out the signature for attachments is only hex encoded and has to be Base64 encoded to get the URL.


However, for InteractiveDataRef requests, the signature field is already base64 encoded, which is why it did work for this.


This now works for us