enterprise.compliance.export.detail
Retrieves the status and metadata of an export task. Poll this endpoint after enterprise.compliance.export.create until record.status is COMPLIANCE_EXPORT_STATUS_COMPLETED (or COMPLIANCE_EXPORT_STATUS_FAILED).
curl --request GET \
--url https://api.manus.im/v2/enterprise.compliance.export.detail \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.manus.im/v2/enterprise.compliance.export.detail"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.manus.im/v2/enterprise.compliance.export.detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.manus.im/v2/enterprise.compliance.export.detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.manus.im/v2/enterprise.compliance.export.detail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.manus.im/v2/enterprise.compliance.export.detail")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.manus.im/v2/enterprise.compliance.export.detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ok": true,
"request_id": "<string>",
"record": {
"uid": "<string>",
"status": "COMPLIANCE_EXPORT_STATUS_UNSPECIFIED",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"event_count": 123,
"file_size": 123,
"error_message": "<string>"
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "<string>",
"message": "<string>"
}
}X-API-Key).Polling: Call this every few seconds after enterprise.compliance.export.create until record.status is COMPLIANCE_EXPORT_STATUS_COMPLETED or COMPLIANCE_EXPORT_STATUS_FAILED.Completed: record.event_count and record.file_size report the archive contents. Fetch the archive with enterprise.compliance.export.downloadUrl.Failures: When status is COMPLIANCE_EXPORT_STATUS_FAILED, record.error_message describes the cause.Protocols: Also callable via Connect RPC. See Protocols.Authorizations
Query Parameters
Export task UID returned by enterprise.compliance.export.create.
"5YX76pz7Dga3yztNVw97Dh"
Response
Export task retrieved successfully.
Whether the request was successful.
true
Unique identifier for this API request.
Export task record with current status, event count, and file size.
Hide child attributes
Hide child attributes
Export task UID.
Current export status.
COMPLIANCE_EXPORT_STATUS_UNSPECIFIED, COMPLIANCE_EXPORT_STATUS_PENDING, COMPLIANCE_EXPORT_STATUS_PROCESSING, COMPLIANCE_EXPORT_STATUS_COMPLETED, COMPLIANCE_EXPORT_STATUS_FAILED Task creation time (RFC3339).
When the export finished. Only present when status is COMPLIANCE_EXPORT_STATUS_COMPLETED.
Number of events written to the archive. Only present when status is COMPLIANCE_EXPORT_STATUS_COMPLETED. Serialized as a JSON string per proto3 int64 conventions.
Archive size in bytes. Only present when status is COMPLIANCE_EXPORT_STATUS_COMPLETED. Serialized as a JSON string per proto3 int64 conventions.
Failure reason. Only present when status is COMPLIANCE_EXPORT_STATUS_FAILED.
curl --request GET \
--url https://api.manus.im/v2/enterprise.compliance.export.detail \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.manus.im/v2/enterprise.compliance.export.detail"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.manus.im/v2/enterprise.compliance.export.detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.manus.im/v2/enterprise.compliance.export.detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.manus.im/v2/enterprise.compliance.export.detail"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.manus.im/v2/enterprise.compliance.export.detail")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.manus.im/v2/enterprise.compliance.export.detail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ok": true,
"request_id": "<string>",
"record": {
"uid": "<string>",
"status": "COMPLIANCE_EXPORT_STATUS_UNSPECIFIED",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"event_count": 123,
"file_size": 123,
"error_message": "<string>"
}
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "<string>",
"message": "<string>"
}
}