> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List agent event subscriptions

> Returns the project's MCP event subscriptions, newest first. Provide `page`/`page_size` for a paginated envelope, or omit both for an array.



## OpenAPI

````yaml get /v2/mcp_event_subscriptions
openapi: 3.1.0
info:
  title: StackOne
  description: The documentation for the StackOne API
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.stackone.com
security: []
tags:
  - name: Accounts
    description: View and manage linked accounts.
  - name: Connector Profiles
    description: >-
      View and manage connector profiles for the project: the authentication,
      enabled actions, data sync and events of each configured connector.
  - name: Connectors
    description: Retrieve metadata for connectors.
  - name: Webhooks
    description: Configure and manage webhooks.
  - name: MCP
    description: Event subscriptions that agents make over MCP.
  - name: Data Sync
    description: View data-sync configs, schedules, runs, and event subscriptions.
paths:
  /v2/mcp_event_subscriptions:
    get:
      tags:
        - MCP
      summary: List agent event subscriptions
      description: >-
        Returns the project's MCP event subscriptions, newest first. Provide
        `page`/`page_size` for a paginated envelope, or omit both for an array.
      operationId: list_mcp_event_subscriptions
      parameters:
        - name: account_id
          required: false
          in: query
          description: Only subscriptions on this account.
          schema:
            type: string
            nullable: true
        - name: client_id
          required: false
          in: query
          description: Only subscriptions made through this OAuth client.
          schema:
            type: string
            nullable: true
        - name: user_id
          required: false
          in: query
          description: Only subscriptions this user authorized.
          schema:
            type: string
            nullable: true
        - name: owner_type
          required: false
          in: query
          description: >-
            Only subscriptions made with this kind of credential. Required with
            `owner_id`.
          schema:
            nullable: true
            type: string
            enum:
              - oauth_grant
              - session_token
              - null
        - name: owner_id
          required: false
          in: query
          description: >-
            Only subscriptions made with this credential, such as a token app's
            id. Requires `owner_type`.
          schema:
            type: string
            nullable: true
        - name: page
          required: false
          in: query
          description: >-
            The 1-based page. Omit both `page` and `page_size` to get every
            subscription.
          schema:
            minimum: 1
            nullable: true
            type: number
        - name: page_size
          required: false
          in: query
          description: Subscriptions per page.
          schema:
            minimum: 1
            maximum: 100
            nullable: true
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: >-
                      #/components/schemas/PaginatedMcpEventSubscriptionsResponse
                  - type: array
                    items:
                      $ref: '#/components/schemas/McpEventSubscriptionResource'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponse'
        '401':
          description: Unauthorized access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
        '403':
          description: Forbidden.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenResponse'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundResponse'
        '408':
          description: The request has timed out.
          headers:
            Retry-After:
              description: A time in seconds after which the request can be retried.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestTimedOutResponse'
        '409':
          description: Conflict with current state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictResponse'
        '422':
          description: Validation error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnprocessableEntityResponse'
        '429':
          description: Too many requests.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsResponse'
        '500':
          description: Server error while executing the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
        '501':
          description: This functionality is not implemented.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotImplementedResponse'
        '502':
          description: Bad gateway error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadGatewayResponse'
      security:
        - basic: []
components:
  schemas:
    PaginatedMcpEventSubscriptionsResponse:
      type: object
      properties:
        page:
          type: number
          description: The page returned.
        page_size:
          type: number
          description: Subscriptions per page.
        total:
          type: number
          description: Subscriptions across all pages.
        data:
          type: array
          items:
            $ref: '#/components/schemas/McpEventSubscriptionResource'
      required:
        - page
        - page_size
        - total
        - data
    McpEventSubscriptionResource:
      type: object
      properties:
        id:
          type: string
          description: The subscription id.
          example: sub_0123456789abcdef01234567
        owner_type:
          type: string
          description: >-
            The credential that made it: an OAuth grant, or a session token such
            as a token app.
          enum:
            - oauth_grant
            - session_token
          x-speakeasy-unknown-values: allow
        owner_id:
          type: string
          description: The credential's id. For a token app, the token app's id.
          example: '18'
        event_name:
          type: string
          description: The event subscribed to.
          example: hris_list_employees.updated
        source:
          type: string
          description: Whether the event comes from the provider or from a data sync.
          enum:
            - native
            - synthetic
          x-speakeasy-unknown-values: allow
        account_id:
          type: string
          description: The account the events come from.
          nullable: true
        user_id:
          type: string
          description: The user who authorized the agent.
          nullable: true
        client_id:
          type: string
          description: The OAuth client the agent connected with.
          nullable: true
        client_name:
          type: string
          description: The client's display name.
          nullable: true
        status:
          type: string
          description: >-
            active, failing (deliveries failing), inactive (switched off after
            failing) or expired.
          enum:
            - active
            - failing
            - inactive
            - expired
          x-speakeasy-unknown-values: allow
        created_at:
          format: date-time
          type: string
          description: When the subscription was created.
        expires_at:
          format: date-time
          type: string
          description: When the subscription expires unless the agent refreshes it.
        last_delivery_at:
          format: date-time
          type: string
          description: When an event was last delivered.
          nullable: true
      required:
        - id
        - owner_type
        - owner_id
        - event_name
        - source
        - account_id
        - user_id
        - client_id
        - client_name
        - status
        - created_at
        - expires_at
        - last_delivery_at
    BadRequestResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 400
        message:
          type: string
          description: Error message
          example: Bad Request
        timestamp:
          type: string
          description: Timestamp when the error occurred
          example: '2023-05-30T00:00:00.000Z'
          format: date-time
        data:
          description: Error details
          nullable: true
          type: object
          allOf:
            - $ref: '#/components/schemas/UnifiedError'
        provider_errors:
          description: List of provider-specific errors
          nullable: true
          type: array
          items:
            $ref: '#/components/schemas/ProviderError'
      required:
        - statusCode
        - message
        - timestamp
    UnauthorizedResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 401
        message:
          type: string
          description: Error message
          example: Unauthorized
        timestamp:
          type: string
          description: Timestamp when the error occurred
          example: '2023-05-30T00:00:00.000Z'
          format: date-time
      required:
        - statusCode
        - message
        - timestamp
    ForbiddenResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 403
        message:
          type: string
          description: Error message
          example: Forbidden resource
        timestamp:
          type: string
          description: Timestamp when the error occurred
          example: '2023-05-30T00:00:00.000Z'
          format: date-time
      required:
        - statusCode
        - message
        - timestamp
    NotFoundResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 404
        message:
          type: string
          description: Error message
          example: Not Found
        timestamp:
          type: string
          description: Timestamp when the error occurred
          example: '2023-05-30T00:00:00.000Z'
          format: date-time
      required:
        - statusCode
        - message
        - timestamp
    RequestTimedOutResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 408
        message:
          type: string
          description: Error message
          example: Request timed out
        timestamp:
          type: string
          description: Timestamp when the error occurred
          example: '2023-05-30T00:00:00.000Z'
          format: date-time
      required:
        - statusCode
        - message
        - timestamp
    ConflictResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 409
        message:
          type: string
          description: Error message
          example: Conflict
        timestamp:
          type: string
          description: Timestamp when the error occurred
          example: '2023-05-30T00:00:00.000Z'
          format: date-time
      required:
        - statusCode
        - message
        - timestamp
    UnprocessableEntityResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 422
        message:
          type: string
          description: Error message
          example: Unprocessable Entity
        timestamp:
          type: string
          description: Timestamp when the error occurred
          example: '2023-05-30T00:00:00.000Z'
          format: date-time
      required:
        - statusCode
        - message
        - timestamp
    TooManyRequestsResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 429
        message:
          type: string
          description: Error message
          example: Too many requests
        timestamp:
          type: string
          description: Timestamp when the error occurred
          example: '2023-05-30T00:00:00.000Z'
          format: date-time
      required:
        - statusCode
        - message
        - timestamp
    InternalServerErrorResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 500
        message:
          type: string
          description: Error message
          example: Internal server error
        timestamp:
          type: string
          description: Timestamp when the error occurred
          example: '2023-05-30T00:00:00.000Z'
          format: date-time
      required:
        - statusCode
        - message
        - timestamp
    NotImplementedResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 501
        message:
          type: string
          description: Error message
          example: Not Implemented
        timestamp:
          type: string
          description: Timestamp when the error occurred
          example: '2023-05-30T00:00:00.000Z'
          format: date-time
      required:
        - statusCode
        - message
        - timestamp
    BadGatewayResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 502
        message:
          type: string
          description: Error message
          example: Bad Gateway
        timestamp:
          type: string
          description: Timestamp when the error occurred
          example: '2023-05-30T00:00:00.000Z'
          format: date-time
      required:
        - statusCode
        - message
        - timestamp
    UnifiedError:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 400
          nullable: true
        message:
          type: string
          description: Error message
          example: Bad Request
          nullable: true
        headers:
          type: object
          description: Response headers
          example:
            content-type: application/json
            x-request-id: 5678c28b211dace4e0a0f9171e6b88c5
          nullable: true
    ProviderError:
      type: object
      properties:
        status:
          type: number
          description: HTTP status code of the provider error
          example: 400
          nullable: true
        url:
          type: string
          description: URL that caused the error
          example: https://api.provider.com/v1/resource
          nullable: true
        raw:
          type: object
          description: Raw error response from the provider
          example:
            message: Invalid input parameters
          nullable: true
        headers:
          type: object
          description: Response headers
          example:
            content-type: application/json
            x-request-id: 5678c28b211dace4e0a0f9171e6b88c5
          nullable: true
  securitySchemes:
    basic:
      type: http
      scheme: basic

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.