Get the result of an async model batch

v1
get
/1/ai/{product_id}/results/{batch_id}

Get the result of an async model batch

Path parameters

product_id
requiredstring
Examples:example
batch_id
requiredstring
Examples:example

Response Body

application/json
statusrequiredstring
Possible values:cancelledfailedpendingprocessingsuccess

Progression status

Examples:success
urlrequiredstring

The result download url.

Examples:https://api.infomaniak.com/1/ai/results/123456-1234-abcd-1234-1234abcd/download
file_namerequiredstring

The filename of the result

file_sizerequiredinteger

The file size in bytes of the result

datarequired

The result

Example request

                <?php
use GuzzleHttp\Client;

$client = new Client();
$headers = [
	'Authorization' => 'Bearer YOUR-TOKEN-HERE',
	'Content-Type' => 'application/json'
];

$request = new Request('GET', 'https://api.infomaniak.com/1/ai/{product_id}/results/{batch_id}', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
            

Example response

application/json
                
                    
{
"status":"success",
"url":"https://api.infomaniak.com/1/ai/results/123456-1234-abcd-1234-1234abcd/download",
"file_name":"example",
"file_size":58555,
"data":"example"
}