Audit logs
The instance's audit log, newest first. Pass next_cursor as before to page back, or as after to poll for what committed since, oldest first. Needs sys:audit:read on the instance, or on the organization named by organization_id.
x-pontive-instance-id<token>Instance ID for the request
action?array<string>Action name, or a prefix such as pontive.secret_key.* (repeatable)
category?array<string>Category (repeatable)
severity?array<string>info, warning or high (repeatable)
result?array<string>success, failure or denied (repeatable)
actor_type?stringActor type
actor_id?stringActor id
actor_instance?stringThe agent instance that acted (an agent actor's actor.instance)
on_behalf_of?stringA delegator (usr_…): entries an actor wrote for them with a delegated token
credential_id?stringCredential id, such as a secret key's key_…
target_id?stringId of any target
organization_id?stringAn organization's entries (org_…)
ip_address?stringClient IP address
request_id?stringRequest id (req_…)
subject?stringAn entity in any role: the actor, the credential or a target
from?stringRFC 3339: occurred at or after
to?stringRFC 3339: occurred before
after?stringCursor: entries committed after it, oldest first
before?stringCursor: older entries, newest first
limit?integer1–100, default 50
OK
application/json- response
data?array<>next_cursor?stringobject?stringcurl -X GET 'https://api.us.pontive.com/v1/logs/audit'{ "data": [ { "property1": null, "property2": null } ], "next_cursor": "string", "object": "string"}One audit_log_entry (pontive-spec 43 §4.1).
x-pontive-instance-id<token>Instance ID for the request
audit_log_entry_id*stringEntry id (ale_…)
OK
application/json- response
action?stringactor?category?stringchanges?context?credential?details?id?stringobject?stringoccurred_at?stringon_behalf_of?array<>outcome?schema_version?integerscope?severity?stringtargets?array<>curl -X GET 'https://api.us.pontive.com/v1/logs/audit/string'{ "action": "string", "actor": { "access": { "expires_at": "string", "reason": "string", "session_id": "string" }, "email": "string", "id": "string", "instance": "string", "name": "string", "type": "string" }, "category": "string", "changes": { "property1": null, "property2": null }, "context": { "asn": { "name": "string", "number": 0 }, "geo": { "city": "string", "country": "string", "region": "string" }, "ip_address": "string", "origin": "string", "request_id": "string", "trace_id": "string", "user_agent": "string" }, "credential": { "app_id": "string", "id": "string", "session_id": "string", "type": "string", "value": "string" }, "details": { "property1": null, "property2": null }, "id": "string", "object": "string", "occurred_at": "string", "on_behalf_of": [ { "access": { "expires_at": "string", "reason": "string", "session_id": "string" }, "email": "string", "id": "string", "instance": "string", "name": "string", "type": "string" } ], "outcome": { "reason": "string", "result": "string" }, "schema_version": 0, "scope": { "instance_id": "string", "organization_id": "string", "project_id": "string", "workspace_id": "string" }, "severity": "string", "targets": [ { "id": "string", "name": "string", "type": "string" } ]}Every management-API call made against the instance, reads included, newest first. Needs sys:audit:read on the instance.
x-pontive-instance-id<token>Instance ID for the request
actor_type?stringActor type, such as agent
actor_id?stringActor id
actor_instance?stringThe agent instance that made the request (an agent actor's actor.instance)
on_behalf_of?stringA delegator (usr_…): requests an actor made for them with a delegated token
credential_id?stringCredential id, such as a secret key's key_…
method?array<string>GET, POST, PUT, PATCH or DELETE (repeatable)
status_class?array<string>2xx, 3xx, 4xx or 5xx (repeatable)
ip_address?stringClient IP address
route?stringRoute pattern, as recorded (/v1/users/{identifier})
from?stringRFC 3339: occurred at or after
to?stringRFC 3339: occurred before
after?stringCursor: entries committed after it, oldest first
before?stringCursor: older entries, newest first
limit?integer1–100, default 50
OK
application/json- response
data?array<>next_cursor?stringobject?stringcurl -X GET 'https://api.us.pontive.com/v1/logs/requests'{ "data": [ { "property1": null, "property2": null } ], "next_cursor": "string", "object": "string"}One request_log_entry (pontive-spec 43 §4.6), by the request id returned in X-Request-ID.
x-pontive-instance-id<token>Instance ID for the request
request_id*stringRequest id (req_…)
OK
application/json- response
actor?context?credential?duration_ms?integererror_code?stringid?stringmethod?stringobject?stringoccurred_at?stringon_behalf_of?array<>path?stringroute?stringscope?status?integercurl -X GET 'https://api.us.pontive.com/v1/logs/requests/string'{ "actor": { "access": { "expires_at": "string", "reason": "string", "session_id": "string" }, "email": "string", "id": "string", "instance": "string", "name": "string", "type": "string" }, "context": { "asn": { "name": "string", "number": 0 }, "geo": { "city": "string", "country": "string", "region": "string" }, "ip_address": "string", "origin": "string", "request_id": "string", "trace_id": "string", "user_agent": "string" }, "credential": { "app_id": "string", "id": "string", "session_id": "string", "type": "string", "value": "string" }, "duration_ms": 0, "error_code": "string", "id": "string", "method": "string", "object": "string", "occurred_at": "string", "on_behalf_of": [ { "access": { "expires_at": "string", "reason": "string", "session_id": "string" }, "email": "string", "id": "string", "instance": "string", "name": "string", "type": "string" } ], "path": "string", "route": "string", "scope": { "instance_id": "string", "organization_id": "string", "project_id": "string", "workspace_id": "string" }, "status": 0}What agents did in the organization (pontive-spec 20 G2, G3): its audit entries whose actor is an agent, on its own installation or acting for a member with a delegated token (on_behalf_of names the member), newest first. Filter by actor_id (an agt_…) and on_behalf_of (a usr_…). The view an organization's owners and admins read from the embedded agent-management element, with pontive:org:agent:read; audit-svc decides it with sys:audit:read on the organization, which they hold.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
action?array<string>Action name, or a prefix such as pontive.member.* (repeatable)
actor_id?stringOne agent (agt_…)
actor_instance?stringThe agent instance that acted (an agent actor's actor.instance)
on_behalf_of?stringA member (usr_…): what agents did for them with a delegated token
from?stringRFC 3339: occurred at or after
to?stringRFC 3339: occurred before
after?stringCursor: entries committed after it, oldest first
before?stringCursor: older entries, newest first
limit?integer1–100, default 50
OK
application/json- response
data?array<>next_cursor?stringobject?stringcurl -X GET 'https://api.us.pontive.com/v1/organizations/string/agent-activity'{ "data": [ { "property1": null, "property2": null } ], "next_cursor": "string", "object": "string"}The entries that belong to one organization: the view its admins read with sys:audit:read on the organization. Same filters and cursors as GET /audit-logs.
x-pontive-instance-id<token>Instance ID for the request
organization*stringThe organization's id, or its slug
action?array<string>Action name, or a prefix such as pontive.member.* (repeatable)
severity?array<string>info, warning or high (repeatable)
actor_id?stringActor id
actor_instance?stringThe agent instance that acted (an agent actor's actor.instance)
on_behalf_of?stringA delegator (usr_…): entries an actor wrote for them with a delegated token
target_id?stringId of any target
from?stringRFC 3339: occurred at or after
to?stringRFC 3339: occurred before
after?stringCursor: entries committed after it, oldest first
before?stringCursor: older entries, newest first
limit?integer1–100, default 50
OK
application/json- response
data?array<>next_cursor?stringobject?stringcurl -X GET 'https://api.us.pontive.com/v1/organizations/string/audit-logs'{ "data": [ { "property1": null, "property2": null } ], "next_cursor": "string", "object": "string"}