Method Security Audit API

The audit API from Method Security — 1 operation(s) for audit.

Operations 1

POST /method-api-gateway/api/v1/audit/getAuditEvents Get Audit Events #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/method-security:method-security-audit-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

method-security-audit-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Method Security Audit API
  version: 1.0.0
  description: 'Operations tagged audit across 2 of this provider''s published API definitions: method-security-openapi-original.yml, method-security-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: Audit
paths:
  /method-api-gateway/api/v1/audit/getAuditEvents:
    post:
      operationId: getAuditEvents
      summary: Get Audit Events
      description: Retrieves all audit events in the specified time range
      tags:
      - Audit
      parameters:
      - name: pageSize
        in: query
        required: false
        schema:
          type: integer
      - name: token
        in: query
        required: false
        schema:
          type: string
      - name: Authorization
        in: header
        description: Bearer authentication
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Response with status 200
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_v1_audit_AuditEventsResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/type_v1_audit_GetAuditEventsRequest'
components:
  schemas:
    type_v1_audit_Actor:
      oneOf:
      - type: object
        properties:
          type:
            type: string
            enum:
            - user
            description: 'Discriminator value: user'
          id:
            $ref: '#/components/schemas/type_v1_audit_UserId'
          name:
            type: string
          email:
            type: string
          externalId:
            $ref: '#/components/schemas/type_v1_audit_ExternalUserId'
        required:
        - type
        - id
        - name
      - type: object
        properties:
          type:
            type: string
            enum:
            - serviceAccount
            description: 'Discriminator value: serviceAccount'
          id:
            $ref: '#/components/schemas/type_v1_audit_ServiceAccountId'
        required:
        - type
        - id
      discriminator:
        propertyName: type
      title: Actor
    type_v1_audit_ExternalUserId:
      type: string
      description: The identifier of a user in Method according to an external auth provider
      title: ExternalUserId
    type_v1_audit_Resource:
      oneOf:
      - type: object
        properties:
          type:
            type: string
            enum:
            - userAccount
            description: 'Discriminator value: userAccount'
          user:
            $ref: '#/components/schemas/type_v1_audit_User'
        required:
        - type
        - user
      - type: object
        properties:
          type:
            type: string
            enum:
            - group
            description: 'Discriminator value: group'
          id:
            $ref: '#/components/schemas/type_v1_audit_GroupId'
          name:
            type: string
        required:
        - type
        - id
        - name
      - type: object
        properties:
          type:
            type: string
            enum:
            - issue
            description: 'Discriminator value: issue'
          id:
            $ref: '#/components/schemas/type_v1_issues_IssueId'
        required:
        - type
        - id
      - type: object
        properties:
          type:
            type: string
            enum:
            - ontologyObject
            description: 'Discriminator value: ontologyObject'
          id:
            $ref: '#/components/schemas/type_v1_objects_ObjectId'
        required:
        - type
        - id
      - type: object
        properties:
          type:
            type: string
            enum:
            - platformResource
            description: 'Discriminator value: platformResource'
          kind:
            $ref: '#/components/schemas/type_v1_audit_ResourceKind'
          id:
            $ref: '#/components/schemas/type_v1_audit_PlatformResourceId'
        required:
        - type
        - kind
        - id
      discriminator:
        propertyName: type
      title: Resource
    type_v1_audit_PlatformActionOperation:
      type: string
      enum:
      - CREATE
      - UPDATE
      - DELETE
      - LOAD
      - QUERY
      - DECRYPT
      title: PlatformActionOperation
    type_v1_audit_AuditEventsResponse:
      type: object
      properties:
        auditEvents:
          type: array
          items:
            $ref: '#/components/schemas/type_v1_audit_AuditEvent'
        pagingToken:
          type: string
      required:
      - auditEvents
      title: AuditEventsResponse
    type_v1_audit_AuditEventStatus:
      oneOf:
      - type: object
        properties:
          type:
            type: string
            enum:
            - success
            description: 'Discriminator value: success'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - failure
            description: 'Discriminator value: failure'
          message:
            type: string
        required:
        - type
      discriminator:
        propertyName: type
      title: AuditEventStatus
    type_v1_audit_Action:
      oneOf:
      - type: object
        properties:
          type:
            type: string
            enum:
            - userLogin
            description: 'Discriminator value: userLogin'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - userLogout
            description: 'Discriminator value: userLogout'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - userAccountCreation
            description: 'Discriminator value: userAccountCreation'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - userAccountModification
            description: 'Discriminator value: userAccountModification'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - userAccountDeletion
            description: 'Discriminator value: userAccountDeletion'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - auditLogAccess
            description: 'Discriminator value: auditLogAccess'
          pageSize:
            type: integer
          since:
            type: string
            format: date-time
          until:
            type: string
            format: date-time
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - load
            description: 'Discriminator value: load'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - platformAction
            description: 'Discriminator value: platformAction'
          operation:
            $ref: '#/components/schemas/type_v1_audit_PlatformActionOperation'
          resourceKind:
            $ref: '#/components/schemas/type_v1_audit_ResourceKind'
        required:
        - type
        - operation
      discriminator:
        propertyName: type
      title: Action
    type_v1_audit_Context:
      type: object
      properties:
        sourceIp:
          $ref: '#/components/schemas/type_v1_audit_IpAddress'
        userAgent:
          $ref: '#/components/schemas/type_v1_audit_UserAgent'
      title: Context
    type_v1_audit_UserId:
      type: string
      description: The unique identifier of a human user in Method
      title: UserId
    type_v1_audit_UserAgent:
      type: string
      description: The user agent for a request made to the Method platform
      title: UserAgent
    type_v1_audit_PlatformResourceId:
      type: string
      description: The unique identifier for a Method platform resource.
      title: PlatformResourceId
    type_v1_issues_IssueId:
      type: string
      description: The unique identifier for an issue in Method
      title: IssueId
    type_v1_audit_ServiceAccountId:
      type: string
      description: The unique identifier of a service account in Method
      title: ServiceAccountId
    type_v1_audit_TenantId:
      type: string
      description: The unique identifier of the tenant for which the audit event was emitted
      title: TenantId
    type_v1_audit_User:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/type_v1_audit_UserId'
        name:
          type: string
        email:
          type: string
        externalId:
          $ref: '#/components/schemas/type_v1_audit_ExternalUserId'
      required:
      - id
      - name
      title: User
    type_v1_audit_ResourceKind:
      type: string
      enum:
      - AGENT
      - ENVIRONMENT
      - GROUP
      - ISSUE
      - ISSUE_DEFINITION
      - JACKAL
      - MODEL
      - MODEL_PROVIDER
      - OAUTH_CLIENT
      - OBJECT_SET
      - ONTOLOGY_OBJECT
      - OPERATOR_SESSION
      - REPORT
      - SENSITIVE_VALUE
      - SKILL
      - TASK
      - TASK_RUN
      - TOKEN
      - TOOL
      - USER_ACCOUNT
      title: ResourceKind
    type_v1_audit_GetAuditEventsRequest:
      type: object
      properties:
        startTime:
          type: string
          format: date-time
        endTime:
          type: string
          format: date-time
      required:
      - startTime
      - endTime
      title: GetAuditEventsRequest
    type_v1_objects_ObjectId:
      type: string
      description: The unique identifier for an object in Method
      title: ObjectId
    type_v1_audit_IpAddress:
      type: string
      description: The source IP for a request made to the Method platform
      title: IpAddress
    type_v1_audit_GroupId:
      type: string
      description: The unique identifier of a user group in Method
      title: GroupId
    type_v1_audit_AuditEvent:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/type_v1_audit_AuditEventId'
        tenantId:
          $ref: '#/components/schemas/type_v1_audit_TenantId'
        timestamp:
          type: string
          format: date-time
        actor:
          $ref: '#/components/schemas/type_v1_audit_Actor'
        action:
          $ref: '#/components/schemas/type_v1_audit_Action'
        resource:
          $ref: '#/components/schemas/type_v1_audit_Resource'
        context:
          $ref: '#/components/schemas/type_v1_audit_Context'
        status:
          $ref: '#/components/schemas/type_v1_audit_AuditEventStatus'
      required:
      - id
      - tenantId
      - timestamp
      - actor
      - action
      - context
      - status
      title: AuditEvent
    type_v1_audit_AuditEventId:
      type: string
      description: The unique identifier for an audit event in Method
      title: AuditEventId
    v1_audit_User:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/v1_audit_UserId'
        name:
          type: string
        email:
          type: string
        externalId:
          $ref: '#/components/schemas/v1_audit_ExternalUserId'
      required:
      - id
      - name
      title: User
    v1_audit_UserId:
      type: string
      description: The unique identifier of a human user in Method
      title: UserId
    v1_audit_AuditEventStatus:
      oneOf:
      - type: object
        properties:
          type:
            type: string
            enum:
            - success
            description: 'Discriminator value: success'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - failure
            description: 'Discriminator value: failure'
          message:
            type: string
        required:
        - type
      discriminator:
        propertyName: type
      title: AuditEventStatus
    v1_objects_ObjectId:
      type: string
      description: The unique identifier for an object in Method
      title: ObjectId
    v1_audit_PlatformResourceId:
      type: string
      description: The unique identifier for a Method platform resource.
      title: PlatformResourceId
    v1_audit_ClientId:
      type: string
      description: The OAuth client identifier for an OAuth application
      title: ClientId
    v1_audit_Action:
      oneOf:
      - type: object
        properties:
          type:
            type: string
            enum:
            - userLogin
            description: 'Discriminator value: userLogin'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - userLogout
            description: 'Discriminator value: userLogout'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - userAccountCreation
            description: 'Discriminator value: userAccountCreation'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - userAccountModification
            description: 'Discriminator value: userAccountModification'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - userAccountDeletion
            description: 'Discriminator value: userAccountDeletion'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - auditLogAccess
            description: 'Discriminator value: auditLogAccess'
          pageSize:
            type: integer
          since:
            type: string
            format: date-time
          until:
            type: string
            format: date-time
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - groupMembershipAddition
            description: 'Discriminator value: groupMembershipAddition'
          userIds:
            type: array
            items:
              $ref: '#/components/schemas/v1_audit_UserId'
        required:
        - type
        - userIds
      - type: object
        properties:
          type:
            type: string
            enum:
            - groupMembershipRemoval
            description: 'Discriminator value: groupMembershipRemoval'
          userIds:
            type: array
            items:
              $ref: '#/components/schemas/v1_audit_UserId'
        required:
        - type
        - userIds
      - type: object
        properties:
          type:
            type: string
            enum:
            - scimIntegrationCreation
            description: 'Discriminator value: scimIntegrationCreation'
          name:
            type: string
          identityProviderType:
            type: string
        required:
        - type
        - name
        - identityProviderType
      - type: object
        properties:
          type:
            type: string
            enum:
            - updateNoStrikeList
            description: 'Discriminator value: updateNoStrikeList'
          noStrikeListObjectSetId:
            $ref: '#/components/schemas/v1_objects_ObjectSetId'
        required:
        - type
        - noStrikeListObjectSetId
      - type: object
        properties:
          type:
            type: string
            enum:
            - load
            description: 'Discriminator value: load'
        required:
        - type
      - type: object
        properties:
          type:
            type: string
            enum:
            - platformAction
            description: 'Discriminator value: platformAction'
          operation:
            $ref: '#/components/schemas/v1_audit_PlatformActionOperation'
          resourceKind:
            $ref: '#/components/schemas/v1_audit_ResourceKind'
        required:
        - type
        - operation
      discriminator:
        propertyName: type
      title: Action
    v1_issues_IssueId:
      type: string
      description: The unique identifier for an issue in Method
      title: IssueId
    v1_audit_UserAgent:
      type: string
      description: The user agent for a request made to the Method platform.
      title: UserAgent
    v1_audit_ServiceAccountId:
      type: string
      description: The unique identifier of a service account in Method
      title: ServiceAccountId
    v1_audit_IpAddress:
      type: string
      description: The source IP for a request made to the Method platform
      title: IpAddress
    v1_audit_AgentRunPrincipal:
      oneOf:
      - type: object
        properties:
          type:
            type: string
            enum:
            - user
            description: 'Discriminator value: user'
          id:
            $ref: '#/components/schemas/v1_audit_UserId'
          name:
            type: string
          email:
            type: string
          externalId:
            $ref: '#/components/schemas/v1_audit_ExternalUserId'
        required:
        - type
        - id
        - name
      - type: object
        properties:
          type:
            type: string
            enum:
            - serviceAccount
            description: 'Discriminator value: serviceAccount'
          id:
            $ref: '#/components/schemas/v1_audit_ServiceAccountId'
        required:
        - type
        - id
      - type: object
        properties:
          type:
            type: string
            enum:
            - oauthApplication
            description: 'Discriminator value: oauthApplication'
          id:
            $ref: '#/components/schemas/v1_audit_OauthApplicationId'
          clientId:
            $ref: '#/components/schemas/v1_audit_ClientId'
        required:
        - type
        - id
        - clientId
      discriminator:
        propertyName: type
      description: 'The principal on whose behalf an agent run acts. This excludes agent runs so that an agent run cannot be

        nested inside another agent run.'
      title: AgentRunPrincipal
    v1_audit_Actor:
      oneOf:
      - type: object
        properties:
          type:
            type: string
            enum:
            - user
            description: 'Discriminator value: user'
          id:
            $ref: '#/components/schemas/v1_audit_UserId'
          name:
            type: string
          email:
            type: string
          externalId:
            $ref: '#/components/schemas/v1_audit_ExternalUserId'
        required:
        - type
        - id
        - name
      - type: object
        properties:
          type:
            type: string
            enum:
            - serviceAccount
            description: 'Discriminator value: serviceAccount'
          id:
            $ref: '#/components/schemas/v1_audit_ServiceAccountId'
        required:
        - type
        - id
      - type: object
        properties:
          type:
            type: string
            enum:
            - oauthApplication
            description: 'Discriminator value: oauthApplication'
          id:
            $ref: '#/components/schemas/v1_audit_OauthApplicationId'
          clientId:
            $ref: '#/components/schemas/v1_audit_ClientId'
        required:
        - type
        - id
        - clientId
      - type: object
        properties:
          type:
            type: string
            enum:
            - agentRun
            description: 'Discriminator value: agentRun'
          principal:
            $ref: '#/components/schemas/v1_audit_AgentRunPrincipal'
          agentSessionId:
            $ref: '#/components/schemas/v1_audit_AgentSessionId'
        required:
        - type
        - principal
        - agentSessionId
      discriminator:
        propertyName: type
      title: Actor
    v1_audit_AgentSessionId:
      type: string
      description: The unique identifier of an agent session in Method
      title: AgentSessionId
    v1_audit_TenantId:
      type: string
      description: The unique identifier of the tenant for which the audit event was emitted
      title: TenantId
    v1_audit_ExternalUserId:
      type: string
      description: The identifier of a user in Method according to an external auth provider
      title: ExternalUserId
    v1_audit_AuditEvent:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/v1_audit_AuditEventId'
        tenantId:
          $ref: '#/components/schemas/v1_audit_TenantId'
        timestamp:
          type: string
          format: date-time
        actor:
          $ref: '#/components/schemas/v1_audit_Actor'
        action:
          $ref: '#/components/schemas/v1_audit_Action'
        resource:
          $ref: '#/components/schemas/v1_audit_Resource'
        context:
          $ref: '#/components/schemas/v1_audit_Context'
        status:
          $ref: '#/components/schemas/v1_audit_AuditEventStatus'
      required:
      - id
      - tenantId
      - timestamp
      - actor
      - action
      - context
      - status
      title: AuditEvent
    v1_audit_AuditEventsResponse:
      type: object
      properties:
        auditEvents:
          type: array
          items:
            $ref: '#/components/schemas/v1_audit_AuditEvent'
        pagingToken:
          type: string
      required:
      - auditEvents
      title: AuditEventsResponse
    v1_objects_ObjectSetId:
      type: string
      description: The unique identifier for an object set in Method
      title: ObjectSetId
    v1_audit_Resource:
      oneOf:
      - type: object
        properties:
          type:
            type: string
            enum:
            - userAccount
            description: 'Discriminator value: userAccount'
          user:
            $ref: '#/components/schemas/v1_audit_User'
        required:
        - type
        - user
      - type: object
        properties:
          type:
            type: string
            enum:
            - group
            description: 'Discriminator value: group'
          id:
            $ref: '#/components/schemas/v1_audit_GroupId'
          name:
            type: string
        required:
        - type
        - id
        - name
      - type: object
        properties:
          type:
            type: string
            enum:
            - issue
            description: 'Discriminator value: issue'
          id:
            $ref: '#/components/schemas/v1_issues_IssueId'
        required:
        - type
        - id
      - type: object
        properties:
          type:
            type: string
            enum:
            - ontologyObject
            description: 'Discriminator value: ontologyObject'
          id:
            $ref: '#/components/schemas/v1_objects_ObjectId'
        required:
        - type
        - id
      - type: object
        properties:
          type:
            type: string
            enum:
            - platformResource
            description: 'Discriminator value: platformResource'
          kind:
            $ref: '#/components/schemas/v1_audit_ResourceKind'
          id:
            $ref: '#/components/schemas/v1_audit_PlatformResourceId'
        required:
        - type
        - kind
        - id
      discriminator:
        propertyName: type
      title: Resource
    v1_audit_GroupId:
      type: string
      description: The unique identifier of a user group in Method
      title: GroupId
    v1_audit_AuditEventId:
      type: string
      description: The unique identifier for an audit event in Method
      title: AuditEventId
    v1_audit_Context:
      type: object
      properties:
        sourceIp:
          $ref: '#/components/schemas/v1_audit_IpAddress'
        userAgent:
          $ref: '#/components/schemas/v1_audit_UserAgent'
      title: Context
    v1_audit_ResourceKind:
      type: string
      enum:
      - AGENT
      - AGENT_SESSION
      - ENVIRONMENT
      - GROUP
      - ISSUE
      - ISSUE_DEFINITION
      - JACKAL
      - MODEL
      - MODEL_PROVIDER
      - OAUTH_CLIENT
      - OBJECT_SET
      - ONTOLOGY_OBJECT
      - OPERATOR_SESSION
      - REPORT
      - SCIM_INTEGRATION
      - SENSITIVE_VALUE
      - SKILL
      - TARGET
      - TARGET_PACKAGE
      - TASK
      - TASK_RUN
      - TOKEN
      - TOOL
      - USER_ACCOUNT
      title: ResourceKind
    v1_audit_GetAuditEventsRequest:
      type: object
      properties:
        startTime:
          type: string
          format: date-time
        endTime:
          type: string
          format: date-time
      required:
      - startTime
      - endTime
      title: GetAuditEventsRequest
    v1_audit_PlatformActionOperation:
      type: string
      enum:
      - APPROVE
      - CREATE
      - UPDATE
      - DELETE
      - LOAD
      - LAUNCH
      - QUERY
      - DECRYPT
      title: PlatformActionOperation
    v1_audit_OauthApplicationId:
      type: string
      description: The unique identifier of an OAuth application in Method
      title: OauthApplicationId
  securitySchemes:
    client-credentials:
      type: http
      scheme: bearer
x-refined-from:
- method-security-openapi-original.yml
- method-security-openapi.yml