> ## 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.

# Get a saved visual

This endpoint needs no token, so you can embed a saved visual directly.

```yaml GET /api/v2/saved_visuals/{id} 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/saved_visuals/{id}:
    get:
      tags:
        - Saved Visuals
      summary: Get a saved visual
      operationId: json
      parameters:
        - name: id
          in: path
          description: Hex-encoded ObjectId of the saved visual.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The saved visual.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SavedVisualOut'
              example:
                id: 60f3b3b3b3b3b3b3b3b3b3b3
                resolution: HOURLY
                value_format: number
                value_input: null
                series:
                  - color: rgb(0,0,0)
                    name: test
                    renderer: line
                    data:
                      - x: '2020-04-12T22:10:57Z'
                        'y': 1
        '400':
          description: '`id` is not a valid ObjectId (`error` is `invalid_id`).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestResponse'
        '404':
          description: No saved visual with this id.
          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'
components:
  schemas:
    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).
    DataPointOut:
      type: object
      description: A single data point in a saved visual series.
      required:
        - x
        - 'y'
      properties:
        x:
          type: string
          format: date-time
          description: Timestamp of this data point.
        'y':
          type: number
          format: double
          description: Primary value.
        y0:
          type: number
          format: double
          description: Lower bound value for area charts.
        y1:
          type: number
          format: double
          description: Upper bound value for area charts.
    ErrorResponse:
      type: object
      description: Error body returned for 401, 404 and 500 responses.
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
    SavedVisualOut:
      type: object
      description: JSON response representation of a saved visual (chart).
      required:
        - id
        - resolution
        - value_format
        - value_input
        - series
      properties:
        id:
          type: string
          description: MongoDB ObjectId of the saved visual (hex-encoded).
        resolution:
          type: string
          description: Time resolution (e.g. `"HOURLY"`, `"MINUTELY"`).
        value_format:
          type: string
          description: Value format type (e.g. `"number"`, `"duration"`).
        value_input:
          type:
            - string
            - 'null'
          description: Optional input format specification; `null` when unset.
        series:
          type: array
          items:
            $ref: '#/components/schemas/SerieOut'
          description: Data series contained in this visual.
    SerieOut:
      type: object
      description: A single data series within a saved visual.
      required:
        - color
        - name
        - renderer
        - data
      properties:
        color:
          type: string
          description: Series color as a CSS color string (e.g. `"rgb(0,0,0)"`).
        name:
          type: string
          description: Display name of the series.
        renderer:
          type: string
          description: Renderer type (e.g. `"line"`, `"area"`).
        data:
          type: array
          items:
            $ref: '#/components/schemas/DataPointOut'
          description: Ordered data points in this series.
    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.
```


## 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.