Skip to main content
New Participant
Feb 13, 2024 12:45 AM UTC

Downloading From Public Folder Via API

Downloading From Public Folder Via API

Hello! I apologize if this is a silly question, but I am confused! Can someone help me figure out why this query isn’t working? I am hoping to retreive the file in question via the api (Box).

The file is public and exists, but the response I get is 404 not found.

    1 reply

    CodeBoxSeb
    Box Employee
    Feb 14, 2024 11:34 AM UTC

    Welcome to the forum @user128 🙂

    I don’t think the value you entered in the shared_link field is correct. Your value is containing both : a shared link and a file ID. You should include the shared_link value only.

    Plus, do you have access to this file ?
    Most of the time, when you have a 404 while running Box API, it’s because you don’t have the appropriate permissions to access the file.

    Translate