Log an action
curl --request POST \
--url https://api.katilyst.com/v1/logged-actions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"userEmail": "fake@example.com",
"availableActionId": "1111-111-11111-example",
"dateTime": "2025-03-17T17:45:10Z",
"creator": "Account API",
"details": "Created by Account API."
}
'import requests
url = "https://api.katilyst.com/v1/logged-actions"
payload = {
"userEmail": "fake@example.com",
"availableActionId": "1111-111-11111-example",
"dateTime": "2025-03-17T17:45:10Z",
"creator": "Account API",
"details": "Created by Account API."
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
userEmail: 'fake@example.com',
availableActionId: '1111-111-11111-example',
dateTime: '2025-03-17T17:45:10Z',
creator: 'Account API',
details: 'Created by Account API.'
})
};
fetch('https://api.katilyst.com/v1/logged-actions', 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.katilyst.com/v1/logged-actions",
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([
'userEmail' => 'fake@example.com',
'availableActionId' => '1111-111-11111-example',
'dateTime' => '2025-03-17T17:45:10Z',
'creator' => 'Account API',
'details' => 'Created by Account API.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.katilyst.com/v1/logged-actions"
payload := strings.NewReader("{\n \"userEmail\": \"fake@example.com\",\n \"availableActionId\": \"1111-111-11111-example\",\n \"dateTime\": \"2025-03-17T17:45:10Z\",\n \"creator\": \"Account API\",\n \"details\": \"Created by Account API.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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://api.katilyst.com/v1/logged-actions")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"userEmail\": \"fake@example.com\",\n \"availableActionId\": \"1111-111-11111-example\",\n \"dateTime\": \"2025-03-17T17:45:10Z\",\n \"creator\": \"Account API\",\n \"details\": \"Created by Account API.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.katilyst.com/v1/logged-actions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userEmail\": \"fake@example.com\",\n \"availableActionId\": \"1111-111-11111-example\",\n \"dateTime\": \"2025-03-17T17:45:10Z\",\n \"creator\": \"Account API\",\n \"details\": \"Created by Account API.\"\n}"
response = http.request(request)
puts response.read_bodyLogging Work
Log an action
POST
/
v1
/
logged-actions
Log an action
curl --request POST \
--url https://api.katilyst.com/v1/logged-actions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"userEmail": "fake@example.com",
"availableActionId": "1111-111-11111-example",
"dateTime": "2025-03-17T17:45:10Z",
"creator": "Account API",
"details": "Created by Account API."
}
'import requests
url = "https://api.katilyst.com/v1/logged-actions"
payload = {
"userEmail": "fake@example.com",
"availableActionId": "1111-111-11111-example",
"dateTime": "2025-03-17T17:45:10Z",
"creator": "Account API",
"details": "Created by Account API."
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
userEmail: 'fake@example.com',
availableActionId: '1111-111-11111-example',
dateTime: '2025-03-17T17:45:10Z',
creator: 'Account API',
details: 'Created by Account API.'
})
};
fetch('https://api.katilyst.com/v1/logged-actions', 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.katilyst.com/v1/logged-actions",
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([
'userEmail' => 'fake@example.com',
'availableActionId' => '1111-111-11111-example',
'dateTime' => '2025-03-17T17:45:10Z',
'creator' => 'Account API',
'details' => 'Created by Account API.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.katilyst.com/v1/logged-actions"
payload := strings.NewReader("{\n \"userEmail\": \"fake@example.com\",\n \"availableActionId\": \"1111-111-11111-example\",\n \"dateTime\": \"2025-03-17T17:45:10Z\",\n \"creator\": \"Account API\",\n \"details\": \"Created by Account API.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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://api.katilyst.com/v1/logged-actions")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"userEmail\": \"fake@example.com\",\n \"availableActionId\": \"1111-111-11111-example\",\n \"dateTime\": \"2025-03-17T17:45:10Z\",\n \"creator\": \"Account API\",\n \"details\": \"Created by Account API.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.katilyst.com/v1/logged-actions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"userEmail\": \"fake@example.com\",\n \"availableActionId\": \"1111-111-11111-example\",\n \"dateTime\": \"2025-03-17T17:45:10Z\",\n \"creator\": \"Account API\",\n \"details\": \"Created by Account API.\"\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Your full Authorization header value, including the prefix: API-Key katilyst_xxxx_yourkey
Body
application/json
User email.
Example:
"fake@example.com"
Unique id of the available action to log.
Example:
"1111-111-11111-example"
Optional Property - ISO Date String.
Example:
"2025-03-17T17:45:10Z"
Optional Property - String value identifying 'creator' of mutated action state.
Example:
"Account API"
Optional Property - Additional details.
Example:
"Created by Account API."
