Creates a signed webhook destination that receives every audit log event recorded in the workspace from this point on. The signing secret is returned once in this response and never again.
from orq_ai_sdk import Orqimport oswith Orq( api_key=os.getenv("ORQ_API_KEY"),) as orq: res = orq.audit_log_destinations.create(display_name="Security events archive", url="https://audit.example.com/events") # Handle response print(res)
import { Orq } from "@orq-ai/node";const orq = new Orq({ apiKey: process.env["ORQ_API_KEY"] ?? "",});async function run() { const result = await orq.auditLogDestinations.create({ displayName: "Security events archive", url: "https://audit.example.com/events", }); console.log(result);}run();
Deletes a destination and cancels its pending deliveries.
from orq_ai_sdk import Orqimport oswith Orq( api_key=os.getenv("ORQ_API_KEY"),) as orq: res = orq.audit_log_destinations.delete(destination_id="<id>") # Handle response print(res)
import { Orq } from "@orq-ai/node";const orq = new Orq({ apiKey: process.env["ORQ_API_KEY"] ?? "",});async function run() { const result = await orq.auditLogDestinations.delete({ destinationId: "<id>", }); console.log(result);}run();
Show Parameters
{ "destination_id": str, # required}
{ destinationId: string; // required}
Update an AuditLogDestination
Partially updates a destination. Set status to AUDIT_LOG_DESTINATION_STATUS_PAUSED to stop deliveries while retaining the backlog, and back to AUDIT_LOG_DESTINATION_STATUS_ACTIVE to drain it. The URL can only change while the destination is paused.
from orq_ai_sdk import Orqimport oswith Orq( api_key=os.getenv("ORQ_API_KEY"),) as orq: res = orq.audit_log_destinations.update(destination_id="<id>", display_name="<value>") # Handle response print(res)
import { Orq } from "@orq-ai/node";const orq = new Orq({ apiKey: process.env["ORQ_API_KEY"] ?? "",});async function run() { const result = await orq.auditLogDestinations.update({ destinationId: "<id>", updateAuditLogDestinationRequest: { displayName: "<value>", }, }); console.log(result);}run();
Queues a new delivery for every retained audit event recorded in the time window, up to 10,000 events per request. Replays keep the original event IDs and never extend event retention.
from orq_ai_sdk import Orqfrom orq_ai_sdk.utils import parse_datetimeimport oswith Orq( api_key=os.getenv("ORQ_API_KEY"),) as orq: res = orq.audit_log_destinations.replay(destination_id="<id>", from_=parse_datetime("2026-10-01T00:00:00Z"), to=parse_datetime("2026-10-15T00:00:00Z")) # Handle response print(res)
import { Orq } from "@orq-ai/node";const orq = new Orq({ apiKey: process.env["ORQ_API_KEY"] ?? "",});async function run() { const result = await orq.auditLogDestinations.replay({ destinationId: "<id>", replayAuditLogDeliveriesRequest: { from: new Date("2026-10-01T00:00:00Z"), to: new Date("2026-10-15T00:00:00Z"), }, }); console.log(result);}run();
Generates a new signing secret for the destination. Deliveries attempted after the rotation are signed with the new secret. The new secret is returned once in this response and never again.
from orq_ai_sdk import Orqimport oswith Orq( api_key=os.getenv("ORQ_API_KEY"),) as orq: res = orq.audit_log_destinations.rotate_secret(destination_id="<id>") # Handle response print(res)
import { Orq } from "@orq-ai/node";const orq = new Orq({ apiKey: process.env["ORQ_API_KEY"] ?? "",});async function run() { const result = await orq.auditLogDestinations.rotateSecret({ destinationId: "<id>", }); console.log(result);}run();
Sends a signed synthetic audit_log.test event to the destination synchronously and returns the receiver outcome. Test deliveries appear in the delivery history.
from orq_ai_sdk import Orqimport oswith Orq( api_key=os.getenv("ORQ_API_KEY"),) as orq: res = orq.audit_log_destinations.test(destination_id="<id>") # Handle response print(res)
import { Orq } from "@orq-ai/node";const orq = new Orq({ apiKey: process.env["ORQ_API_KEY"] ?? "",});async function run() { const result = await orq.auditLogDestinations.test({ destinationId: "<id>", }); console.log(result);}run();