Fill a task from documents (AI): start
curl --request POST \
--url https://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill \
--header 'Content-Type: application/json' \
--header 'X-Aegister-Token: <api-key>' \
--data '
{
"documents": [
{
"name": "<string>",
"content_type": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
'import requests
url = "https://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill"
payload = { "documents": [
{
"name": "<string>",
"content_type": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
}
] }
headers = {
"X-Aegister-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Aegister-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
documents: [
{
name: '<string>',
content_type: '<string>',
content: 'aSDinaTvuI8gbWludGxpZnk='
}
]
})
};
fetch('https://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill', 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://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'documents' => [
[
'name' => '<string>',
'content_type' => '<string>',
'content' => 'aSDinaTvuI8gbWludGxpZnk='
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Aegister-Token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill"
payload := strings.NewReader("{\n \"documents\": [\n {\n \"name\": \"<string>\",\n \"content_type\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Aegister-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill")
.header("X-Aegister-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"documents\": [\n {\n \"name\": \"<string>\",\n \"content_type\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Aegister-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"documents\": [\n {\n \"name\": \"<string>\",\n \"content_type\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"error": 0,
"messages": [],
"data": {
"job": "<string>",
"documents": {
"used": [
"<string>"
],
"skipped": [
{
"name": "<string>",
"reason": "<string>"
}
]
}
}
}{
"error": 1,
"messages": []
}{
"error": 1,
"messages": [
9153
]
}{
"error": 1,
"messages": []
}{
"error": 1,
"messages": []
}{
"error": 1,
"messages": []
}Tasks
Fill a V-CISO task from your documents with AI
Send 1 to 5 documents (PDF, Word, Excel, images or text; up to 10 MB each, 20 MB in all) in base64 and let the AI propose answers for a table or question task from them alone. Returns a job to poll with “Get the AI proposal”. Nothing is saved and the documents are not kept; you submit the proposal through “Import task”. Owners and security officers.
POST
/
api
/
v1
/
v-ciso
/
organizations
/
{organizationid}
/
workflows
/
{workflowid}
/
tasks
/
{taskid}
/
prefill
Fill a task from documents (AI): start
curl --request POST \
--url https://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill \
--header 'Content-Type: application/json' \
--header 'X-Aegister-Token: <api-key>' \
--data '
{
"documents": [
{
"name": "<string>",
"content_type": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
}
]
}
'import requests
url = "https://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill"
payload = { "documents": [
{
"name": "<string>",
"content_type": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
}
] }
headers = {
"X-Aegister-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Aegister-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
documents: [
{
name: '<string>',
content_type: '<string>',
content: 'aSDinaTvuI8gbWludGxpZnk='
}
]
})
};
fetch('https://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill', 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://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'documents' => [
[
'name' => '<string>',
'content_type' => '<string>',
'content' => 'aSDinaTvuI8gbWludGxpZnk='
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Aegister-Token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill"
payload := strings.NewReader("{\n \"documents\": [\n {\n \"name\": \"<string>\",\n \"content_type\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Aegister-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill")
.header("X-Aegister-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"documents\": [\n {\n \"name\": \"<string>\",\n \"content_type\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aegister.com/api/v1/v-ciso/organizations/{organizationid}/workflows/{workflowid}/tasks/{taskid}/prefill")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Aegister-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"documents\": [\n {\n \"name\": \"<string>\",\n \"content_type\": \"<string>\",\n \"content\": \"aSDinaTvuI8gbWludGxpZnk=\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"error": 0,
"messages": [],
"data": {
"job": "<string>",
"documents": {
"used": [
"<string>"
],
"skipped": [
{
"name": "<string>",
"reason": "<string>"
}
]
}
}
}{
"error": 1,
"messages": []
}{
"error": 1,
"messages": [
9153
]
}{
"error": 1,
"messages": []
}{
"error": 1,
"messages": []
}{
"error": 1,
"messages": []
}Body
application/json

