openapi: 3.0.3
info:
  title: Incident Security Service Posture Management API
  version: '1.0'
  description: "Endpoint to retrieve Identity Posture Security information This Open\
    \ API spec file was created on July 01, 2025. \xA9 2025 Palo Alto Networks, Inc.\
    \ Palo Alto Networks is a registered trademark of Palo Alto Networks. A list of\
    \ our trademarks can be found at [https://www.paloaltonetworks.com/company/trademarks.html](https://www.paloaltonetworks.com/company/trademarks.html).\
    \ All other marks mentioned herein may be trademarks of their respective companies."
servers:
- url: https://api.sase.paloaltonetworks.com
- url: https://api.strata.paloaltonetworks.com
components:
  schemas:
    CreateTicketRequest:
      required:
      - resourceIds
      - feature
      - integrationId
      - type
      - issueTypeId
      - summary
      type: object
      properties:
        resourceIds:
          type: array
          items:
            type: string
        feature:
          $ref: '#/components/schemas/Feature'
        integrationId:
          type: string
        type:
          type: string
        issueTypeId:
          type: string
        summary:
          type: string
        description:
          type: string
        settings:
          type: object
          additionalProperties:
            type: string
    DownloadCsvRequest:
      required:
      - userFullName
      - userEmail
      - service
      type: object
      properties:
        userFullName:
          type: string
        userEmail:
          type: string
        service:
          type: string
    Feature:
      enum:
      - ENROLLMENT
      - ACTIVITY
      - LOGOUT
      - IDENTITY_NHI
      - IDENTITY_ACTIVITY
      type: string
    FeatureState:
      type: object
      properties:
        status:
          type: string
        lastScannedAt:
          $ref: '#/components/schemas/Instant'
    IdpInfo:
      type: object
      properties:
        displayName:
          type: string
        idpId:
          type: string
        appType:
          type: string
    Instant:
      format: date-time
      type: string
      example: 2022-03-10 16:15:50+00:00
    ListResponseIdpInfo:
      type: object
      properties:
        total:
          format: int64
          type: integer
        items:
          type: array
          items:
            $ref: '#/components/schemas/IdpInfo'
    ListResponseMapStringObject:
      type: object
      properties:
        total:
          format: int64
          type: integer
        items:
          type: array
          items:
            type: object
    ListResponseMfaActivity:
      type: object
      properties:
        total:
          format: int64
          type: integer
        items:
          type: array
          items:
            $ref: '#/components/schemas/MfaActivity'
    ListResponseSaaSAccount:
      type: object
      properties:
        total:
          format: int64
          type: integer
        items:
          type: array
          items:
            $ref: '#/components/schemas/SaaSAccount'
    ListResponseSaaSActivity:
      type: object
      properties:
        total:
          format: int64
          type: integer
        items:
          type: array
          items:
            $ref: '#/components/schemas/SaaSActivity'
    ListResponseSaaSInstanceInfo:
      type: object
      properties:
        total:
          format: int64
          type: integer
        items:
          type: array
          items:
            $ref: '#/components/schemas/SaaSInstanceInfo'
    ListResponseTicket:
      type: object
      properties:
        total:
          format: int64
          type: integer
        items:
          type: array
          items:
            $ref: '#/components/schemas/Ticket'
    MfaActivity:
      type: object
      properties:
        id:
          type: string
        tenant:
          type: string
        userId:
          type: string
        idpId:
          type: string
        idpType:
          type: string
        mfaStrength:
          type: string
        admin:
          type: boolean
        appType:
          type: string
        appId:
          type: string
        timestamp:
          $ref: '#/components/schemas/Instant'
        mfaFactors:
          type: string
        saasProviderMfaType:
          type: string
        fullName:
          type: string
        email:
          type: string
        ipAddress:
          type: string
        location:
          type: string
        ticketKey:
          type: string
        ticketUrl:
          type: string
    MfaActivityCountByAppType:
      type: object
      properties:
        appType:
          type: string
        count:
          format: int64
          type: integer
        iconAppType:
          type: string
    RemediationRequest:
      type: object
      properties:
        users:
          type: array
          items:
            type: string
    SaaSAccount:
      type: object
      properties:
        id:
          type: string
        saasProviderId:
          type: string
        tenant:
          type: string
        saasInstanceId:
          type: string
        jobId:
          type: string
        appId:
          type: string
        appType:
          type: string
        accountType:
          type: string
        accountName:
          type: string
        email:
          type: string
        isLocal:
          type: boolean
        isOrphaned:
          type: boolean
        isElevated:
          type: boolean
        ticketKey:
          type: string
        ticketUrl:
          type: string
        roles:
          type: string
        creator:
          type: string
        linkedHumanAccounts:
          type: string
        saasProviderNhiName:
          type: string
        lastModifiedTime:
          $ref: '#/components/schemas/Instant'
        lastLoginTime:
          $ref: '#/components/schemas/Instant'
        isNonHuman:
          type: boolean
        createdTime:
          $ref: '#/components/schemas/Instant'
        latestScanTime:
          $ref: '#/components/schemas/Instant'
        lastCredentialsRotated:
          $ref: '#/components/schemas/Instant'
        rotatedBy:
          type: string
        githubOrgName:
          type: string
        credentialsExpiresAt:
          $ref: '#/components/schemas/Instant'
    SaaSActivity:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        tenant:
          type: string
        saasInstanceId:
          type: string
        appType:
          type: string
        resourceType:
          type: string
        resourceName:
          type: string
        activityType:
          type: string
        clientIP:
          type: string
        location:
          type: string
        userAgent:
          type: string
        summary:
          type: string
        rawData:
          type: string
        activityDateTime:
          $ref: '#/components/schemas/Instant'
        createdAt:
          $ref: '#/components/schemas/Instant'
    SaaSInstanceInfo:
      type: object
      properties:
        displayName:
          type: string
        saasInstanceId:
          type: string
        appType:
          type: string
    Ticket:
      type: object
      properties:
        id:
          type: string
        tenant:
          type: string
        saasInstanceId:
          type: string
        resourceIds:
          type: string
        feature:
          type: string
        users:
          type: string
        integrationId:
          type: string
        type:
          type: string
        ticketKey:
          type: string
        ticketUrl:
          type: string
        summary:
          type: string
        createdAt:
          $ref: '#/components/schemas/Instant'
    UnlinkTicketRequest:
      required:
      - id
      - feature
      type: object
      properties:
        id:
          type: string
        resourceIds:
          type: array
          items:
            type: string
        feature:
          $ref: '#/components/schemas/Feature'
ExternalTags:
  Catalog:
    title: Catalog
    description: Application Catalog
    tags:
    - Catalog
  Identity:
    title: Identity
    description: Identity Provider related API
    tags:
    - Identity
  SaaS Instance:
    title: SaaS Instance
    description: SaaS Instance related API
    tags:
    - SaaS Instance
paths:
  /sspm/identity/v1/catalog/{appType}:
    get:
      summary: Get application catalog
      description: "Retrieve application catalog details based on the specified application\
        \ type. \nThis helps identify supported application types and their available\
        \ features."
      operationId: catalog_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
        '404':
          description: Not Found
      parameters:
      - name: appType
        in: path
        required: true
        schema:
          type: string
      - name: feature
        in: query
        schema:
          type: string
      tags:
      - Catalog
  /sspm/identity/v1/idps:
    get:
      summary: Get all Identity Providers
      description: Retrieve a list of identity providers (Identity Providers) configured
        for the tenant. You can optionally filter the results to view only designated
        identity providers.
      operationId: idps_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponseIdpInfo'
        '404':
          description: Not Found
      parameters:
      - name: designated
        in: query
        schema:
          type: boolean
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - IDP
    post:
      summary: Create identity provider
      description: Create a new identity provider (Identity Provider) entry for the
        tenant. You can specify the type, identifier, and whether it should be marked
        as designated.
      operationId: idps_post
      responses:
        '201':
          description: Created
        '400':
          description: Bad Request
      parameters:
      - name: designated
        in: query
        schema:
          type: boolean
      - name: idpId
        in: query
        schema:
          type: string
      - name: idpType
        in: query
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - IDP
  /sspm/identity/v1/idps/{idpId}/accounts/logout:
    get:
      summary: Get logout status
      description: Retrieve the logout status of user accounts associated with the
        specified identity provider (Identity Provider). This is useful for tracking
        the outcome of account logout actions in batch operations.
      operationId: idps_accounts_logout_get
      responses:
        '200':
          description: OK
        '404':
          description: Not Found
      parameters:
      - name: idpId
        in: path
        required: true
        schema:
          type: string
      - name: batch_id
        in: query
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - IDP
    post:
      summary: Trigger account logout
      description: Initiate a logout request for user accounts associated with the
        specified identity provider (Identity Provider). This action helps enforce
        session termination for compliance or security purposes.
      operationId: idps_accounts_logout_post
      responses:
        '200':
          description: OK
        '404':
          description: Not Found
      parameters:
      - name: idpId
        in: path
        required: true
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - IDP
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemediationRequest'
  /sspm/identity/v1/idps/{idpId}/feature_state:
    get:
      summary: Get Identity Provider feature state
      description: Retrieve the current status and last scan timestamp of a specific
        feature enabled for the identity provider (Identity Provider). This helps
        assess feature health and scan recency.
      operationId: idps_feature_state_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeatureState'
        '404':
          description: Not Found
      parameters:
      - name: idpId
        in: path
        required: true
        schema:
          type: string
      - name: feature
        in: query
        schema:
          $ref: '#/components/schemas/Feature'
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - IDP
  /sspm/identity/v1/idps/{idpId}/idp_accounts/count:
    get:
      summary: Get Identity Provider account count
      description: Return the number of user accounts linked to the specified identity
        provider (Identity Provider). Filtering options can be applied to count specific
        types of accounts such as orphaned or privileged users.
      operationId: idps_idp_accounts_count_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  format: int64
                  type: integer
        '404':
          description: Not Found
      parameters:
      - name: idpId
        in: path
        required: true
        schema:
          type: string
      - name: filter
        in: query
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - IDP
  /sspm/identity/v1/idps/{idpId}/idp_accounts/csv_report:
    post:
      summary: Generate Identity Provider account CSV report
      description: Generate a CSV report of accounts associated with the specified
        identity provider (Identity Provider). The report supports compliance audits
        and user access reviews.
      operationId: idps_idp_accounts_csv_report_get
      responses:
        '201':
          description: Created
        '400':
          description: Bad Request
      parameters:
      - name: idpId
        in: path
        required: true
        schema:
          type: string
      - name: filter
        in: query
        schema:
          type: string
      - name: sortBy
        in: query
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - IDP
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DownloadCsvRequest'
  /sspm/identity/v1/idps/{idpId}/mfa_activity:
    get:
      summary: Get Multi-factor authentication activity logs
      description: Retrieve a list of multi-factor authentication (Multi-factor authentication)
        activities for the specified identity provider (Identity Provider). The logs
        include user identities, timestamps, IP Address addresses, and Multi-factor
        authentication methods used.
      operationId: idps_mfa_activity_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponseMfaActivity'
        '404':
          description: Not Found
      parameters:
      - name: idpId
        in: path
        required: true
        schema:
          type: string
      - name: filter
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          format: int32
          type: integer
      - name: page
        in: query
        schema:
          format: int32
          type: integer
      - name: sortBy
        in: query
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - IDP
  /sspm/identity/v1/idps/{idpId}/mfa_activity/count:
    get:
      summary: Get Multi-factor authentication activity count
      description: Return the number of multi-factor authentication (Multi-factor
        authentication) activities recorded for the specified identity provider (Identity
        Provider). This count helps evaluate authentication volume and usage patterns.
      operationId: idps_mfa_activity_count_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  format: int64
                  type: integer
        '404':
          description: Not Found
      parameters:
      - name: idpId
        in: path
        required: true
        schema:
          type: string
      - name: filter
        in: query
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - IDP
  /sspm/identity/v1/idps/{idpId}/mfa_activity/count_by_app_type:
    get:
      summary: Get Multi-factor authentication activity count by app type
      description: Return the number of multi-factor authentication (Multi-factor
        authentication) activities for the specified identity provider (Identity Provider),
        grouped by application type. This helps analyze authentication trends across
        different SaaS applications.
      operationId: idps_mfa_activity_count_by_app_type_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MfaActivityCountByAppType'
        '404':
          description: Not Found
      parameters:
      - name: idpId
        in: path
        required: true
        schema:
          type: string
      - name: filter
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          format: int32
          type: integer
      - name: page
        in: query
        schema:
          format: int32
          type: integer
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - IDP
  /sspm/identity/v1/idps/{idpId}/mfa_activity/csv_report:
    post:
      summary: Generate Identity Provider Multi-factor authentication activity CSV
        report
      description: Generate a comma-separated values (CSV) report of multi-factor
        authentication (Multi-factor authentication) activities for the specified
        identity provider (Identity Provider). This report helps audit authentication
        patterns and policy compliance.
      operationId: idps_mfa_activity_csv_report_get
      responses:
        '201':
          description: Created
        '400':
          description: Bad Request
      parameters:
      - name: idpId
        in: path
        required: true
        schema:
          type: string
      - name: filter
        in: query
        schema:
          type: string
      - name: sortBy
        in: query
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - IDP
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DownloadCsvRequest'
  /sspm/identity/v1/saas_instances:
    get:
      summary: Get SaaS Instance list
      description: "Retrieve a list of software as a service (SaaS) instances configured\
        \ for the tenant. \nEach instance includes metadata such as application type\
        \ and display name."
      operationId: saas_instances_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponseSaaSInstanceInfo'
        '404':
          description: Not Found
      parameters:
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - SaaS Instance
  /sspm/identity/v1/saas_instances/{saasInstanceId}/saas_accounts:
    get:
      summary: Get SaaS account list
      description: "Retrieve a list of user accounts associated with the specified\
        \ software as a service (SaaS) instance. \nThe response includes account metadata\
        \ such as roles, login activity, and status for each user."
      operationId: saas_instances_saas_accounts_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponseSaaSAccount'
        '404':
          description: Not Found
      parameters:
      - name: saasInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: filter
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          format: int32
          type: integer
      - name: page
        in: query
        schema:
          format: int32
          type: integer
      - name: sortBy
        in: query
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - SaaS Instance
  /sspm/identity/v1/saas_instances/{saasInstanceId}/saas_accounts/count:
    get:
      summary: Get SaaS account count
      description: "Return the number of user accounts associated with the specified\
        \ software as a service (SaaS) instance. \nYou can apply filters to refine\
        \ the account count based on criteria such as roles, status, or account types."
      operationId: saas_instances_saas_accounts_count_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  format: int64
                  type: integer
        '404':
          description: Not Found
      parameters:
      - name: saasInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: filter
        in: query
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - SaaS Instance
  /sspm/identity/v1/saas_instances/{saasInstanceId}/saas_accounts/csv_report:
    post:
      summary: Generate SaaS account CSV report
      description: "Generate a CSV report of accounts linked to the specified software\
        \ as a service (SaaS) instance. \nThis report helps in auditing user presence\
        \ and roles within the application."
      operationId: saas_instances_saas_accounts_count_csv_report_post
      responses:
        '201':
          description: Created
        '400':
          description: Bad Request
      parameters:
      - name: saasInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: filter
        in: query
        schema:
          type: string
      - name: sortBy
        in: query
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - SaaS Instance
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DownloadCsvRequest'
  /sspm/identity/v1/saas_instances/{saasInstanceId}/saas_activity:
    get:
      summary: Get SaaS activity logs
      description: "Retrieve a list of activity logs for the specified software as\
        \ a service (SaaS) instance. \nLogs include user actions, accessed resources,\
        \ locations, and timestamps to support security auditing and monitoring."
      operationId: saas_instances_saas_activity_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponseSaaSActivity'
        '404':
          description: Not Found
      parameters:
      - name: saasInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: filter
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          format: int32
          type: integer
      - name: page
        in: query
        schema:
          format: int32
          type: integer
      - name: sortBy
        in: query
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - SaaS Instance
  /sspm/identity/v1/{saasInstanceId}/tickets:
    get:
      summary: Get SaaS Instance tickets
      description: Retrieve a list of tickets associated with the specified software
        as a service (SaaS) instance. Tickets track security findings, misconfigurations,
        or other remediation needs.
      operationId: saas_instances_tickets_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponseTicket'
        '404':
          description: Not Found
      parameters:
      - name: saasInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: filter
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          format: int32
          type: integer
      - name: page
        in: query
        schema:
          format: int32
          type: integer
      - name: sortBy
        in: query
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - SaaS Instance
    post:
      summary: Create SaaS instance ticket
      description: "Create a new ticket for the specified software as a service (SaaS)\
        \ instance. \nTickets help track remediation efforts for flagged issues or\
        \ vulnerabilities."
      operationId: saas_instances_tickets_post
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ticket'
        '400':
          description: Bad Request
      parameters:
      - name: saasInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - SaaS Instance
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTicketRequest'
    delete:
      summary: Delete SaaS instance tickets
      description: "Delete or unlink one or more tickets associated with the specified\
        \ software as a service (SaaS) instance. \nThis action is typically used to\
        \ close resolved or invalid issues."
      operationId: saas_instances_tickets_delete
      responses:
        '204':
          description: No Content
        '404':
          description: Not Found
      parameters:
      - name: saasInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - SaaS Instance
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UnlinkTicketRequest'
  /sspm/identity/v1/{saasInstanceId}/tickets/{ticketKey}/issues:
    get:
      summary: Get ticket issues
      description: "Retrieve a list of issues linked to a specific ticket for the\
        \ given software as a service (SaaS) instance. \nThis helps in tracking and\
        \ managing remediation or investigation items."
      operationId: saas_instances_tickets_issues_get
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListResponseMapStringObject'
        '404':
          description: Not Found
      parameters:
      - name: saasInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: ticketKey
        in: path
        required: true
        schema:
          type: string
      - name: limit
        in: query
        schema:
          format: int32
          type: integer
      - name: page
        in: query
        schema:
          format: int32
          type: integer
      - name: x-ps-tenant
        in: header
        schema:
          type: string
      tags:
      - SaaS Instance
