docs
  1. Resources
  2. Audit Logs
  3. Create Audit Logs

Create Audit logs

1.0
OpenAPI 3.0.0

This is the specification of the SCAYLE Panel Add-on API.

For more information about how to interact with the Add-on API, you can read the respective Developer Guide. Authentication is done via X-Add-On-Name and the X-Access-Token HTTP Header.

The API enforces a rate limit of 100 requests per minute.

The API Token can be generated in the configured SCAYLE Panel Add-on.

Server:https://{tenant-space}.panel.scayle.cloud
Client Libraries

Audit Logs

​

Create Audit logs

​

Add audit-log entries.

For more read the Audit Logs Documentation

Headers

  • The X-Access-Token is used to authenticate the API-request.

  • The Add-on name, which uniquely identifies your Add-on within the system

  • The Accept-Language request HTTP header indicates the natural language and locale that the client prefers.

Body·

Responses

  • Successful response

  • application/json
Request Example for post/api/v1/external/add-ons/audit-logs
<?php

$url = 'https://{{tenant-space}}.panel.scayle.cloud/api/v1/external/add-ons/audit-logs';

$headers = [
  'Content-Type: application/json',
  'Accept: application/json',
  'X-Add-On-Name: {{YOUR-ADD-ON-IDENTIFIER}}',
  'X-Access-Token: {{YOUR_ACCESS_TOKEN}}',
];

$data = [
  'key' => 'product.create',
  'data' => [
    'id' => '323492',
    'name' => 'Blue Shirt',
    'price' => '7723',
    'color' => 'red',
    'created_at' => '2023-05-04T14:14:23.000000Z',
    'updated_at' => '2023-05-04T14:14:23.000000Z',
  ],
  'userId' => '1337',
  'modelId' => '323492',
  'modelPath' => 'App\Models\Product',
  'action' => 'create',
  'request' => [
    'accept-language' => 'en-US,en;q=0.9,sl;q=0.8',
    'accept-encoding' => 'gzip, deflate, br',
    'referer' => 'https://mydomain.com/',
    'origin' => 'https://mydomain.com',
    'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36',
    'accept' => 'application/json, text/plain, */*',
    'content-type' => 'application/json;charset=UTF-8',
    'host' => 'mydomain.com',
    'proxy_ip' => '111.XXX.XXX.1',
    'real_ip' => '193.XXX.XXX.1',
    'url' => 'https://mydomain.com/api/frontend/product/323492',
    'route' => 'product.create',
  ],
];

$payload = json_encode($data);

$curl = curl_init();
curl_setopt_array($curl, [
  CURLOPT_URL => $url,
  CURLOPT_POST => true,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => $headers,
  CURLOPT_POSTFIELDS => $payload,
]);

$response = curl_exec($curl);

if (curl_errno($curl) || $response === false) {
  echo "cURL Error: " . curl_error($curl);
} else {
  echo $response;
}

curl_close($curl);

No Body

Models

​
​
​

Last updated: September 14, 2026