Skip to Content
Docs
API referenceManagement API

Audit logs

List audit log entries

GET
/logs/audit

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.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

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?string

Actor type

actor_id?string

Actor id

actor_instance?string

The agent instance that acted (an agent actor's actor.instance)

on_behalf_of?string

A delegator (usr_…): entries an actor wrote for them with a delegated token

credential_id?string

Credential id, such as a secret key's key_…

target_id?string

Id of any target

organization_id?string

An organization's entries (org_…)

ip_address?string

Client IP address

request_id?string

Request id (req_…)

subject?string

An entity in any role: the actor, the credential or a target

from?string

RFC 3339: occurred at or after

to?string

RFC 3339: occurred before

after?string

Cursor: entries committed after it, oldest first

before?string

Cursor: older entries, newest first

limit?integer

1–100, default 50

Response Body

OK

application/json
  1. response
data?array<>
next_cursor?string
object?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/logs/audit'
Example Response
{  "data": [    {      "property1": null,      "property2": null    }  ],  "next_cursor": "string",  "object": "string"}

Get an audit log entry

GET
/logs/audit/{audit_log_entry_id}

One audit_log_entry (pontive-spec 43 §4.1).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

audit_log_entry_id*string

Entry id (ale_…)

Response Body

OK

application/json
  1. response
action?string
actor?
category?string
changes?
context?
credential?
details?
id?string
object?string
occurred_at?string
on_behalf_of?array<>
outcome?
schema_version?integer
scope?
severity?string
targets?array<>
Example Request
curl -X GET 'https://api.us.pontive.com/v1/logs/audit/string'
Example Response
{  "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"    }  ]}

List request log entries

GET
/logs/requests

Every management-API call made against the instance, reads included, newest first. Needs sys:audit:read on the instance.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

actor_type?string

Actor type, such as agent

actor_id?string

Actor id

actor_instance?string

The agent instance that made the request (an agent actor's actor.instance)

on_behalf_of?string

A delegator (usr_…): requests an actor made for them with a delegated token

credential_id?string

Credential 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?string

Client IP address

route?string

Route pattern, as recorded (/v1/users/{identifier})

from?string

RFC 3339: occurred at or after

to?string

RFC 3339: occurred before

after?string

Cursor: entries committed after it, oldest first

before?string

Cursor: older entries, newest first

limit?integer

1–100, default 50

Response Body

OK

application/json
  1. response
data?array<>
next_cursor?string
object?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/logs/requests'
Example Response
{  "data": [    {      "property1": null,      "property2": null    }  ],  "next_cursor": "string",  "object": "string"}

Get a request log entry

GET
/logs/requests/{request_id}

One request_log_entry (pontive-spec 43 §4.6), by the request id returned in X-Request-ID.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

request_id*string

Request id (req_…)

Response Body

OK

application/json
  1. response
actor?
context?
credential?
duration_ms?integer
error_code?string
id?string
method?string
object?string
occurred_at?string
on_behalf_of?array<>
path?string
route?string
scope?
status?integer
Example Request
curl -X GET 'https://api.us.pontive.com/v1/logs/requests/string'
Example Response
{  "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}
GET
/organizations/{organization}/agent-activity

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.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Query Parameters

action?array<string>

Action name, or a prefix such as pontive.member.* (repeatable)

actor_id?string

One agent (agt_…)

actor_instance?string

The agent instance that acted (an agent actor's actor.instance)

on_behalf_of?string

A member (usr_…): what agents did for them with a delegated token

from?string

RFC 3339: occurred at or after

to?string

RFC 3339: occurred before

after?string

Cursor: entries committed after it, oldest first

before?string

Cursor: older entries, newest first

limit?integer

1–100, default 50

Response Body

OK

application/json
  1. response
data?array<>
next_cursor?string
object?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/agent-activity'
Example Response
{  "data": [    {      "property1": null,      "property2": null    }  ],  "next_cursor": "string",  "object": "string"}
GET
/organizations/{organization}/audit-logs

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.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

organization*string

The organization's id, or its slug

Query Parameters

action?array<string>

Action name, or a prefix such as pontive.member.* (repeatable)

severity?array<string>

info, warning or high (repeatable)

actor_id?string

Actor id

actor_instance?string

The agent instance that acted (an agent actor's actor.instance)

on_behalf_of?string

A delegator (usr_…): entries an actor wrote for them with a delegated token

target_id?string

Id of any target

from?string

RFC 3339: occurred at or after

to?string

RFC 3339: occurred before

after?string

Cursor: entries committed after it, oldest first

before?string

Cursor: older entries, newest first

limit?integer

1–100, default 50

Response Body

OK

application/json
  1. response
data?array<>
next_cursor?string
object?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/organizations/string/audit-logs'
Example Response
{  "data": [    {      "property1": null,      "property2": null    }  ],  "next_cursor": "string",  "object": "string"}