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

# List performance actions

For how this fits with the other tracing endpoints, see [Querying traces](https://docs.appsignal.com/api/v2/traces.md#list-performance-actions).

```yaml POST /api/v2/tracing/actions theme={null}
openapi: 3.1.0
info:
  title: AppSignal V2 API
  description: >-
    REST API for metrics, traces, logs, Kubernetes monitoring, and deployment
    tracking.
  license:
    name: ''
  version: 0.1.0
paths:
  /api/v2/tracing/actions:
    post:
      tags:
        - Tracing
      summary: List performance actions
      operationId: actions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActionsQuery'
            example:
              site_id: abc123
              from: '2024-01-01T00:00:00Z'
              to: '2024-01-01T01:00:00Z'
              namespaces:
                - web
        required: true
      responses:
        '200':
          description: One row per namespace, action and digest.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ActionRow'
              example:
                - namespace: web
                  action: UsersController#show
                  digest: a1b2c3
                  mean: 123.4
                  throughput: 5200
                  error_rate: 0.8
                  has_npo: false
        '400':
          description: Malformed request, or input the server cannot process.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponse'
        '401':
          description: Missing or invalid authentication token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Route or resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: External query concurrency limit exceeded; retry shortly.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait before retrying.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsResponse'
        '500':
          description: Unhandled server-side failure.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearer_auth: []
        - token_query: []
components:
  schemas:
    ActionRow:
      type: object
      description: >-
        A single row in the actions list response, representing aggregated
        metrics

        for one namespace/action/digest combination.
      required:
        - namespace
        - action
        - digest
        - mean
        - throughput
        - error_rate
        - has_npo
      properties:
        namespace:
          type: string
          description: Application namespace (e.g. "web", "background").
        action:
          type: string
          description: Action name (e.g. "UsersController#show").
        digest:
          type: string
          description: Action digest identifier.
        mean:
          type: number
          format: double
          description: Mean duration in milliseconds.
        throughput:
          type: number
          format: double
          description: Total request count in the queried time range.
        error_rate:
          type: number
          format: double
          description: Error percentage (0.0–100.0).
        has_npo:
          type: boolean
          description: Whether an N+1 query has been detected for this action.
    ActionsQuery:
      type: object
      description: >-
        Query parameters for listing performance actions with aggregated
        metrics.
      required:
        - site_id
        - from
        - to
      properties:
        site_id:
          type: string
          description: Site identifier to scope the query to.
        from:
          type: string
          format: date-time
          description: Start of the time range (inclusive).
        to:
          type: string
          format: date-time
          description: End of the time range (inclusive).
        namespaces:
          type: array
          items:
            type: string
          description: Namespaces to filter by. When empty, all namespaces are included.
        revision:
          type:
            - string
            - 'null'
          description: Optional deployment revision to filter by.
        action:
          type:
            - string
            - 'null'
          description: Optional action name to filter by.
    BadRequestResponse:
      type: object
      description: >-
        Standard body for HTTP 400 Bad Request responses. Branch on the stable
        `error` slug, display `message` as-is, and read per-error structured
        data from `details`.
      required:
        - error
        - message
      properties:
        error:
          type: string
          description: Stable, machine-readable slug identifying the specific error case.
        message:
          type: string
          description: Human-readable message. Safe to log or display to end users.
        details:
          description: >-
            Per-error structured payload. Shape varies by
            [`error`](Self::error).
    ErrorResponse:
      type: object
      description: Error body returned for 401, 404 and 500 responses.
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
    TooManyRequestsResponse:
      type: object
      description: Error body returned for 429 responses.
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
        suggestion:
          type:
            - string
            - 'null'
          description: >-
            A cheaper way to write the request's filter. Only the trace list

            endpoints set it, and only for a filter with a known indexed
            rewrite.
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: '`Authorization: Bearer <token>`'
    token_query:
      type: apiKey
      in: query
      name: token
      description: >-
        Alternative to the Authorization header: pass the token as a
        `?token=<token>` query parameter.
```


## API Specification

The full API specification for this endpoint is available in the [documentation index](https://docs.appsignal.com/llms.txt).


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