curl --request GET \
--url https://api.ionworks.com/activity-logs/import requests
url = "https://api.ionworks.com/activity-logs/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/activity-logs/', 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.ionworks.com/activity-logs/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.ionworks.com/activity-logs/"
req, _ := http.NewRequest("GET", url, nil)
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.ionworks.com/activity-logs/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/activity-logs/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"user_id": "<string>",
"organization_id": "<string>",
"type": "simulation_created",
"created_at": "2023-11-07T05:31:56Z",
"project_id": "<string>",
"metadata": {},
"usage_quantity": 123,
"compute_time": 123,
"core_seconds": 123
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}List Activity Logs
List activity logs for the current user’s organization. Only users with Admin role can access activity logs for auditing purposes.
- user_id: Optional filter by user ID
- activity_type: Optional filter by activity type
- project_id: Optional filter by project ID. Activities with no project (organization-scoped ones) are excluded when this filter is set.
- limit: Maximum number of logs to return (1-1000, default 100)
- offset: Number of logs to skip for pagination
curl --request GET \
--url https://api.ionworks.com/activity-logs/import requests
url = "https://api.ionworks.com/activity-logs/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/activity-logs/', 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.ionworks.com/activity-logs/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.ionworks.com/activity-logs/"
req, _ := http.NewRequest("GET", url, nil)
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.ionworks.com/activity-logs/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/activity-logs/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"user_id": "<string>",
"organization_id": "<string>",
"type": "simulation_created",
"created_at": "2023-11-07T05:31:56Z",
"project_id": "<string>",
"metadata": {},
"usage_quantity": 123,
"compute_time": 123,
"core_seconds": 123
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Query Parameters
Activity types for auditing purposes.
Every member here must also exist in the public.activity_type Postgres
enum, and vice versa — a value present on only one side is unusable (an
insert fails, or a stored row cannot be parsed). test_activity_type_enum_ parity in tests/integration_db/schema/ asserts the two lists match.
simulation_created, simulation_completed, optimization_run, file_uploaded, file_deleted, project_created, project_updated, project_deleted, optimization_created, optimization_deleted, datafit_completed, optimization_completed, validation_completed, simple_pipeline_completed, cycler_protocol_run, cycler_protocol_completed, pipeline_created, pipeline_deleted, member_added, member_role_updated, member_deactivated, member_reactivated, member_removed, cell_specification_created, cell_specification_deleted, cell_instance_created, cell_instance_deleted, cell_measurement_created, cell_measurement_deleted, protocol_template_created, protocol_template_deleted, study_created, study_deleted, model_created, model_deleted 1 <= x <= 1000x >= 0Response
Successful Response
Activity types for auditing purposes.
Every member here must also exist in the public.activity_type Postgres
enum, and vice versa — a value present on only one side is unusable (an
insert fails, or a stored row cannot be parsed). test_activity_type_enum_ parity in tests/integration_db/schema/ asserts the two lists match.
simulation_created, simulation_completed, optimization_run, file_uploaded, file_deleted, project_created, project_updated, project_deleted, optimization_created, optimization_deleted, datafit_completed, optimization_completed, validation_completed, simple_pipeline_completed, cycler_protocol_run, cycler_protocol_completed, pipeline_created, pipeline_deleted, member_added, member_role_updated, member_deactivated, member_reactivated, member_removed, cell_specification_created, cell_specification_deleted, cell_instance_created, cell_instance_deleted, cell_measurement_created, cell_measurement_deleted, protocol_template_created, protocol_template_deleted, study_created, study_deleted, model_created, model_deleted Was this page helpful?