Skip to main content
Box Employee
May 22, 2025 11:58 AM UTC
Question

Get Download URL Api returns 400 Bad Request

I am using http in flutter for api calling and i followed this doc "https://developer.box.com/guides/downloads/get-url/" and link

https://api.box.com/2.0/files/12345/content?version=4

to get download link for files but i received 400 bad request in response but if i remove "?version=4" from above link than i get binary data of that file, so how am i suppose to get a download link ?

    1 reply

    Box Employee
    May 22, 2025 11:58 AM UTC

    Hi, 

    I would probably need to see the full code to be helpful, but that link you shared is just an example placeholder. Its also important to make sure this note is followed on that page. 

    BOX1_o9GdsoNl-iJPugTR5J0C7g.png

    Thanks, 

    Alex, Box Developer Advocate

    Translate