Skip to Content

ListOrganizationAuditEvents

GET
/auth/v1/organizations/{org_id}/audit-events

Authorization

headerX-API-Key<token>

API key for protected endpoints, supplied in the X-API-Key header.

Path Parameters

org_id*org_id

Query Parameters

page_size?page_size
Formatint32
page_token?page_token

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/auth.v1.ListOrganizationAuditEventsResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "events": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/auth.v1.OrganizationAuditEvent",
          "$ref-value": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "title": "id",
                "format": "int64"
              },
              "org_id": {
                "type": "string",
                "title": "org_id"
              },
              "occurred_at": {
                "title": "occurred_at",
                "$ref": "#/components/schemas/google.protobuf.Timestamp",
                "$ref-value": {
                  "type": "string",
                  "examples": [
                    "2023-01-15T01:30:15.01Z",
                    "2024-12-25T12:00:00Z"
                  ],
                  "format": "date-time",
                  "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
                }
              },
              "actor_type": {
                "type": "string",
                "title": "actor_type"
              },
              "actor_id": {
                "type": "string",
                "title": "actor_id"
              },
              "action": {
                "type": "string",
                "title": "action"
              },
              "target_type": {
                "type": "string",
                "title": "target_type"
              },
              "target_id": {
                "type": "string",
                "title": "target_id"
              },
              "metadata": {
                "title": "metadata",
                "$ref": "#/components/schemas/google.protobuf.Struct",
                "$ref-value": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/google.protobuf.Value",
                    "$ref-value": {
                      "oneOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "object",
                          "additionalProperties": true
                        }
                      ],
                      "description": "Any JSON value: `null`, number, string, boolean, array, or object."
                    }
                  },
                  "description": "A JSON object whose property values may be any JSON value."
                }
              }
            },
            "title": "OrganizationAuditEvent",
            "additionalProperties": false
          }
        },
        "title": "events"
      },
      "next_page_token": {
        "type": "string",
        "title": "next_page_token"
      }
    },
    "title": "ListOrganizationAuditEventsResponse",
    "additionalProperties": false
  }
}
default
curl -X GET 'https://api.rixl.com/auth/v1/organizations/string/audit-events'

Success

application/json

{
  "$ref": "#/components/schemas/auth.v1.ListOrganizationAuditEventsResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "events": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/auth.v1.OrganizationAuditEvent",
          "$ref-value": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "title": "id",
                "format": "int64"
              },
              "org_id": {
                "type": "string",
                "title": "org_id"
              },
              "occurred_at": {
                "title": "occurred_at",
                "$ref": "#/components/schemas/google.protobuf.Timestamp",
                "$ref-value": {
                  "type": "string",
                  "examples": [
                    "2023-01-15T01:30:15.01Z",
                    "2024-12-25T12:00:00Z"
                  ],
                  "format": "date-time",
                  "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
                }
              },
              "actor_type": {
                "type": "string",
                "title": "actor_type"
              },
              "actor_id": {
                "type": "string",
                "title": "actor_id"
              },
              "action": {
                "type": "string",
                "title": "action"
              },
              "target_type": {
                "type": "string",
                "title": "target_type"
              },
              "target_id": {
                "type": "string",
                "title": "target_id"
              },
              "metadata": {
                "title": "metadata",
                "$ref": "#/components/schemas/google.protobuf.Struct",
                "$ref-value": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/google.protobuf.Value",
                    "$ref-value": {
                      "oneOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "object",
                          "additionalProperties": true
                        }
                      ],
                      "description": "Any JSON value: `null`, number, string, boolean, array, or object."
                    }
                  },
                  "description": "A JSON object whose property values may be any JSON value."
                }
              }
            },
            "title": "OrganizationAuditEvent",
            "additionalProperties": false
          }
        },
        "title": "events"
      },
      "next_page_token": {
        "type": "string",
        "title": "next_page_token"
      }
    },
    "title": "ListOrganizationAuditEventsResponse",
    "additionalProperties": false
  }
}