Process API download images

Hi, I am using process API to download band image. But I am able to download single image with a request. Is there a way to download multiple bands in Process API with one request? If yes how to achieve it?

There are many examples in the documentation that you can refer to. I think specifically for you; this one should be most useful:

@william.ray I am trying to run below code but getting 400 response can you tell what’s the issue with below code?

var payload = new
{
input = new
{
bounds = new
{
bbox = new[]
{
13.822174072265625,
45.85080395917834,
14.55963134765625,
46.29191774991382
}
},
data = new object[]
{
new
{
type = “sentinel-2-l2a”,
dataFilter = new
{
timeRange = new
{
from = “2022-10-01T00:00:00Z”,
to = “2022-10-10T00:00:00Z”
}
}
}
},
evalscript = @"
//VERSION=3
function setup() {
return {
input: [{
bands: [‘B02’, ‘B03’, ‘B04’, ‘B08’],
units: ‘DN’
}],
output: {
bands: 4,
sampleType: ‘UINT16’
}
}
}

        function evaluatePixel(sample) {
            return {
                B02: [sample.B02],
                B03: [sample.B03],
                B04: [sample.B04],
                B08: [sample.B08]
            }
        }"
}

};

// Serialize the payload to JSON
var jsonPayload = System.Text.Json.JsonSerializer.Serialize(payload);
jsonPayload = Regex.Unescape(jsonPayload);

// Create HttpClient instance
using (var httpClient = new HttpClient())
{
// Add Authorization header with the access token
httpClient.DefaultRequestHeaders.Add(“Authorization”, $“Bearer {token}”);

// Create and send the POST request
var response = await httpClient.PostAsync("https://services.sentinel-hub.com/api/v1/process", new StringContent(jsonPayload, System.Text.Encoding.UTF8, "application/json"));

// Check the response status
if (response.IsSuccessStatusCode)
{
    var responseContent = await response.Content.ReadAsStringAsync();
    return responseContent;
}
else
{
    Console.WriteLine($"Request failed with status code: {response.StatusCode}");
    return null;
}

}