Box Developer Documentation

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>"
TypeScript Gen
await client.fileRequests.getFileRequestById(updatedFileRequest.id);
Python Gen
client.file_requests.get_file_request_by_id(updated_file_request.id)
.NET Gen
await client.FileRequests.GetFileRequestByIdAsync(fileRequestId: updatedFileRequest.Id);
Java
BoxFileRequest fileRequest = new BoxFileRequest(api, "id");
BoxFileRequest.Info fileRequestInfo = fileRequest.getInfo();
Python
file_request = client.file_request(file_request_id='123456').get()
print(f'File request {file_request.id} on folder {file_request.folder.name}')
.NET
BoxFileRequestObject fileRequest = await client.FileRequestsManager.GetFileRequestByIdAsync("12345");
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.