Returns a list of activity logs of a user on the platform.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| user_id | string | optional | Pass the unique ID of a user. |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| page | string | optional | Pass the page number to retrieve logs. |
| page_size | string | optional | Pass the number of logs to retrieve on each page. |
| sort | string | optional | Pass the parameter to sort logs. By default logs are returned in descending order (latest logs are returned first) based on the created time. |
| timestamp_from | string | optional | Pass the created time in epoch format from which you want to retrieve logs. |
| timestamp_to | string | optional | Pass the created time in epoch format until which you want to retrieve logs. |
| response | string | optional | Pass the HTTP status code to filter logs. |
| method | string | optional | Pass the HTTP request method to filter logs. |
| q | string | optional | Pass the query text to search logs. |
Run it
Use the Request parameters panel to enter path IDs, query values, JSON body, and credentials. Then run any snippet below — all languages use the same values. Base URL: https://cs-testv2.cyware.com/ctixapi (change in API Settings).
Playground
Request parameters
Edit values here before running any snippet below (cURL, JavaScript, or Python). Code blocks are reference only — your inputs above are what gets sent.
Open API (HMAC signature) · Get credentials from Cyware Admin → Open API → Generate Credentials.
Signature and Expires are generated when you run a request. Access ID and Secret Key stay in memory for this tab only.
Credentials from Authentication auto-fill here for this product. If fields are empty after connecting, refresh this page or open the product docs again.
curl --request GET \
--url "https://cs-testv2.cyware.com/ctixapi/rest-auth/logs/user/854bb75f-8e23-4f17-9d52-fd6ef6a4c863/?page=1&page_size=10&sort=-timestamp×tamp_from=1704067200×tamp_to=1704758399&response=201&method=post&q=sample%20text&AccessID=%3Cyour%20access%20id%3E&Signature=%3Cyour%20signature%3E&Expires=%3Cyour%20expires%3E"View-only example — running live API calls requires a role with snippet testing access.
const url = "https://cs-testv2.cyware.com/ctixapi/rest-auth/logs/user/854bb75f-8e23-4f17-9d52-fd6ef6a4c863/?page=1&page_size=10&sort=-timestamp×tamp_from=1704067200×tamp_to=1704758399&response=201&method=post&q=sample%20text&AccessID=%3Cyour%20access%20id%3E&Signature=%3Cyour%20signature%3E&Expires=%3Cyour%20expires%3E";
const response = await fetch(url, {
method: "GET",
});
const text = await response.text();
let data;
try { data = JSON.parse(text); } catch { data = text; }
console.log(response.status, data);View-only example — running live API calls requires a role with snippet testing access.
import requests
url = "https://cs-testv2.cyware.com/ctixapi/rest-auth/logs/user/854bb75f-8e23-4f17-9d52-fd6ef6a4c863/"
params = {
"page": "1",
"page_size": "10",
"sort": "-timestamp",
"timestamp_from": "1704067200",
"timestamp_to": "1704758399",
"response": "201",
"method": "post",
"q": "sample text",
"AccessID": "<your access id>",
"Signature": "<your signature>",
"Expires": "<your expires>"
}
headers = {}
response = requests.request("GET", url, params=params, headers=headers)
print(response.status_code)
print(response.text)View-only example — running live API calls requires a role with snippet testing access.
{
"next": "logs/user/854bb75f-8e23-4f17-9d52-fd6ef6a4c863/?page=2&page_size=10&sort=-timestamp",
"previous": {},
"page_size": 10,
"total": 10627,
"results": [
{}
]
}View-only example — running live API calls requires a role with snippet testing access.