List Platform Logs
curl --request POST \
--url https://api.stackone.com/logs/platform \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"page": 1,
"page_size": 25,
"filters": {
"event_type": [
"account_create",
"account_delete"
],
"event_id": [
"<string>"
],
"action": [
"create",
"delete"
],
"account_secure_id": [
"45355976281015164504"
],
"user_id": [
"<string>"
],
"source_type": [
"<string>"
],
"source_id": [
"<string>"
],
"auth_type": [
"<string>"
],
"auth_id": [
"<string>"
],
"session_id": [
"<string>"
],
"agent_id": [
"<string>"
],
"transport_type": [
"<string>"
],
"ip_address": [
"<string>"
],
"success": true,
"start_time": "2025-01-01T00:00:00.000Z",
"end_time": "2025-01-31T23:59:59.999Z"
}
}
'import requests
url = "https://api.stackone.com/logs/platform"
payload = {
"page": 1,
"page_size": 25,
"filters": {
"event_type": ["account_create", "account_delete"],
"event_id": ["<string>"],
"action": ["create", "delete"],
"account_secure_id": ["45355976281015164504"],
"user_id": ["<string>"],
"source_type": ["<string>"],
"source_id": ["<string>"],
"auth_type": ["<string>"],
"auth_id": ["<string>"],
"session_id": ["<string>"],
"agent_id": ["<string>"],
"transport_type": ["<string>"],
"ip_address": ["<string>"],
"success": True,
"start_time": "2025-01-01T00:00:00.000Z",
"end_time": "2025-01-31T23:59:59.999Z"
}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
page: 1,
page_size: 25,
filters: {
event_type: ['account_create', 'account_delete'],
event_id: ['<string>'],
action: ['create', 'delete'],
account_secure_id: ['45355976281015164504'],
user_id: ['<string>'],
source_type: ['<string>'],
source_id: ['<string>'],
auth_type: ['<string>'],
auth_id: ['<string>'],
session_id: ['<string>'],
agent_id: ['<string>'],
transport_type: ['<string>'],
ip_address: ['<string>'],
success: true,
start_time: '2025-01-01T00:00:00.000Z',
end_time: '2025-01-31T23:59:59.999Z'
}
})
};
fetch('https://api.stackone.com/logs/platform', 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.stackone.com/logs/platform",
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([
'page' => 1,
'page_size' => 25,
'filters' => [
'event_type' => [
'account_create',
'account_delete'
],
'event_id' => [
'<string>'
],
'action' => [
'create',
'delete'
],
'account_secure_id' => [
'45355976281015164504'
],
'user_id' => [
'<string>'
],
'source_type' => [
'<string>'
],
'source_id' => [
'<string>'
],
'auth_type' => [
'<string>'
],
'auth_id' => [
'<string>'
],
'session_id' => [
'<string>'
],
'agent_id' => [
'<string>'
],
'transport_type' => [
'<string>'
],
'ip_address' => [
'<string>'
],
'success' => true,
'start_time' => '2025-01-01T00:00:00.000Z',
'end_time' => '2025-01-31T23:59:59.999Z'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$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://api.stackone.com/logs/platform"
payload := strings.NewReader("{\n \"page\": 1,\n \"page_size\": 25,\n \"filters\": {\n \"event_type\": [\n \"account_create\",\n \"account_delete\"\n ],\n \"event_id\": [\n \"<string>\"\n ],\n \"action\": [\n \"create\",\n \"delete\"\n ],\n \"account_secure_id\": [\n \"45355976281015164504\"\n ],\n \"user_id\": [\n \"<string>\"\n ],\n \"source_type\": [\n \"<string>\"\n ],\n \"source_id\": [\n \"<string>\"\n ],\n \"auth_type\": [\n \"<string>\"\n ],\n \"auth_id\": [\n \"<string>\"\n ],\n \"session_id\": [\n \"<string>\"\n ],\n \"agent_id\": [\n \"<string>\"\n ],\n \"transport_type\": [\n \"<string>\"\n ],\n \"ip_address\": [\n \"<string>\"\n ],\n \"success\": true,\n \"start_time\": \"2025-01-01T00:00:00.000Z\",\n \"end_time\": \"2025-01-31T23:59:59.999Z\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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://api.stackone.com/logs/platform")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"page\": 1,\n \"page_size\": 25,\n \"filters\": {\n \"event_type\": [\n \"account_create\",\n \"account_delete\"\n ],\n \"event_id\": [\n \"<string>\"\n ],\n \"action\": [\n \"create\",\n \"delete\"\n ],\n \"account_secure_id\": [\n \"45355976281015164504\"\n ],\n \"user_id\": [\n \"<string>\"\n ],\n \"source_type\": [\n \"<string>\"\n ],\n \"source_id\": [\n \"<string>\"\n ],\n \"auth_type\": [\n \"<string>\"\n ],\n \"auth_id\": [\n \"<string>\"\n ],\n \"session_id\": [\n \"<string>\"\n ],\n \"agent_id\": [\n \"<string>\"\n ],\n \"transport_type\": [\n \"<string>\"\n ],\n \"ip_address\": [\n \"<string>\"\n ],\n \"success\": true,\n \"start_time\": \"2025-01-01T00:00:00.000Z\",\n \"end_time\": \"2025-01-31T23:59:59.999Z\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stackone.com/logs/platform")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"page\": 1,\n \"page_size\": 25,\n \"filters\": {\n \"event_type\": [\n \"account_create\",\n \"account_delete\"\n ],\n \"event_id\": [\n \"<string>\"\n ],\n \"action\": [\n \"create\",\n \"delete\"\n ],\n \"account_secure_id\": [\n \"45355976281015164504\"\n ],\n \"user_id\": [\n \"<string>\"\n ],\n \"source_type\": [\n \"<string>\"\n ],\n \"source_id\": [\n \"<string>\"\n ],\n \"auth_type\": [\n \"<string>\"\n ],\n \"auth_id\": [\n \"<string>\"\n ],\n \"session_id\": [\n \"<string>\"\n ],\n \"agent_id\": [\n \"<string>\"\n ],\n \"transport_type\": [\n \"<string>\"\n ],\n \"ip_address\": [\n \"<string>\"\n ],\n \"success\": true,\n \"start_time\": \"2025-01-01T00:00:00.000Z\",\n \"end_time\": \"2025-01-31T23:59:59.999Z\"\n }\n}"
response = http.request(request)
puts response.read_body{
"page": 1,
"page_size": 25,
"total": 100,
"data": [
{
"log_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b",
"log_type": "platform",
"event_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b",
"event_type": "account_create",
"service": "unified-api",
"event_time": "2021-01-01T00:00:00Z",
"start_time": "2021-01-01T00:00:00Z",
"end_time": "2021-01-01T00:00:00Z",
"duration_ms": 356,
"project_id": "dev-project-68574",
"account_id": "45355976281015164504",
"success": true,
"status_code": 200,
"connector_key": "workday",
"connector_version": "1.0.0",
"connector_owner": "stackone",
"connector": {
"key": "workday",
"name": "Workday",
"logo_url": "https://app.stackone.com/logos/workday.png",
"categories": [
"hris"
],
"version": "1.0.0",
"owner": "stackone"
},
"mode": "production",
"http_method": "GET",
"url": "https://api.stackone.com/unified/hris/employees",
"source_type": "DASHBOARD",
"source_id": "1234567890",
"source_value": "ACCOUNT_TESTER",
"auth_type": "API_KEY",
"auth_id": "auth-123",
"user_agent": "Mozilla/5.0",
"ip_address": "192.168.1.1",
"session_id": "session-123",
"agent_id": "agent-123",
"transport_type": "HTTP",
"stream_type": "HTTP",
"is_background": false,
"origin_owner_id": "owner-123",
"origin_owner_name": "Test Owner",
"action": "create",
"sub_action": "<string>",
"user_id": "<string>",
"details": "<string>"
}
]
}{
"statusCode": 400,
"message": "Bad Request",
"timestamp": "2023-05-30T00:00:00.000Z",
"data": {
"statusCode": 400,
"message": "Bad Request",
"headers": {
"content-type": "application/json",
"x-request-id": "5678c28b211dace4e0a0f9171e6b88c5"
}
},
"provider_errors": [
{
"status": 400,
"url": "https://api.provider.com/v1/resource",
"raw": {
"message": "Invalid input parameters"
},
"headers": {
"content-type": "application/json",
"x-request-id": "5678c28b211dace4e0a0f9171e6b88c5"
}
}
]
}{
"statusCode": 401,
"message": "Unauthorized",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 403,
"message": "Forbidden resource",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 404,
"message": "Not Found",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 408,
"message": "Request timed out",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 409,
"message": "Conflict",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 422,
"message": "Unprocessable Entity",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 429,
"message": "Too many requests",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 500,
"message": "Internal server error",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 501,
"message": "Not Implemented",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 502,
"message": "Bad Gateway",
"timestamp": "2023-05-30T00:00:00.000Z"
}List Platform Logs
Returns a paginated list of platform logs — the audit trail of operations on StackOne itself, such as creating an account or deleting an integration, as opposed to requests proxied to a provider. Filter event_type to scope to a resource: each is <resource>_<action>, so passing the set for a resource returns everything that happened to it.
POST
/
logs
/
platform
List Platform Logs
curl --request POST \
--url https://api.stackone.com/logs/platform \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"page": 1,
"page_size": 25,
"filters": {
"event_type": [
"account_create",
"account_delete"
],
"event_id": [
"<string>"
],
"action": [
"create",
"delete"
],
"account_secure_id": [
"45355976281015164504"
],
"user_id": [
"<string>"
],
"source_type": [
"<string>"
],
"source_id": [
"<string>"
],
"auth_type": [
"<string>"
],
"auth_id": [
"<string>"
],
"session_id": [
"<string>"
],
"agent_id": [
"<string>"
],
"transport_type": [
"<string>"
],
"ip_address": [
"<string>"
],
"success": true,
"start_time": "2025-01-01T00:00:00.000Z",
"end_time": "2025-01-31T23:59:59.999Z"
}
}
'import requests
url = "https://api.stackone.com/logs/platform"
payload = {
"page": 1,
"page_size": 25,
"filters": {
"event_type": ["account_create", "account_delete"],
"event_id": ["<string>"],
"action": ["create", "delete"],
"account_secure_id": ["45355976281015164504"],
"user_id": ["<string>"],
"source_type": ["<string>"],
"source_id": ["<string>"],
"auth_type": ["<string>"],
"auth_id": ["<string>"],
"session_id": ["<string>"],
"agent_id": ["<string>"],
"transport_type": ["<string>"],
"ip_address": ["<string>"],
"success": True,
"start_time": "2025-01-01T00:00:00.000Z",
"end_time": "2025-01-31T23:59:59.999Z"
}
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
page: 1,
page_size: 25,
filters: {
event_type: ['account_create', 'account_delete'],
event_id: ['<string>'],
action: ['create', 'delete'],
account_secure_id: ['45355976281015164504'],
user_id: ['<string>'],
source_type: ['<string>'],
source_id: ['<string>'],
auth_type: ['<string>'],
auth_id: ['<string>'],
session_id: ['<string>'],
agent_id: ['<string>'],
transport_type: ['<string>'],
ip_address: ['<string>'],
success: true,
start_time: '2025-01-01T00:00:00.000Z',
end_time: '2025-01-31T23:59:59.999Z'
}
})
};
fetch('https://api.stackone.com/logs/platform', 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.stackone.com/logs/platform",
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([
'page' => 1,
'page_size' => 25,
'filters' => [
'event_type' => [
'account_create',
'account_delete'
],
'event_id' => [
'<string>'
],
'action' => [
'create',
'delete'
],
'account_secure_id' => [
'45355976281015164504'
],
'user_id' => [
'<string>'
],
'source_type' => [
'<string>'
],
'source_id' => [
'<string>'
],
'auth_type' => [
'<string>'
],
'auth_id' => [
'<string>'
],
'session_id' => [
'<string>'
],
'agent_id' => [
'<string>'
],
'transport_type' => [
'<string>'
],
'ip_address' => [
'<string>'
],
'success' => true,
'start_time' => '2025-01-01T00:00:00.000Z',
'end_time' => '2025-01-31T23:59:59.999Z'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$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://api.stackone.com/logs/platform"
payload := strings.NewReader("{\n \"page\": 1,\n \"page_size\": 25,\n \"filters\": {\n \"event_type\": [\n \"account_create\",\n \"account_delete\"\n ],\n \"event_id\": [\n \"<string>\"\n ],\n \"action\": [\n \"create\",\n \"delete\"\n ],\n \"account_secure_id\": [\n \"45355976281015164504\"\n ],\n \"user_id\": [\n \"<string>\"\n ],\n \"source_type\": [\n \"<string>\"\n ],\n \"source_id\": [\n \"<string>\"\n ],\n \"auth_type\": [\n \"<string>\"\n ],\n \"auth_id\": [\n \"<string>\"\n ],\n \"session_id\": [\n \"<string>\"\n ],\n \"agent_id\": [\n \"<string>\"\n ],\n \"transport_type\": [\n \"<string>\"\n ],\n \"ip_address\": [\n \"<string>\"\n ],\n \"success\": true,\n \"start_time\": \"2025-01-01T00:00:00.000Z\",\n \"end_time\": \"2025-01-31T23:59:59.999Z\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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://api.stackone.com/logs/platform")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"page\": 1,\n \"page_size\": 25,\n \"filters\": {\n \"event_type\": [\n \"account_create\",\n \"account_delete\"\n ],\n \"event_id\": [\n \"<string>\"\n ],\n \"action\": [\n \"create\",\n \"delete\"\n ],\n \"account_secure_id\": [\n \"45355976281015164504\"\n ],\n \"user_id\": [\n \"<string>\"\n ],\n \"source_type\": [\n \"<string>\"\n ],\n \"source_id\": [\n \"<string>\"\n ],\n \"auth_type\": [\n \"<string>\"\n ],\n \"auth_id\": [\n \"<string>\"\n ],\n \"session_id\": [\n \"<string>\"\n ],\n \"agent_id\": [\n \"<string>\"\n ],\n \"transport_type\": [\n \"<string>\"\n ],\n \"ip_address\": [\n \"<string>\"\n ],\n \"success\": true,\n \"start_time\": \"2025-01-01T00:00:00.000Z\",\n \"end_time\": \"2025-01-31T23:59:59.999Z\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.stackone.com/logs/platform")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"page\": 1,\n \"page_size\": 25,\n \"filters\": {\n \"event_type\": [\n \"account_create\",\n \"account_delete\"\n ],\n \"event_id\": [\n \"<string>\"\n ],\n \"action\": [\n \"create\",\n \"delete\"\n ],\n \"account_secure_id\": [\n \"45355976281015164504\"\n ],\n \"user_id\": [\n \"<string>\"\n ],\n \"source_type\": [\n \"<string>\"\n ],\n \"source_id\": [\n \"<string>\"\n ],\n \"auth_type\": [\n \"<string>\"\n ],\n \"auth_id\": [\n \"<string>\"\n ],\n \"session_id\": [\n \"<string>\"\n ],\n \"agent_id\": [\n \"<string>\"\n ],\n \"transport_type\": [\n \"<string>\"\n ],\n \"ip_address\": [\n \"<string>\"\n ],\n \"success\": true,\n \"start_time\": \"2025-01-01T00:00:00.000Z\",\n \"end_time\": \"2025-01-31T23:59:59.999Z\"\n }\n}"
response = http.request(request)
puts response.read_body{
"page": 1,
"page_size": 25,
"total": 100,
"data": [
{
"log_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b",
"log_type": "platform",
"event_id": "adbf752f-6457-4ddd-89b3-98ae2252b83b",
"event_type": "account_create",
"service": "unified-api",
"event_time": "2021-01-01T00:00:00Z",
"start_time": "2021-01-01T00:00:00Z",
"end_time": "2021-01-01T00:00:00Z",
"duration_ms": 356,
"project_id": "dev-project-68574",
"account_id": "45355976281015164504",
"success": true,
"status_code": 200,
"connector_key": "workday",
"connector_version": "1.0.0",
"connector_owner": "stackone",
"connector": {
"key": "workday",
"name": "Workday",
"logo_url": "https://app.stackone.com/logos/workday.png",
"categories": [
"hris"
],
"version": "1.0.0",
"owner": "stackone"
},
"mode": "production",
"http_method": "GET",
"url": "https://api.stackone.com/unified/hris/employees",
"source_type": "DASHBOARD",
"source_id": "1234567890",
"source_value": "ACCOUNT_TESTER",
"auth_type": "API_KEY",
"auth_id": "auth-123",
"user_agent": "Mozilla/5.0",
"ip_address": "192.168.1.1",
"session_id": "session-123",
"agent_id": "agent-123",
"transport_type": "HTTP",
"stream_type": "HTTP",
"is_background": false,
"origin_owner_id": "owner-123",
"origin_owner_name": "Test Owner",
"action": "create",
"sub_action": "<string>",
"user_id": "<string>",
"details": "<string>"
}
]
}{
"statusCode": 400,
"message": "Bad Request",
"timestamp": "2023-05-30T00:00:00.000Z",
"data": {
"statusCode": 400,
"message": "Bad Request",
"headers": {
"content-type": "application/json",
"x-request-id": "5678c28b211dace4e0a0f9171e6b88c5"
}
},
"provider_errors": [
{
"status": 400,
"url": "https://api.provider.com/v1/resource",
"raw": {
"message": "Invalid input parameters"
},
"headers": {
"content-type": "application/json",
"x-request-id": "5678c28b211dace4e0a0f9171e6b88c5"
}
}
]
}{
"statusCode": 401,
"message": "Unauthorized",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 403,
"message": "Forbidden resource",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 404,
"message": "Not Found",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 408,
"message": "Request timed out",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 409,
"message": "Conflict",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 422,
"message": "Unprocessable Entity",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 429,
"message": "Too many requests",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 500,
"message": "Internal server error",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 501,
"message": "Not Implemented",
"timestamp": "2023-05-30T00:00:00.000Z"
}{
"statusCode": 502,
"message": "Bad Gateway",
"timestamp": "2023-05-30T00:00:00.000Z"
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Response
The list of platform logs was retrieved.
Was this page helpful?
⌘I