Join the first BoxWorks Hackathon for Good - customers, partners, and the developer community are welcome to participate in the 48 hour Hack to benefit The Nature Conservancy.

Learn more and register!

Get information for a File Request

Guides File Requests Get information for a File Request
Edit this page

Get information for a File Request

To get details about an existing file request, all you need is its unique ID.

cURL
curl -i -X GET "https://api.box.com/2.0/file_requests/42037322" \
     -H "Authorization: Bearer <ACCESS_TOKEN>"
.NET
BoxFileRequestObject fileRequest = await client.FileRequestsManager.GetFileRequestByIdAsync("12345");
Java
BoxFileRequest fileRequest = new BoxFileRequest(api, "id");
BoxFileRequest.Info fileRequestInfo = fileRequest.getInfo();
Node
client.fileRequests.getById(fileRequestId)
iOS
client.fileRequests.get(fileRequestId: "123456") { result in
    guard case let .success(fileRequest) = result else {
        print("Error getting file request")
        return
    }
    
    print("File request title: \(fileRequest.title ?? "n/a"), description: \(fileRequest.description ?? "n/a")")
}

The ID of a file request can be determined by visiting the Box web app and inspecting the URL. Please check our guide on setting up a file request template to learn how to determine a file request ID.